[ 26.563822][ T261] ip (261) used greatest stack depth: 23888 bytes left [ 32.114008][ C3] [ 32.114112][ C3] ======================================================== [ 32.114315][ C3] WARNING: possible irq lock inversion dependency detected [ 32.114512][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 32.114643][ C3] -------------------------------------------------------- [ 32.114836][ C3] swapper/3/0 just changed the state of lock: [ 32.115002][ C3] ffff888007e58d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.115244][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.115438][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 32.115442][ C3] [ 32.115442][ C3] [ 32.115442][ C3] and interrupts could create inverse lock ordering between them. [ 32.115442][ C3] [ 32.115922][ C3] [ 32.115922][ C3] other info that might help us debug this: [ 32.116115][ C3] Possible interrupt unsafe locking scenario: [ 32.116115][ C3] [ 32.116308][ C3] CPU0 CPU1 [ 32.116440][ C3] ---- ---- [ 32.116568][ C3] lock(&p->alloc_lock); [ 32.116672][ C3] local_irq_disable(); [ 32.116838][ C3] lock(&ndev->lock); [ 32.117003][ C3] lock(&p->alloc_lock); [ 32.117170][ C3] [ 32.117277][ C3] lock(&ndev->lock); [ 32.117381][ C3] [ 32.117381][ C3] *** DEADLOCK *** [ 32.117381][ C3] [ 32.117577][ C3] 1 lock held by swapper/3/0: [ 32.117724][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.117966][ C3] [ 32.117966][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 32.118189][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.118330][ C3] HARDIRQ-ON-W at: [ 32.118430][ C3] __lock_acquire+0x797/0x1570 [ 32.118601][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.118765][ C3] _raw_spin_lock+0x30/0x40 [ 32.118933][ C3] set_mems_allowed+0x1d/0x210 [ 32.119101][ C3] kernel_init_freeable+0x72/0x310 [ 32.119264][ C3] kernel_init+0x20/0x200 [ 32.119427][ C3] ret_from_fork+0x31/0x70 [ 32.119596][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.119762][ C3] SOFTIRQ-ON-W at: [ 32.119861][ C3] __lock_acquire+0x797/0x1570 [ 32.120026][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.120191][ C3] _raw_spin_lock+0x30/0x40 [ 32.120354][ C3] set_mems_allowed+0x1d/0x210 [ 32.120518][ C3] kernel_init_freeable+0x72/0x310 [ 32.120683][ C3] kernel_init+0x20/0x200 [ 32.120846][ C3] ret_from_fork+0x31/0x70 [ 32.121009][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.121173][ C3] INITIAL USE at: [ 32.121270][ C3] __lock_acquire+0x797/0x1570 [ 32.121434][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.121599][ C3] _raw_spin_lock+0x30/0x40 [ 32.121763][ C3] set_mems_allowed+0x1d/0x210 [ 32.121927][ C3] kernel_init_freeable+0x72/0x310 [ 32.122089][ C3] kernel_init+0x20/0x200 [ 32.122253][ C3] ret_from_fork+0x31/0x70 [ 32.122417][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.122590][ C3] } [ 32.122659][ C3] ... key at: [] __key.387+0x0/0x40 [ 32.122858][ C3] ... acquired at: [ 32.122957][ C3] __lock_acquire+0xaf0/0x1570 [ 32.123089][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.123220][ C3] _raw_spin_lock+0x30/0x40 [ 32.123350][ C3] __get_task_comm+0x27/0x70 [ 32.123486][ C3] ref_tracker_alloc+0x2ee/0x490 [ 32.123619][ C3] netdev_get_by_index+0x5e/0x80 [ 32.123752][ C3] fib6_nh_init+0x3d8/0x15b0 [ 32.123885][ C3] ip6_route_info_create+0xf18/0x17d0 [ 32.124017][ C3] ip6_route_add+0x1c/0x140 [ 32.124147][ C3] addrconf_prefix_route+0x1cc/0x2b0 [ 32.124280][ C3] addrconf_permanent_addr+0x32f/0x670 [ 32.124411][ C3] addrconf_notify+0x749/0xd60 [ 32.124542][ C3] notifier_call_chain+0xcd/0x150 [ 32.124677][ C3] __dev_notify_flags+0xe6/0x250 [ 32.124809][ C3] dev_change_flags+0xec/0x160 [ 32.124940][ C3] do_setlink+0x7d6/0x21e0 [ 32.125071][ C3] __rtnl_newlink+0xaa7/0xd80 [ 32.125201][ C3] rtnl_newlink+0x63/0xa0 [ 32.125332][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.125461][ C3] netlink_rcv_skb+0x130/0x360 [ 32.125594][ C3] netlink_unicast+0x449/0x710 [ 32.125726][ C3] netlink_sendmsg+0x723/0xbe0 [ 32.125859][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 32.125993][ C3] ___sys_sendmsg+0xee/0x170 [ 32.126125][ C3] __sys_sendmsg+0xcd/0x170 [ 32.126331][ C3] do_syscall_64+0xc6/0x1e0 [ 32.126467][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.126631][ C3] [ 32.126697][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 32.126831][ C3] HARDIRQ-ON-W at: [ 32.127004][ C3] __lock_acquire+0x797/0x1570 [ 32.127169][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.127333][ C3] _raw_write_lock_bh+0x38/0x50 [ 32.127497][ C3] addrconf_permanent_addr+0x6e/0x670 [ 32.127660][ C3] addrconf_notify+0x749/0xd60 [ 32.127824][ C3] notifier_call_chain+0xcd/0x150 [ 32.127986][ C3] __dev_notify_flags+0xe6/0x250 [ 32.128228][ C3] dev_change_flags+0xec/0x160 [ 32.128391][ C3] do_setlink+0x7d6/0x21e0 [ 32.128554][ C3] __rtnl_newlink+0xaa7/0xd80 [ 32.128792][ C3] rtnl_newlink+0x63/0xa0 [ 32.128955][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.129128][ C3] netlink_rcv_skb+0x130/0x360 [ 32.129292][ C3] netlink_unicast+0x449/0x710 [ 32.129530][ C3] netlink_sendmsg+0x723/0xbe0 [ 32.129692][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 32.129856][ C3] ___sys_sendmsg+0xee/0x170 [ 32.130105][ C3] __sys_sendmsg+0xcd/0x170 [ 32.130267][ C3] do_syscall_64+0xc6/0x1e0 [ 32.130429][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.130627][ C3] HARDIRQ-ON-R at: [ 32.130725][ C3] __lock_acquire+0x797/0x1570 [ 32.130889][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.131051][ C3] _raw_read_lock_bh+0x44/0x80 [ 32.131214][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.131378][ C3] inet6_fill_link_af+0x5e/0xe0 [ 32.131540][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.131781][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.131945][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.132140][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 32.132302][ C3] register_netdevice+0x1177/0x1690 [ 32.132541][ C3] register_netdev+0x20/0x40 [ 32.132713][ C3] sit_init_net+0x250/0x4f0 [ 32.132880][ C3] ops_init+0x9b/0x560 [ 32.133090][ C3] register_pernet_operations+0x2db/0x710 [ 32.133287][ C3] register_pernet_device+0x2a/0x60 [ 32.133451][ C3] sit_init+0x23/0xe0 [ 32.133585][ C3] do_one_initcall+0x8d/0x1e0 [ 32.133823][ C3] do_initcalls+0x1b2/0x3e0 [ 32.133992][ C3] kernel_init_freeable+0x232/0x310 [ 32.134154][ C3] kernel_init+0x20/0x200 [ 32.134393][ C3] ret_from_fork+0x31/0x70 [ 32.134556][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.134719][ C3] IN-SOFTIRQ-W at: [ 32.134816][ C3] __lock_acquire+0x797/0x1570 [ 32.135059][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.135222][ C3] _raw_write_lock+0x30/0x40 [ 32.135386][ C3] addrconf_rs_timer+0xa9/0x730 [ 32.135548][ C3] call_timer_fn+0x13b/0x230 [ 32.135712][ C3] __run_timers+0x545/0x810 [ 32.135873][ C3] run_timer_softirq+0xe8/0x1b0 [ 32.136037][ C3] __do_softirq+0x1f8/0x5df [ 32.136200][ C3] irq_exit_rcu+0x97/0xc0 [ 32.136366][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.136561][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.136831][ C3] default_idle+0xf/0x20 [ 32.136997][ C3] default_idle_call+0x6d/0xb0 [ 32.137160][ C3] cpuidle_idle_call+0x1f4/0x280 [ 32.137401][ C3] do_idle+0xf9/0x160 [ 32.137537][ C3] cpu_startup_entry+0x54/0x60 [ 32.137699][ C3] start_secondary+0x21c/0x2b0 [ 32.137864][ C3] common_startup_64+0x12c/0x138 [ 32.138202][ C3] INITIAL USE at: [ 32.138300][ C3] __lock_acquire+0x797/0x1570 [ 32.138463][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.138627][ C3] _raw_write_lock_bh+0x38/0x50 [ 32.138793][ C3] addrconf_permanent_addr+0x6e/0x670 [ 32.138956][ C3] addrconf_notify+0x749/0xd60 [ 32.139122][ C3] notifier_call_chain+0xcd/0x150 [ 32.139287][ C3] __dev_notify_flags+0xe6/0x250 [ 32.139449][ C3] dev_change_flags+0xec/0x160 [ 32.139612][ C3] do_setlink+0x7d6/0x21e0 [ 32.139852][ C3] __rtnl_newlink+0xaa7/0xd80 [ 32.140014][ C3] rtnl_newlink+0x63/0xa0 [ 32.140176][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.140340][ C3] netlink_rcv_skb+0x130/0x360 [ 32.140579][ C3] netlink_unicast+0x449/0x710 [ 32.140742][ C3] netlink_sendmsg+0x723/0xbe0 [ 32.140907][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 32.141147][ C3] ___sys_sendmsg+0xee/0x170 [ 32.141311][ C3] __sys_sendmsg+0xcd/0x170 [ 32.141476][ C3] do_syscall_64+0xc6/0x1e0 [ 32.141714][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.141908][ C3] INITIAL READ USE at: [ 32.142006][ C3] __lock_acquire+0x797/0x1570 [ 32.142171][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.142409][ C3] _raw_read_lock_bh+0x44/0x80 [ 32.142579][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.142786][ C3] inet6_fill_link_af+0x5e/0xe0 [ 32.143038][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.143201][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.143398][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.143592][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 32.143753][ C3] register_netdevice+0x1177/0x1690 [ 32.143947][ C3] register_netdev+0x20/0x40 [ 32.144114][ C3] sit_init_net+0x250/0x4f0 [ 32.144278][ C3] ops_init+0x9b/0x560 [ 32.144443][ C3] register_pernet_operations+0x2db/0x710 [ 32.144638][ C3] register_pernet_device+0x2a/0x60 [ 32.144906][ C3] sit_init+0x23/0xe0 [ 32.145069][ C3] do_one_initcall+0x8d/0x1e0 [ 32.145256][ C3] do_initcalls+0x1b2/0x3e0 [ 32.145510][ C3] kernel_init_freeable+0x232/0x310 [ 32.145721][ C3] kernel_init+0x20/0x200 [ 32.145884][ C3] ret_from_fork+0x31/0x70 [ 32.146124][ C3] ret_from_fork_asm+0x1a/0x30 [ 32.146289][ C3] } [ 32.146354][ C3] ... key at: [] __key.36+0x0/0x40 [ 32.146548][ C3] ... acquired at: [ 32.146717][ C3] mark_lock+0x28d/0x3e0 [ 32.146850][ C3] mark_usage+0xd9/0x2a0 [ 32.146981][ C3] __lock_acquire+0x797/0x1570 [ 32.147112][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.147316][ C3] _raw_write_lock+0x30/0x40 [ 32.147446][ C3] addrconf_rs_timer+0xa9/0x730 [ 32.147575][ C3] call_timer_fn+0x13b/0x230 [ 32.147706][ C3] __run_timers+0x545/0x810 [ 32.147837][ C3] run_timer_softirq+0xe8/0x1b0 [ 32.148134][ C3] __do_softirq+0x1f8/0x5df [ 32.148265][ C3] irq_exit_rcu+0x97/0xc0 [ 32.148395][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.148558][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.148722][ C3] default_idle+0xf/0x20 [ 32.148854][ C3] default_idle_call+0x6d/0xb0 [ 32.148983][ C3] cpuidle_idle_call+0x1f4/0x280 [ 32.149116][ C3] do_idle+0xf9/0x160 [ 32.149215][ C3] cpu_startup_entry+0x54/0x60 [ 32.149347][ C3] start_secondary+0x21c/0x2b0 [ 32.149478][ C3] common_startup_64+0x12c/0x138 [ 32.149607][ C3] [ 32.149673][ C3] [ 32.149673][ C3] stack backtrace: [ 32.149902][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 32.150096][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.150456][ C3] Call Trace: [ 32.150565][ C3] [ 32.150633][ C3] dump_stack_lvl+0x82/0xd0 [ 32.150772][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.150935][ C3] ? kernel_text_address+0x17/0xe0 [ 32.151149][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.151312][ C3] ? __pfx_usage_skip+0x10/0x10 [ 32.151441][ C3] ? __pfx_usage_match+0x10/0x10 [ 32.151569][ C3] ? arch_stack_walk+0x8c/0xf0 [ 32.151702][ C3] mark_lock_irq+0x4cd/0xa10 [ 32.151833][ C3] ? common_startup_64+0x12c/0x138 [ 32.151964][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.152095][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 32.152302][ C3] ? save_trace+0x8f/0x5b0 [ 32.152434][ C3] mark_lock+0x28d/0x3e0 [ 32.152532][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 32.152671][ C3] mark_usage+0xd9/0x2a0 [ 32.152772][ C3] __lock_acquire+0x797/0x1570 [ 32.152978][ C3] ? __pfx_validate_chain+0x10/0x10 [ 32.153108][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.153238][ C3] lock_acquire.part.0+0xeb/0x330 [ 32.153368][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.153572][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.153703][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 32.153832][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.153964][ C3] ? lock_acquire+0x32/0xc0 [ 32.154168][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.154299][ C3] _raw_write_lock+0x30/0x40 [ 32.154428][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 32.154556][ C3] addrconf_rs_timer+0xa9/0x730 [ 32.154759][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.154888][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.155017][ C3] ? call_timer_fn+0xe8/0x230 [ 32.155147][ C3] ? lock_acquire+0x32/0xc0 [ 32.155280][ C3] ? call_timer_fn+0xe8/0x230 [ 32.155485][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.155615][ C3] call_timer_fn+0x13b/0x230 [ 32.155743][ C3] ? call_timer_fn+0xe8/0x230 [ 32.155872][ C3] ? call_timer_fn+0xe8/0x230 [ 32.156091][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 32.156220][ C3] ? mark_lock+0x38/0x3e0 [ 32.156322][ C3] __run_timers+0x545/0x810 [ 32.156450][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.156585][ C3] ? __pfx___run_timers+0x10/0x10 [ 32.156715][ C3] ? do_raw_spin_lock+0x131/0x270 [ 32.156845][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.156975][ C3] ? lock_acquire+0x32/0xc0 [ 32.157105][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 32.157236][ C3] run_timer_softirq+0xe8/0x1b0 [ 32.157366][ C3] __do_softirq+0x1f8/0x5df [ 32.157496][ C3] irq_exit_rcu+0x97/0xc0 [ 32.157596][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.157873][ C3] [ 32.157941][ C3] [ 32.158007][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.158169][ C3] RIP: 0010:default_idle+0xf/0x20 [ 32.158307][ 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 c3 d1 2b 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.158849][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 32.159013][ C3] RAX: 0000000000081215 RBX: 1ffff9200002dfc1 RCX: ffffffffa01a48b5 [ 32.159295][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9daaa4a4 [ 32.159488][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 32.159680][ C3] R10: ffff8880361b84e3 R11: 1ffff110003a934c R12: 0000000000000000 [ 32.159877][ C3] R13: ffff888001b90040 R14: dffffc0000000000 R15: 0000000000000000 [ 32.160072][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.160214][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 32.160418][ C3] default_idle_call+0x6d/0xb0 [ 32.160547][ C3] cpuidle_idle_call+0x1f4/0x280 [ 32.160677][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.160808][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.161019][ C3] do_idle+0xf9/0x160 [ 32.161118][ C3] cpu_startup_entry+0x54/0x60 [ 32.161248][ C3] start_secondary+0x21c/0x2b0 [ 32.161377][ C3] ? __pfx_start_secondary+0x10/0x10 [ 32.161508][ C3] common_startup_64+0x12c/0x138 [ 32.161640][ C3]