[ 67.247640][ C0] [ 67.247879][ C0] ======================================================== [ 67.248124][ C0] WARNING: possible irq lock inversion dependency detected [ 67.248350][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 67.248511][ C0] -------------------------------------------------------- [ 67.248736][ C0] swapper/0/0 just changed the state of lock: [ 67.248915][ C0] ffff8880053bd580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 67.249186][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 67.249402][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 67.249407][ C0] [ 67.249407][ C0] [ 67.249407][ C0] and interrupts could create inverse lock ordering between them. [ 67.249407][ C0] [ 67.249933][ C0] [ 67.249933][ C0] other info that might help us debug this: [ 67.250145][ C0] Possible interrupt unsafe locking scenario: [ 67.250145][ C0] [ 67.250383][ C0] CPU0 CPU1 [ 67.250541][ C0] ---- ---- [ 67.250688][ C0] lock(&p->alloc_lock); [ 67.250804][ C0] local_irq_disable(); [ 67.250996][ C0] lock(&ndev->lock); [ 67.251189][ C0] lock(&p->alloc_lock); [ 67.251376][ C0] [ 67.251490][ C0] lock(&ndev->lock); [ 67.251611][ C0] [ 67.251611][ C0] *** DEADLOCK *** [ 67.251611][ C0] [ 67.251831][ C0] 1 lock held by swapper/0/0: [ 67.251987][ C0] #0: ffffc90000007d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 67.252259][ C0] [ 67.252259][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 67.252517][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 67.252670][ C0] HARDIRQ-ON-W at: [ 67.252798][ C0] __lock_acquire+0x797/0x1570 [ 67.252994][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.253180][ C0] _raw_spin_lock+0x30/0x40 [ 67.253373][ C0] set_mems_allowed+0x1d/0x210 [ 67.253558][ C0] kernel_init_freeable+0x72/0x310 [ 67.253746][ C0] kernel_init+0x20/0x200 [ 67.253934][ C0] ret_from_fork+0x31/0x70 [ 67.254120][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.254307][ C0] SOFTIRQ-ON-W at: [ 67.254423][ C0] __lock_acquire+0x797/0x1570 [ 67.254606][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.254789][ C0] _raw_spin_lock+0x30/0x40 [ 67.254973][ C0] set_mems_allowed+0x1d/0x210 [ 67.255157][ C0] kernel_init_freeable+0x72/0x310 [ 67.255340][ C0] kernel_init+0x20/0x200 [ 67.255535][ C0] ret_from_fork+0x31/0x70 [ 67.255718][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.255916][ C0] INITIAL USE at: [ 67.256025][ C0] __lock_acquire+0x797/0x1570 [ 67.256245][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.256434][ C0] _raw_spin_lock+0x30/0x40 [ 67.256631][ C0] set_mems_allowed+0x1d/0x210 [ 67.256817][ C0] kernel_init_freeable+0x72/0x310 [ 67.257009][ C0] kernel_init+0x20/0x200 [ 67.257197][ C0] ret_from_fork+0x31/0x70 [ 67.257385][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.257569][ C0] } [ 67.257651][ C0] ... key at: [] __key.387+0x0/0x40 [ 67.257876][ C0] ... acquired at: [ 67.257991][ C0] __lock_acquire+0xaf0/0x1570 [ 67.258146][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.258298][ C0] _raw_spin_lock+0x30/0x40 [ 67.258443][ C0] __get_task_comm+0x27/0x70 [ 67.258602][ C0] ref_tracker_alloc+0x2ee/0x490 [ 67.258751][ C0] netdev_get_by_index+0x5e/0x80 [ 67.258901][ C0] fib6_nh_init+0x3d8/0x15b0 [ 67.259058][ C0] ip6_route_info_create+0xf18/0x17d0 [ 67.259212][ C0] addrconf_f6i_alloc+0x265/0x560 [ 67.259357][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 67.259517][ C0] addrconf_join_anycast+0x1c0/0x220 [ 67.259663][ C0] __ipv6_ifa_notify+0x6b3/0xaf0 [ 67.259826][ C0] add_addr+0x1fb/0x2d0 [ 67.259938][ C0] add_v4_addrs+0x400/0x800 [ 67.260085][ C0] addrconf_gre_config+0x69/0x140 [ 67.260236][ C0] addrconf_notify+0xb0e/0xd60 [ 67.260381][ C0] notifier_call_chain+0xcd/0x150 [ 67.260528][ C0] __dev_notify_flags+0xe6/0x250 [ 67.260676][ C0] dev_change_flags+0xec/0x160 [ 67.260826][ C0] do_setlink+0x7d6/0x21e0 [ 67.260971][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.261119][ C0] rtnl_newlink+0x63/0xa0 [ 67.261263][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.261416][ C0] netlink_rcv_skb+0x130/0x360 [ 67.261564][ C0] netlink_unicast+0x449/0x710 [ 67.261710][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.261856][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.262006][ C0] ___sys_sendmsg+0xee/0x170 [ 67.262152][ C0] __sys_sendmsg+0xcd/0x170 [ 67.262298][ C0] do_syscall_64+0xc6/0x1e0 [ 67.262445][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.262630][ C0] [ 67.262712][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 67.262863][ C0] HARDIRQ-ON-W at: [ 67.262975][ C0] __lock_acquire+0x797/0x1570 [ 67.263157][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.263343][ C0] _raw_write_lock_bh+0x38/0x50 [ 67.263529][ C0] addrconf_permanent_addr+0x6e/0x670 [ 67.263711][ C0] addrconf_notify+0x749/0xd60 [ 67.263909][ C0] notifier_call_chain+0xcd/0x150 [ 67.264097][ C0] __dev_notify_flags+0xe6/0x250 [ 67.264289][ C0] dev_change_flags+0xec/0x160 [ 67.264469][ C0] do_setlink+0x7d6/0x21e0 [ 67.264654][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.264837][ C0] rtnl_newlink+0x63/0xa0 [ 67.265024][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.265213][ C0] netlink_rcv_skb+0x130/0x360 [ 67.265405][ C0] netlink_unicast+0x449/0x710 [ 67.265586][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.265785][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.265971][ C0] ___sys_sendmsg+0xee/0x170 [ 67.266167][ C0] __sys_sendmsg+0xcd/0x170 [ 67.266358][ C0] do_syscall_64+0xc6/0x1e0 [ 67.266550][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.266772][ C0] HARDIRQ-ON-R at: [ 67.266885][ C0] __lock_acquire+0x797/0x1570 [ 67.267074][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.267269][ C0] _raw_read_lock_bh+0x44/0x80 [ 67.267454][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 67.267652][ C0] inet6_fill_link_af+0x5e/0xe0 [ 67.267838][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 67.268026][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 67.268207][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 67.268434][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 67.268618][ C0] register_netdevice+0x1177/0x1690 [ 67.268807][ C0] register_netdev+0x20/0x40 [ 67.268991][ C0] sit_init_net+0x250/0x4f0 [ 67.269172][ C0] ops_init+0x9b/0x560 [ 67.269319][ C0] register_pernet_operations+0x2db/0x710 [ 67.269539][ C0] register_pernet_device+0x2a/0x60 [ 67.269722][ C0] sit_init+0x23/0xe0 [ 67.269874][ C0] do_one_initcall+0x8d/0x1e0 [ 67.270061][ C0] do_initcalls+0x1b2/0x3e0 [ 67.270248][ C0] kernel_init_freeable+0x232/0x310 [ 67.270429][ C0] kernel_init+0x20/0x200 [ 67.270612][ C0] ret_from_fork+0x31/0x70 [ 67.270798][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.270982][ C0] IN-SOFTIRQ-W at: [ 67.271095][ C0] __lock_acquire+0x797/0x1570 [ 67.271279][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.271462][ C0] _raw_write_lock+0x30/0x40 [ 67.271649][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.271832][ C0] call_timer_fn+0x13b/0x230 [ 67.272018][ C0] __run_timers+0x545/0x810 [ 67.272203][ C0] run_timer_softirq+0xe8/0x1b0 [ 67.272392][ C0] __do_softirq+0x1f8/0x5df [ 67.272578][ C0] irq_exit_rcu+0x97/0xc0 [ 67.272774][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.273004][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.273235][ C0] default_idle+0xf/0x20 [ 67.273423][ C0] default_idle_call+0x6d/0xb0 [ 67.273618][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.273802][ C0] do_idle+0xf9/0x160 [ 67.273954][ C0] cpu_startup_entry+0x54/0x60 [ 67.274145][ C0] rest_init+0x14f/0x260 [ 67.274330][ C0] start_kernel+0x318/0x3d0 [ 67.274514][ C0] x86_64_start_reservations+0x18/0x30 [ 67.274705][ C0] x86_64_start_kernel+0xba/0x110 [ 67.274888][ C0] common_startup_64+0x12c/0x138 [ 67.275078][ C0] INITIAL USE at: [ 67.275186][ C0] __lock_acquire+0x797/0x1570 [ 67.275378][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.275562][ C0] _raw_write_lock_bh+0x38/0x50 [ 67.275761][ C0] addrconf_permanent_addr+0x6e/0x670 [ 67.275951][ C0] addrconf_notify+0x749/0xd60 [ 67.276139][ C0] notifier_call_chain+0xcd/0x150 [ 67.276322][ C0] __dev_notify_flags+0xe6/0x250 [ 67.276505][ C0] dev_change_flags+0xec/0x160 [ 67.276699][ C0] do_setlink+0x7d6/0x21e0 [ 67.276882][ C0] __rtnl_newlink+0xaa7/0xd80 [ 67.277080][ C0] rtnl_newlink+0x63/0xa0 [ 67.277270][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 67.277456][ C0] netlink_rcv_skb+0x130/0x360 [ 67.277689][ C0] netlink_unicast+0x449/0x710 [ 67.277946][ C0] netlink_sendmsg+0x723/0xbe0 [ 67.278185][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 67.278373][ C0] ___sys_sendmsg+0xee/0x170 [ 67.278586][ C0] __sys_sendmsg+0xcd/0x170 [ 67.278873][ C0] do_syscall_64+0xc6/0x1e0 [ 67.279066][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 67.279298][ C0] INITIAL READ USE at: [ 67.279416][ C0] __lock_acquire+0x797/0x1570 [ 67.279709][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.279901][ C0] _raw_read_lock_bh+0x44/0x80 [ 67.280088][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 67.280400][ C0] inet6_fill_link_af+0x5e/0xe0 [ 67.280594][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 67.280781][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 67.281181][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 67.281411][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 67.281608][ C0] register_netdevice+0x1177/0x1690 [ 67.281918][ C0] register_netdev+0x20/0x40 [ 67.282101][ C0] sit_init_net+0x250/0x4f0 [ 67.282286][ C0] ops_init+0x9b/0x560 [ 67.282469][ C0] register_pernet_operations+0x2db/0x710 [ 67.282793][ C0] register_pernet_device+0x2a/0x60 [ 67.283010][ C0] sit_init+0x23/0xe0 [ 67.283198][ C0] do_one_initcall+0x8d/0x1e0 [ 67.283474][ C0] do_initcalls+0x1b2/0x3e0 [ 67.283666][ C0] kernel_init_freeable+0x232/0x310 [ 67.283886][ C0] kernel_init+0x20/0x200 [ 67.284165][ C0] ret_from_fork+0x31/0x70 [ 67.284350][ C0] ret_from_fork_asm+0x1a/0x30 [ 67.284541][ C0] } [ 67.284616][ C0] ... key at: [] __key.37+0x0/0x40 [ 67.284929][ C0] ... acquired at: [ 67.285040][ C0] mark_lock+0x28d/0x3e0 [ 67.285190][ C0] mark_usage+0xd9/0x2a0 [ 67.285334][ C0] __lock_acquire+0x797/0x1570 [ 67.285585][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.285742][ C0] _raw_write_lock+0x30/0x40 [ 67.285893][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.286040][ C0] call_timer_fn+0x13b/0x230 [ 67.286277][ C0] __run_timers+0x545/0x810 [ 67.286421][ C0] run_timer_softirq+0xe8/0x1b0 [ 67.286576][ C0] __do_softirq+0x1f8/0x5df [ 67.286720][ C0] irq_exit_rcu+0x97/0xc0 [ 67.286869][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.287143][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.287332][ C0] default_idle+0xf/0x20 [ 67.287482][ C0] default_idle_call+0x6d/0xb0 [ 67.287743][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.287891][ C0] do_idle+0xf9/0x160 [ 67.288001][ C0] cpu_startup_entry+0x54/0x60 [ 67.288157][ C0] rest_init+0x14f/0x260 [ 67.288312][ C0] start_kernel+0x318/0x3d0 [ 67.288557][ C0] x86_64_start_reservations+0x18/0x30 [ 67.288705][ C0] x86_64_start_kernel+0xba/0x110 [ 67.288853][ C0] common_startup_64+0x12c/0x138 [ 67.289003][ C0] [ 67.289083][ C0] [ 67.289083][ C0] stack backtrace: [ 67.289353][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 67.289574][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 67.289993][ C0] Call Trace: [ 67.290113][ C0] [ 67.290194][ C0] dump_stack_lvl+0x82/0xd0 [ 67.290354][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 67.290540][ C0] ? kernel_text_address+0x17/0xe0 [ 67.290778][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 67.290961][ C0] ? __pfx_usage_skip+0x10/0x10 [ 67.291114][ C0] ? __pfx_usage_match+0x10/0x10 [ 67.291262][ C0] ? arch_stack_walk+0x8c/0xf0 [ 67.291506][ C0] mark_lock_irq+0x4cd/0xa10 [ 67.291651][ C0] ? common_startup_64+0x12c/0x138 [ 67.291802][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 67.291950][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 67.292191][ C0] ? save_trace+0x8f/0x5b0 [ 67.292340][ C0] mark_lock+0x28d/0x3e0 [ 67.292454][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 67.292604][ C0] mark_usage+0xd9/0x2a0 [ 67.292722][ C0] __lock_acquire+0x797/0x1570 [ 67.293052][ C0] ? __pfx_validate_chain+0x10/0x10 [ 67.293200][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.293347][ C0] lock_acquire.part.0+0xeb/0x330 [ 67.293496][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.293729][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 67.293881][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 67.294033][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.294178][ C0] ? lock_acquire+0x32/0xc0 [ 67.294416][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.294562][ C0] _raw_write_lock+0x30/0x40 [ 67.294709][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 67.294855][ C0] addrconf_rs_timer+0xa9/0x730 [ 67.295089][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 67.295239][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.295391][ C0] ? call_timer_fn+0xe8/0x230 [ 67.295542][ C0] ? lock_acquire+0x32/0xc0 [ 67.295687][ C0] ? call_timer_fn+0xe8/0x230 [ 67.295926][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.296073][ C0] call_timer_fn+0x13b/0x230 [ 67.296222][ C0] ? call_timer_fn+0xe8/0x230 [ 67.296371][ C0] ? call_timer_fn+0xe8/0x230 [ 67.296605][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 67.296754][ C0] ? mark_lock+0x38/0x3e0 [ 67.296873][ C0] __run_timers+0x545/0x810 [ 67.297021][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 67.297261][ C0] ? __pfx___run_timers+0x10/0x10 [ 67.297410][ C0] ? do_raw_spin_lock+0x131/0x270 [ 67.297562][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 67.297705][ C0] ? lock_acquire+0x32/0xc0 [ 67.297852][ C0] ? run_timer_softirq+0xe0/0x1b0 [ 67.298087][ C0] run_timer_softirq+0xe8/0x1b0 [ 67.298236][ C0] __do_softirq+0x1f8/0x5df [ 67.298394][ C0] irq_exit_rcu+0x97/0xc0 [ 67.298504][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 67.298741][ C0] [ 67.298823][ C0] [ 67.298897][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 67.299077][ C0] RIP: 0010:default_idle+0xf/0x20 [ 67.299238][ C0] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d 93 20 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 67.299849][ C0] RSP: 0018:ffffffff98007e00 EFLAGS: 00000246 [ 67.300035][ C0] RAX: 00000000000f5dff RBX: 1ffffffff3000fc2 RCX: ffffffff9710f9e5 [ 67.300348][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff94aaa4a4 [ 67.300565][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 67.300879][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 67.301094][ C0] R13: ffffffff9801d000 R14: dffffc0000000000 R15: 0000000000014770 [ 67.301314][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 67.301458][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 67.301689][ C0] default_idle_call+0x6d/0xb0 [ 67.301832][ C0] cpuidle_idle_call+0x1f4/0x280 [ 67.301977][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 67.302128][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 67.302366][ C0] do_idle+0xf9/0x160 [ 67.302476][ C0] cpu_startup_entry+0x54/0x60 [ 67.302623][ C0] rest_init+0x14f/0x260 [ 67.302732][ C0] start_kernel+0x318/0x3d0 [ 67.302878][ C0] x86_64_start_reservations+0x18/0x30 [ 67.303109][ C0] x86_64_start_kernel+0xba/0x110 [ 67.303254][ C0] common_startup_64+0x12c/0x138 [ 67.303408][ C0] [ 67.634122][ T522] GACT probability NOT on