[ 21.061614][ T197] make (197) used greatest stack depth: 24528 bytes left [ 23.982141][ T247] ip (247) used greatest stack depth: 23856 bytes left [ 32.043259][ C2] [ 32.043366][ C2] ======================================================== [ 32.043586][ C2] WARNING: possible irq lock inversion dependency detected [ 32.043810][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 32.043954][ C2] -------------------------------------------------------- [ 32.044165][ C2] swapper/2/0 just changed the state of lock: [ 32.044351][ C2] ffff888006a92580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.044627][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.044840][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 32.044845][ C2] [ 32.044845][ C2] [ 32.044845][ C2] and interrupts could create inverse lock ordering between them. [ 32.044845][ C2] [ 32.045365][ C2] [ 32.045365][ C2] other info that might help us debug this: [ 32.045582][ C2] Possible interrupt unsafe locking scenario: [ 32.045582][ C2] [ 32.045797][ C2] CPU0 CPU1 [ 32.045938][ C2] ---- ---- [ 32.046083][ C2] lock(&p->alloc_lock); [ 32.046206][ C2] local_irq_disable(); [ 32.046390][ C2] lock(&ndev->lock); [ 32.046569][ C2] lock(&p->alloc_lock); [ 32.046749][ C2] [ 32.046864][ C2] lock(&ndev->lock); [ 32.046976][ C2] [ 32.046976][ C2] *** DEADLOCK *** [ 32.046976][ C2] [ 32.047184][ C2] 1 lock held by swapper/2/0: [ 32.047330][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.047597][ C2] [ 32.047597][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 32.047840][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.047988][ C2] HARDIRQ-ON-W at: [ 32.048099][ C2] __lock_acquire+0x797/0x1570 [ 32.048282][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.048462][ C2] _raw_spin_lock+0x30/0x40 [ 32.048658][ C2] set_mems_allowed+0x1d/0x210 [ 32.048839][ C2] kernel_init_freeable+0x72/0x310 [ 32.049037][ C2] kernel_init+0x20/0x200 [ 32.049226][ C2] ret_from_fork+0x31/0x70 [ 32.049420][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.049618][ C2] SOFTIRQ-ON-W at: [ 32.049729][ C2] __lock_acquire+0x797/0x1570 [ 32.049918][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.050099][ C2] _raw_spin_lock+0x30/0x40 [ 32.050285][ C2] set_mems_allowed+0x1d/0x210 [ 32.050469][ C2] kernel_init_freeable+0x72/0x310 [ 32.050651][ C2] kernel_init+0x20/0x200 [ 32.050837][ C2] ret_from_fork+0x31/0x70 [ 32.051023][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.051202][ C2] INITIAL USE at: [ 32.051314][ C2] __lock_acquire+0x797/0x1570 [ 32.051495][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.051674][ C2] _raw_spin_lock+0x30/0x40 [ 32.051856][ C2] set_mems_allowed+0x1d/0x210 [ 32.052038][ C2] kernel_init_freeable+0x72/0x310 [ 32.052219][ C2] kernel_init+0x20/0x200 [ 32.052397][ C2] ret_from_fork+0x31/0x70 [ 32.052576][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.052757][ C2] } [ 32.052832][ C2] ... key at: [] __key.388+0x0/0x40 [ 32.053051][ C2] ... acquired at: [ 32.053158][ C2] __lock_acquire+0xaf0/0x1570 [ 32.053305][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.053447][ C2] _raw_spin_lock+0x30/0x40 [ 32.053591][ C2] __get_task_comm+0x27/0x70 [ 32.053738][ C2] ref_tracker_alloc+0x2ee/0x490 [ 32.053884][ C2] netdev_get_by_index+0x5e/0x80 [ 32.054026][ C2] fib6_nh_init+0x3d8/0x1580 [ 32.054171][ C2] ip6_route_info_create+0xf18/0x17d0 [ 32.054312][ C2] ip6_route_add+0x1c/0x140 [ 32.054454][ C2] addrconf_prefix_route+0x2a6/0x430 [ 32.054599][ C2] addrconf_permanent_addr+0x32f/0x670 [ 32.054745][ C2] addrconf_notify+0x749/0xd60 [ 32.054885][ C2] notifier_call_chain+0xcd/0x150 [ 32.055029][ C2] __dev_notify_flags+0xe6/0x250 [ 32.055174][ C2] dev_change_flags+0xec/0x160 [ 32.055321][ C2] do_setlink+0x7d6/0x21e0 [ 32.055466][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.055613][ C2] rtnl_newlink+0x63/0xa0 [ 32.055765][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.055909][ C2] netlink_rcv_skb+0x130/0x360 [ 32.056060][ C2] netlink_unicast+0x449/0x710 [ 32.056215][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.056359][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.056505][ C2] ___sys_sendmsg+0xee/0x170 [ 32.056653][ C2] __sys_sendmsg+0xcd/0x170 [ 32.056798][ C2] do_syscall_64+0xc6/0x1e0 [ 32.056943][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.057123][ C2] [ 32.057196][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 32.057423][ C2] HARDIRQ-ON-W at: [ 32.057537][ C2] __lock_acquire+0x797/0x1570 [ 32.057718][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.057900][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.058159][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.058340][ C2] addrconf_notify+0x749/0xd60 [ 32.058520][ C2] notifier_call_chain+0xcd/0x150 [ 32.058699][ C2] __dev_notify_flags+0xe6/0x250 [ 32.058954][ C2] dev_change_flags+0xec/0x160 [ 32.059144][ C2] do_setlink+0x7d6/0x21e0 [ 32.059331][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.059599][ C2] rtnl_newlink+0x63/0xa0 [ 32.059780][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.059958][ C2] netlink_rcv_skb+0x130/0x360 [ 32.060244][ C2] netlink_unicast+0x449/0x710 [ 32.060432][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.060613][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.060794][ C2] ___sys_sendmsg+0xee/0x170 [ 32.060978][ C2] __sys_sendmsg+0xcd/0x170 [ 32.061161][ C2] do_syscall_64+0xc6/0x1e0 [ 32.061343][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.061561][ C2] HARDIRQ-ON-R at: [ 32.061673][ C2] __lock_acquire+0x797/0x1570 [ 32.061858][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.062040][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.062299][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.062478][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.062655][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 32.062834][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.063014][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.063226][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.063404][ C2] register_netdevice+0x1177/0x1690 [ 32.063583][ C2] register_netdev+0x20/0x40 [ 32.063761][ C2] vti6_init_net+0x25d/0x380 [ 32.063940][ C2] ops_init+0x9b/0x560 [ 32.064241][ C2] register_pernet_operations+0x2db/0x710 [ 32.064457][ C2] register_pernet_device+0x2a/0x60 [ 32.064638][ C2] vti6_tunnel_init+0x18/0x110 [ 32.064893][ C2] do_one_initcall+0x8d/0x1e0 [ 32.065074][ C2] do_initcalls+0x1b2/0x3e0 [ 32.065258][ C2] kernel_init_freeable+0x232/0x310 [ 32.065451][ C2] kernel_init+0x20/0x200 [ 32.065719][ C2] ret_from_fork+0x31/0x70 [ 32.065901][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.066087][ C2] IN-SOFTIRQ-W at: [ 32.066288][ C2] __lock_acquire+0x797/0x1570 [ 32.066473][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.066652][ C2] _raw_write_lock+0x30/0x40 [ 32.066849][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.067035][ C2] call_timer_fn+0x13b/0x230 [ 32.067223][ C2] __run_timers+0x545/0x810 [ 32.067415][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.067599][ C2] __do_softirq+0x1f8/0x5df [ 32.067782][ C2] irq_exit_rcu+0x97/0xc0 [ 32.067963][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.068273][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.068492][ C2] default_idle+0xf/0x20 [ 32.068671][ C2] default_idle_call+0x6d/0xb0 [ 32.068859][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.069053][ C2] do_idle+0xf9/0x160 [ 32.069199][ C2] cpu_startup_entry+0x54/0x60 [ 32.069381][ C2] start_secondary+0x21c/0x2b0 [ 32.069566][ C2] common_startup_64+0x12c/0x138 [ 32.069754][ C2] INITIAL USE at: [ 32.069864][ C2] __lock_acquire+0x797/0x1570 [ 32.070046][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.070321][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.070506][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.070695][ C2] addrconf_notify+0x749/0xd60 [ 32.070887][ C2] notifier_call_chain+0xcd/0x150 [ 32.071075][ C2] __dev_notify_flags+0xe6/0x250 [ 32.071263][ C2] dev_change_flags+0xec/0x160 [ 32.071446][ C2] do_setlink+0x7d6/0x21e0 [ 32.071629][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.071815][ C2] rtnl_newlink+0x63/0xa0 [ 32.072002][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.072268][ C2] netlink_rcv_skb+0x130/0x360 [ 32.072446][ C2] netlink_unicast+0x449/0x710 [ 32.072630][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.072818][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.073004][ C2] ___sys_sendmsg+0xee/0x170 [ 32.073196][ C2] __sys_sendmsg+0xcd/0x170 [ 32.073379][ C2] do_syscall_64+0xc6/0x1e0 [ 32.073566][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.073784][ C2] INITIAL READ USE at: [ 32.073903][ C2] __lock_acquire+0x797/0x1570 [ 32.074082][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.074347][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.074537][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.074760][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.074942][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 32.075124][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.075346][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.075646][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.075826][ C2] register_netdevice+0x1177/0x1690 [ 32.076050][ C2] register_netdev+0x20/0x40 [ 32.076325][ C2] vti6_init_net+0x25d/0x380 [ 32.076508][ C2] ops_init+0x9b/0x560 [ 32.076688][ C2] register_pernet_operations+0x2db/0x710 [ 32.076914][ C2] register_pernet_device+0x2a/0x60 [ 32.077132][ C2] vti6_tunnel_init+0x18/0x110 [ 32.077313][ C2] do_one_initcall+0x8d/0x1e0 [ 32.077493][ C2] do_initcalls+0x1b2/0x3e0 [ 32.077672][ C2] kernel_init_freeable+0x232/0x310 [ 32.077890][ C2] kernel_init+0x20/0x200 [ 32.078071][ C2] ret_from_fork+0x31/0x70 [ 32.078329][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.078510][ C2] } [ 32.078584][ C2] ... key at: [] __key.37+0x0/0x40 [ 32.078874][ C2] ... acquired at: [ 32.078980][ C2] mark_lock+0x28d/0x3e0 [ 32.079124][ C2] mark_usage+0xd9/0x2a0 [ 32.079269][ C2] __lock_acquire+0x797/0x1570 [ 32.079416][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.079634][ C2] _raw_write_lock+0x30/0x40 [ 32.079780][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.079924][ C2] call_timer_fn+0x13b/0x230 [ 32.080067][ C2] __run_timers+0x545/0x810 [ 32.080299][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.080446][ C2] __do_softirq+0x1f8/0x5df [ 32.080592][ C2] irq_exit_rcu+0x97/0xc0 [ 32.080737][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.080925][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.081106][ C2] default_idle+0xf/0x20 [ 32.081253][ C2] default_idle_call+0x6d/0xb0 [ 32.081396][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.081543][ C2] do_idle+0xf9/0x160 [ 32.081654][ C2] cpu_startup_entry+0x54/0x60 [ 32.081800][ C2] start_secondary+0x21c/0x2b0 [ 32.081952][ C2] common_startup_64+0x12c/0x138 [ 32.082101][ C2] [ 32.082256][ C2] [ 32.082256][ C2] stack backtrace: [ 32.082433][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 32.082650][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.082970][ C2] Call Trace: [ 32.083084][ C2] [ 32.083160][ C2] dump_stack_lvl+0x82/0xd0 [ 32.083311][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.083491][ C2] ? kernel_text_address+0x17/0xe0 [ 32.083641][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.083821][ C2] ? __pfx_usage_skip+0x10/0x10 [ 32.083963][ C2] ? __pfx_usage_match+0x10/0x10 [ 32.084183][ C2] ? arch_stack_walk+0x8c/0xf0 [ 32.084329][ C2] mark_lock_irq+0x4cd/0xa10 [ 32.084480][ C2] ? common_startup_64+0x12c/0x138 [ 32.084626][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.084856][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.085003][ C2] ? save_trace+0x8f/0x5b0 [ 32.085147][ C2] mark_lock+0x28d/0x3e0 [ 32.085261][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.085410][ C2] mark_usage+0xd9/0x2a0 [ 32.085667][ C2] __lock_acquire+0x797/0x1570 [ 32.085811][ C2] ? __pfx_validate_chain+0x10/0x10 [ 32.085958][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.086106][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.086341][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.086487][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.086632][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 32.086780][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.086923][ C2] ? lock_acquire+0x32/0xc0 [ 32.087146][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.087297][ C2] _raw_write_lock+0x30/0x40 [ 32.087442][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.087592][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.087811][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.087961][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.088105][ C2] ? call_timer_fn+0xe8/0x230 [ 32.088248][ C2] ? lock_acquire+0x32/0xc0 [ 32.088469][ C2] ? call_timer_fn+0xe8/0x230 [ 32.088610][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.088758][ C2] call_timer_fn+0x13b/0x230 [ 32.088899][ C2] ? call_timer_fn+0xe8/0x230 [ 32.089114][ C2] ? call_timer_fn+0xe8/0x230 [ 32.089257][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 32.089404][ C2] ? mark_lock+0x38/0x3e0 [ 32.089521][ C2] __run_timers+0x545/0x810 [ 32.089662][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.089883][ C2] ? __pfx___run_timers+0x10/0x10 [ 32.090031][ C2] ? do_raw_spin_lock+0x131/0x270 [ 32.090175][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.090321][ C2] ? lock_acquire+0x32/0xc0 [ 32.090535][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 32.090680][ C2] run_timer_softirq+0xe8/0x1b0 [ 32.090835][ C2] __do_softirq+0x1f8/0x5df [ 32.090981][ C2] irq_exit_rcu+0x97/0xc0 [ 32.091089][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.091311][ C2] [ 32.091393][ C2] [ 32.091470][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.091649][ C2] RIP: 0010:default_idle+0xf/0x20 [ 32.091804][ C2] 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 d3 fb 32 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 32.092330][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 32.092522][ C2] RAX: 00000000000d09d7 RBX: 1ffff9200002bfc1 RCX: ffffffff8bb31ea5 [ 32.092746][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff892ac1d4 [ 32.092962][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 32.093259][ C2] R10: ffff8880361384e3 R11: 1ffff110003ab28c R12: 0000000000000000 [ 32.093477][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 32.093707][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.093928][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 32.094076][ C2] default_idle_call+0x6d/0xb0 [ 32.094214][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.094369][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.094585][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.094736][ C2] do_idle+0xf9/0x160 [ 32.094844][ C2] cpu_startup_entry+0x54/0x60 [ 32.094991][ C2] start_secondary+0x21c/0x2b0 [ 32.095133][ C2] ? __pfx_start_secondary+0x10/0x10 [ 32.095364][ C2] common_startup_64+0x12c/0x138 [ 32.095508][ C2]