[ 23.244970][ T235] sctp: Hash tables configured (bind 32/56) [ 23.864135][ T240] ip (240) used greatest stack depth: 24032 bytes left [ 31.016387][ C3] [ 31.016496][ C3] ======================================================== [ 31.016729][ C3] WARNING: possible irq lock inversion dependency detected [ 31.016946][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 31.017090][ C3] -------------------------------------------------------- [ 31.017321][ C3] swapper/3/0 just changed the state of lock: [ 31.017514][ C3] ffff888005c5a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.017796][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.018021][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 31.018025][ C3] [ 31.018025][ C3] [ 31.018025][ C3] and interrupts could create inverse lock ordering between them. [ 31.018025][ C3] [ 31.018572][ C3] [ 31.018572][ C3] other info that might help us debug this: [ 31.018793][ C3] Possible interrupt unsafe locking scenario: [ 31.018793][ C3] [ 31.019017][ C3] CPU0 CPU1 [ 31.019170][ C3] ---- ---- [ 31.019322][ C3] lock(&p->alloc_lock); [ 31.019437][ C3] local_irq_disable(); [ 31.019621][ C3] lock(&ndev->lock); [ 31.019812][ C3] lock(&p->alloc_lock); [ 31.020002][ C3] [ 31.020117][ C3] lock(&ndev->lock); [ 31.020240][ C3] [ 31.020240][ C3] *** DEADLOCK *** [ 31.020240][ C3] [ 31.020462][ C3] 1 lock held by swapper/3/0: [ 31.020614][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.020904][ C3] [ 31.020904][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 31.021194][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.021370][ C3] HARDIRQ-ON-W at: [ 31.021492][ C3] __lock_acquire+0x797/0x1570 [ 31.021696][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.021893][ C3] _raw_spin_lock+0x30/0x40 [ 31.022094][ C3] set_mems_allowed+0x1d/0x210 [ 31.022294][ C3] kernel_init_freeable+0x72/0x310 [ 31.022487][ C3] kernel_init+0x20/0x200 [ 31.022682][ C3] ret_from_fork+0x31/0x70 [ 31.022880][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.023071][ C3] SOFTIRQ-ON-W at: [ 31.023183][ C3] __lock_acquire+0x797/0x1570 [ 31.023377][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.023578][ C3] _raw_spin_lock+0x30/0x40 [ 31.023775][ C3] set_mems_allowed+0x1d/0x210 [ 31.023968][ C3] kernel_init_freeable+0x72/0x310 [ 31.024162][ C3] kernel_init+0x20/0x200 [ 31.024361][ C3] ret_from_fork+0x31/0x70 [ 31.024559][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.024746][ C3] INITIAL USE at: [ 31.024869][ C3] __lock_acquire+0x797/0x1570 [ 31.025064][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.025258][ C3] _raw_spin_lock+0x30/0x40 [ 31.025454][ C3] set_mems_allowed+0x1d/0x210 [ 31.025640][ C3] kernel_init_freeable+0x72/0x310 [ 31.025836][ C3] kernel_init+0x20/0x200 [ 31.026048][ C3] ret_from_fork+0x31/0x70 [ 31.026241][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.026436][ C3] } [ 31.026515][ C3] ... key at: [] __key.388+0x0/0x40 [ 31.026748][ C3] ... acquired at: [ 31.026875][ C3] __lock_acquire+0xaf0/0x1570 [ 31.027033][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.027190][ C3] _raw_spin_lock+0x30/0x40 [ 31.027347][ C3] __get_task_comm+0x27/0x70 [ 31.027510][ C3] ref_tracker_alloc+0x2ee/0x490 [ 31.027667][ C3] netdev_get_by_index+0x5e/0x80 [ 31.027824][ C3] fib6_nh_init+0x3d8/0x1580 [ 31.027982][ C3] ip6_route_info_create+0xf18/0x17d0 [ 31.028135][ C3] ip6_route_add+0x1c/0x140 [ 31.028293][ C3] addrconf_prefix_route+0x2a6/0x430 [ 31.028449][ C3] addrconf_permanent_addr+0x32f/0x670 [ 31.028597][ C3] addrconf_notify+0x749/0xd60 [ 31.028746][ C3] notifier_call_chain+0xcd/0x150 [ 31.028898][ C3] __dev_notify_flags+0xe6/0x250 [ 31.029057][ C3] dev_change_flags+0xec/0x160 [ 31.029207][ C3] do_setlink+0x7d6/0x21e0 [ 31.029365][ C3] __rtnl_newlink+0xaa7/0xd80 [ 31.029527][ C3] rtnl_newlink+0x63/0xa0 [ 31.029679][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.029925][ C3] netlink_rcv_skb+0x130/0x360 [ 31.030087][ C3] netlink_unicast+0x449/0x710 [ 31.030244][ C3] netlink_sendmsg+0x723/0xbe0 [ 31.030498][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 31.030655][ C3] ___sys_sendmsg+0xee/0x170 [ 31.030806][ C3] __sys_sendmsg+0xcd/0x170 [ 31.030968][ C3] do_syscall_64+0xc6/0x1e0 [ 31.031204][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.031511][ C3] [ 31.031591][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 31.031753][ C3] HARDIRQ-ON-W at: [ 31.031863][ C3] __lock_acquire+0x797/0x1570 [ 31.032054][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.032257][ C3] _raw_write_lock_bh+0x38/0x50 [ 31.032452][ C3] addrconf_permanent_addr+0x6e/0x670 [ 31.032652][ C3] addrconf_notify+0x749/0xd60 [ 31.032849][ C3] notifier_call_chain+0xcd/0x150 [ 31.033133][ C3] __dev_notify_flags+0xe6/0x250 [ 31.033331][ C3] dev_change_flags+0xec/0x160 [ 31.033521][ C3] do_setlink+0x7d6/0x21e0 [ 31.033796][ C3] __rtnl_newlink+0xaa7/0xd80 [ 31.033994][ C3] rtnl_newlink+0x63/0xa0 [ 31.034192][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.034380][ C3] netlink_rcv_skb+0x130/0x360 [ 31.034653][ C3] netlink_unicast+0x449/0x710 [ 31.034846][ C3] netlink_sendmsg+0x723/0xbe0 [ 31.035029][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 31.035218][ C3] ___sys_sendmsg+0xee/0x170 [ 31.035560][ C3] __sys_sendmsg+0xcd/0x170 [ 31.035751][ C3] do_syscall_64+0xc6/0x1e0 [ 31.035941][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.036179][ C3] HARDIRQ-ON-R at: [ 31.036375][ C3] __lock_acquire+0x797/0x1570 [ 31.036646][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.036840][ C3] _raw_read_lock_bh+0x44/0x80 [ 31.037036][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.037231][ C3] inet6_fill_link_af+0x5e/0xe0 [ 31.037446][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.037737][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.037926][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.038155][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 31.038346][ C3] register_netdevice+0x1177/0x1690 [ 31.038539][ C3] register_netdev+0x20/0x40 [ 31.038730][ C3] vti6_init_net+0x25d/0x380 [ 31.038925][ C3] ops_init+0x9b/0x560 [ 31.039077][ C3] register_pernet_operations+0x2db/0x710 [ 31.039379][ C3] register_pernet_device+0x2a/0x60 [ 31.039567][ C3] vti6_tunnel_init+0x18/0x110 [ 31.039756][ C3] do_one_initcall+0x8d/0x1e0 [ 31.040029][ C3] do_initcalls+0x1b2/0x3e0 [ 31.040223][ C3] kernel_init_freeable+0x232/0x310 [ 31.040416][ C3] kernel_init+0x20/0x200 [ 31.040682][ C3] ret_from_fork+0x31/0x70 [ 31.040874][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.041074][ C3] IN-SOFTIRQ-W at: [ 31.041189][ C3] __lock_acquire+0x797/0x1570 [ 31.041493][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.041684][ C3] _raw_write_lock+0x30/0x40 [ 31.041874][ C3] addrconf_rs_timer+0xa9/0x730 [ 31.042065][ C3] call_timer_fn+0x13b/0x230 [ 31.042257][ C3] __run_timers+0x545/0x810 [ 31.042446][ C3] run_timer_softirq+0xe8/0x1b0 [ 31.042634][ C3] __do_softirq+0x1f8/0x5df [ 31.042827][ C3] irq_exit_rcu+0x97/0xc0 [ 31.043017][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.043249][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.043481][ C3] default_idle+0xf/0x20 [ 31.043830][ C3] default_idle_call+0x6d/0xb0 [ 31.044027][ C3] cpuidle_idle_call+0x1f4/0x280 [ 31.044221][ C3] do_idle+0xf9/0x160 [ 31.044372][ C3] cpu_startup_entry+0x54/0x60 [ 31.044638][ C3] start_secondary+0x21c/0x2b0 [ 31.044836][ C3] common_startup_64+0x12c/0x138 [ 31.045109][ C3] INITIAL USE at: [ 31.045223][ C3] __lock_acquire+0x797/0x1570 [ 31.045406][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.045593][ C3] _raw_write_lock_bh+0x38/0x50 [ 31.045787][ C3] addrconf_permanent_addr+0x6e/0x670 [ 31.045980][ C3] addrconf_notify+0x749/0xd60 [ 31.046174][ C3] notifier_call_chain+0xcd/0x150 [ 31.046485][ C3] __dev_notify_flags+0xe6/0x250 [ 31.046675][ C3] dev_change_flags+0xec/0x160 [ 31.046866][ C3] do_setlink+0x7d6/0x21e0 [ 31.047059][ C3] __rtnl_newlink+0xaa7/0xd80 [ 31.047244][ C3] rtnl_newlink+0x63/0xa0 [ 31.047434][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.047623][ C3] netlink_rcv_skb+0x130/0x360 [ 31.047812][ C3] netlink_unicast+0x449/0x710 [ 31.048001][ C3] netlink_sendmsg+0x723/0xbe0 [ 31.048189][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 31.048454][ C3] ___sys_sendmsg+0xee/0x170 [ 31.048649][ C3] __sys_sendmsg+0xcd/0x170 [ 31.048837][ C3] do_syscall_64+0xc6/0x1e0 [ 31.049024][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.049323][ C3] INITIAL READ USE at: [ 31.049437][ C3] __lock_acquire+0x797/0x1570 [ 31.049628][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.049890][ C3] _raw_read_lock_bh+0x44/0x80 [ 31.050079][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.050305][ C3] inet6_fill_link_af+0x5e/0xe0 [ 31.050568][ C3] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.050756][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.050978][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.051290][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 31.051479][ C3] register_netdevice+0x1177/0x1690 [ 31.051701][ C3] register_netdev+0x20/0x40 [ 31.051887][ C3] vti6_init_net+0x25d/0x380 [ 31.052152][ C3] ops_init+0x9b/0x560 [ 31.052342][ C3] register_pernet_operations+0x2db/0x710 [ 31.052569][ C3] register_pernet_device+0x2a/0x60 [ 31.052871][ C3] vti6_tunnel_init+0x18/0x110 [ 31.053059][ C3] do_one_initcall+0x8d/0x1e0 [ 31.053249][ C3] do_initcalls+0x1b2/0x3e0 [ 31.053592][ C3] kernel_init_freeable+0x232/0x310 [ 31.053815][ C3] kernel_init+0x20/0x200 [ 31.054006][ C3] ret_from_fork+0x31/0x70 [ 31.054273][ C3] ret_from_fork_asm+0x1a/0x30 [ 31.054460][ C3] } [ 31.054538][ C3] ... key at: [] __key.37+0x0/0x40 [ 31.054764][ C3] ... acquired at: [ 31.054948][ C3] mark_lock+0x28d/0x3e0 [ 31.055102][ C3] mark_usage+0xd9/0x2a0 [ 31.055253][ C3] __lock_acquire+0x797/0x1570 [ 31.055406][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.055557][ C3] _raw_write_lock+0x30/0x40 [ 31.055779][ C3] addrconf_rs_timer+0xa9/0x730 [ 31.055929][ C3] call_timer_fn+0x13b/0x230 [ 31.056081][ C3] __run_timers+0x545/0x810 [ 31.056231][ C3] run_timer_softirq+0xe8/0x1b0 [ 31.056489][ C3] __do_softirq+0x1f8/0x5df [ 31.056639][ C3] irq_exit_rcu+0x97/0xc0 [ 31.056788][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.056982][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.057169][ C3] default_idle+0xf/0x20 [ 31.057329][ C3] default_idle_call+0x6d/0xb0 [ 31.057478][ C3] cpuidle_idle_call+0x1f4/0x280 [ 31.057627][ C3] do_idle+0xf9/0x160 [ 31.057740][ C3] cpu_startup_entry+0x54/0x60 [ 31.057886][ C3] start_secondary+0x21c/0x2b0 [ 31.058034][ C3] common_startup_64+0x12c/0x138 [ 31.058186][ C3] [ 31.058263][ C3] [ 31.058263][ C3] stack backtrace: [ 31.058444][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 31.058662][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.059058][ C3] Call Trace: [ 31.059173][ C3] [ 31.059252][ C3] dump_stack_lvl+0x82/0xd0 [ 31.059406][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.059587][ C3] ? kernel_text_address+0x17/0xe0 [ 31.059812][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.059993][ C3] ? __pfx_usage_skip+0x10/0x10 [ 31.060139][ C3] ? __pfx_usage_match+0x10/0x10 [ 31.060287][ C3] ? arch_stack_walk+0x8c/0xf0 [ 31.060510][ C3] mark_lock_irq+0x4cd/0xa10 [ 31.060657][ C3] ? common_startup_64+0x12c/0x138 [ 31.060808][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.060953][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 31.061182][ C3] ? save_trace+0x8f/0x5b0 [ 31.061332][ C3] mark_lock+0x28d/0x3e0 [ 31.061442][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 31.061588][ C3] mark_usage+0xd9/0x2a0 [ 31.061699][ C3] __lock_acquire+0x797/0x1570 [ 31.061921][ C3] ? __pfx_validate_chain+0x10/0x10 [ 31.062071][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.062217][ C3] lock_acquire.part.0+0xeb/0x330 [ 31.062368][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.062592][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.062742][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 31.062890][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.063036][ C3] ? lock_acquire+0x32/0xc0 [ 31.063255][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.063410][ C3] _raw_write_lock+0x30/0x40 [ 31.063562][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 31.063708][ C3] addrconf_rs_timer+0xa9/0x730 [ 31.063855][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.064081][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.064230][ C3] ? call_timer_fn+0xe8/0x230 [ 31.064379][ C3] ? lock_acquire+0x32/0xc0 [ 31.064530][ C3] ? call_timer_fn+0xe8/0x230 [ 31.064825][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.064975][ C3] call_timer_fn+0x13b/0x230 [ 31.065122][ C3] ? call_timer_fn+0xe8/0x230 [ 31.065271][ C3] ? call_timer_fn+0xe8/0x230 [ 31.065489][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 31.065638][ C3] ? mark_lock+0x38/0x3e0 [ 31.065754][ C3] __run_timers+0x545/0x810 [ 31.065901][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.066049][ C3] ? __pfx___run_timers+0x10/0x10 [ 31.066278][ C3] ? do_raw_spin_lock+0x131/0x270 [ 31.066425][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.066575][ C3] ? lock_acquire+0x32/0xc0 [ 31.066722][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 31.066946][ C3] run_timer_softirq+0xe8/0x1b0 [ 31.067093][ C3] __do_softirq+0x1f8/0x5df [ 31.067241][ C3] irq_exit_rcu+0x97/0xc0 [ 31.067353][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.067579][ C3] [ 31.067660][ C3] [ 31.067734][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.067915][ C3] RIP: 0010:default_idle+0xf/0x20 [ 31.068071][ C3] 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 eb 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 [ 31.068675][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 31.068866][ C3] RAX: 00000000000628a1 RBX: 1ffff9200002dfc1 RCX: ffffffff9ed32ea5 [ 31.069093][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9c4ac1d4 [ 31.069315][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 31.069534][ C3] R10: ffff8880361b84e3 R11: ffff8880361bde40 R12: 0000000000000000 [ 31.069757][ C3] R13: ffff888001b98040 R14: dffffc0000000000 R15: 0000000000000000 [ 31.069980][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.070127][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 31.070275][ C3] default_idle_call+0x6d/0xb0 [ 31.070424][ C3] cpuidle_idle_call+0x1f4/0x280 [ 31.070576][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.070724][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.070947][ C3] do_idle+0xf9/0x160 [ 31.071064][ C3] cpu_startup_entry+0x54/0x60 [ 31.071221][ C3] start_secondary+0x21c/0x2b0 [ 31.071367][ C3] ? __pfx_start_secondary+0x10/0x10 [ 31.071515][ C3] common_startup_64+0x12c/0x138 [ 31.071749][ C3]