[ 30.568602][ C2] [ 30.568708][ C2] ======================================================== [ 30.569011][ C2] WARNING: possible irq lock inversion dependency detected [ 30.569312][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 30.569518][ C2] -------------------------------------------------------- [ 30.569827][ C2] swapper/2/0 just changed the state of lock: [ 30.570082][ C2] ffff888005966d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 30.570454][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 30.570752][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 30.570759][ C2] [ 30.570759][ C2] [ 30.570759][ C2] and interrupts could create inverse lock ordering between them. [ 30.570759][ C2] [ 30.571500][ C2] [ 30.571500][ C2] other info that might help us debug this: [ 30.571809][ C2] Possible interrupt unsafe locking scenario: [ 30.571809][ C2] [ 30.572114][ C2] CPU0 CPU1 [ 30.572318][ C2] ---- ---- [ 30.572523][ C2] lock(&p->alloc_lock); [ 30.572687][ C2] local_irq_disable(); [ 30.572949][ C2] lock(&ndev->lock); [ 30.573209][ C2] lock(&p->alloc_lock); [ 30.573466][ C2] [ 30.573624][ C2] lock(&ndev->lock); [ 30.573784][ C2] [ 30.573784][ C2] *** DEADLOCK *** [ 30.573784][ C2] [ 30.574080][ C2] 1 lock held by swapper/2/0: [ 30.574285][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 30.574666][ C2] [ 30.574666][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 30.575016][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 30.575236][ C2] HARDIRQ-ON-W at: [ 30.575395][ C2] __lock_acquire+0x797/0x1570 [ 30.575661][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.575924][ C2] _raw_spin_lock+0x30/0x40 [ 30.576188][ C2] set_mems_allowed+0x1d/0x210 [ 30.576449][ C2] kernel_init_freeable+0x72/0x310 [ 30.576716][ C2] kernel_init+0x20/0x200 [ 30.576983][ C2] ret_from_fork+0x31/0x70 [ 30.577246][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.577506][ C2] SOFTIRQ-ON-W at: [ 30.577661][ C2] __lock_acquire+0x797/0x1570 [ 30.577923][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.578189][ C2] _raw_spin_lock+0x30/0x40 [ 30.578451][ C2] set_mems_allowed+0x1d/0x210 [ 30.578713][ C2] kernel_init_freeable+0x72/0x310 [ 30.578974][ C2] kernel_init+0x20/0x200 [ 30.579236][ C2] ret_from_fork+0x31/0x70 [ 30.579499][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.579757][ C2] INITIAL USE at: [ 30.579917][ C2] __lock_acquire+0x797/0x1570 [ 30.580179][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.580440][ C2] _raw_spin_lock+0x30/0x40 [ 30.580700][ C2] set_mems_allowed+0x1d/0x210 [ 30.580964][ C2] kernel_init_freeable+0x72/0x310 [ 30.581228][ C2] kernel_init+0x20/0x200 [ 30.581492][ C2] ret_from_fork+0x31/0x70 [ 30.581752][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.582012][ C2] } [ 30.582121][ C2] ... key at: [] __key.388+0x0/0x40 [ 30.582433][ C2] ... acquired at: [ 30.582587][ C2] __lock_acquire+0xaf0/0x1570 [ 30.582799][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.583009][ C2] _raw_spin_lock+0x30/0x40 [ 30.583217][ C2] __get_task_comm+0x27/0x70 [ 30.583429][ C2] ref_tracker_alloc+0x2ee/0x490 [ 30.583637][ C2] netdev_get_by_index+0x5e/0x80 [ 30.583843][ C2] fib6_nh_init+0x3d8/0x1580 [ 30.584053][ C2] ip6_route_info_create+0xf18/0x17d0 [ 30.584261][ C2] ip6_route_add+0x1c/0x140 [ 30.584476][ C2] addrconf_prefix_route+0x2a6/0x430 [ 30.584687][ C2] addrconf_permanent_addr+0x32f/0x670 [ 30.584895][ C2] addrconf_notify+0x749/0xd60 [ 30.585102][ C2] notifier_call_chain+0xcd/0x150 [ 30.585309][ C2] __dev_notify_flags+0xe6/0x250 [ 30.585517][ C2] dev_change_flags+0xec/0x160 [ 30.585726][ C2] do_setlink+0x7d6/0x21e0 [ 30.585934][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.586143][ C2] rtnl_newlink+0x63/0xa0 [ 30.586350][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.586562][ C2] netlink_rcv_skb+0x130/0x360 [ 30.586771][ C2] netlink_unicast+0x449/0x710 [ 30.586979][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.587187][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.587395][ C2] ___sys_sendmsg+0xee/0x170 [ 30.587603][ C2] __sys_sendmsg+0xcd/0x170 [ 30.587811][ C2] do_syscall_64+0xc6/0x1e0 [ 30.588018][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.588281][ C2] [ 30.588387][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 30.588601][ C2] HARDIRQ-ON-W at: [ 30.588760][ C2] __lock_acquire+0x797/0x1570 [ 30.589030][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.589290][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.589551][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.589813][ C2] addrconf_notify+0x749/0xd60 [ 30.590078][ C2] notifier_call_chain+0xcd/0x150 [ 30.590338][ C2] __dev_notify_flags+0xe6/0x250 [ 30.590602][ C2] dev_change_flags+0xec/0x160 [ 30.590861][ C2] do_setlink+0x7d6/0x21e0 [ 30.591125][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.591385][ C2] rtnl_newlink+0x63/0xa0 [ 30.591649][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.591912][ C2] netlink_rcv_skb+0x130/0x360 [ 30.592173][ C2] netlink_unicast+0x449/0x710 [ 30.592434][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.592695][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.592956][ C2] ___sys_sendmsg+0xee/0x170 [ 30.593225][ C2] __sys_sendmsg+0xcd/0x170 [ 30.593489][ C2] do_syscall_64+0xc6/0x1e0 [ 30.593746][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.594063][ C2] HARDIRQ-ON-R at: [ 30.594220][ C2] __lock_acquire+0x797/0x1570 [ 30.594530][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.594792][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.595054][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.595318][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.595579][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.595841][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.596102][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.596412][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.596678][ C2] register_netdevice+0x1177/0x1690 [ 30.596944][ C2] register_netdev+0x20/0x40 [ 30.597201][ C2] vti6_init_net+0x25d/0x380 [ 30.597460][ C2] ops_init+0x9b/0x560 [ 30.597669][ C2] register_pernet_operations+0x2db/0x710 [ 30.597978][ C2] register_pernet_device+0x2a/0x60 [ 30.598246][ C2] vti6_tunnel_init+0x18/0x110 [ 30.598513][ C2] do_one_initcall+0x8d/0x1e0 [ 30.598773][ C2] do_initcalls+0x1b2/0x3e0 [ 30.599037][ C2] kernel_init_freeable+0x232/0x310 [ 30.599297][ C2] kernel_init+0x20/0x200 [ 30.599563][ C2] ret_from_fork+0x31/0x70 [ 30.599822][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.600086][ C2] IN-SOFTIRQ-W at: [ 30.600242][ C2] __lock_acquire+0x797/0x1570 [ 30.600503][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.600767][ C2] _raw_write_lock+0x30/0x40 [ 30.601026][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.601287][ C2] call_timer_fn+0x13b/0x230 [ 30.601548][ C2] __run_timers+0x545/0x810 [ 30.601811][ C2] run_timer_softirq+0xe8/0x1b0 [ 30.602076][ C2] __do_softirq+0x1f8/0x5df [ 30.602336][ C2] irq_exit_rcu+0x97/0xc0 [ 30.602595][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.602906][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.603218][ C2] default_idle+0xf/0x20 [ 30.603483][ C2] default_idle_call+0x6d/0xb0 [ 30.603743][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.604004][ C2] do_idle+0xf9/0x160 [ 30.604214][ C2] cpu_startup_entry+0x54/0x60 [ 30.604483][ C2] start_secondary+0x21c/0x2b0 [ 30.604749][ C2] common_startup_64+0x12c/0x138 [ 30.605140][ C2] INITIAL USE at: [ 30.605299][ C2] __lock_acquire+0x797/0x1570 [ 30.605557][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.605956][ C2] _raw_write_lock_bh+0x38/0x50 [ 30.606219][ C2] addrconf_permanent_addr+0x6e/0x670 [ 30.606480][ C2] addrconf_notify+0x749/0xd60 [ 30.606742][ C2] notifier_call_chain+0xcd/0x150 [ 30.607138][ C2] __dev_notify_flags+0xe6/0x250 [ 30.607398][ C2] dev_change_flags+0xec/0x160 [ 30.607660][ C2] do_setlink+0x7d6/0x21e0 [ 30.608053][ C2] __rtnl_newlink+0xaa7/0xd80 [ 30.608312][ C2] rtnl_newlink+0x63/0xa0 [ 30.608569][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 30.608827][ C2] netlink_rcv_skb+0x130/0x360 [ 30.609229][ C2] netlink_unicast+0x449/0x710 [ 30.609488][ C2] netlink_sendmsg+0x723/0xbe0 [ 30.609748][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 30.610142][ C2] ___sys_sendmsg+0xee/0x170 [ 30.610400][ C2] __sys_sendmsg+0xcd/0x170 [ 30.610664][ C2] do_syscall_64+0xc6/0x1e0 [ 30.611058][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 30.611369][ C2] INITIAL READ USE at: [ 30.611525][ C2] __lock_acquire+0x797/0x1570 [ 30.611786][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.612186][ C2] _raw_read_lock_bh+0x44/0x80 [ 30.612445][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 30.612753][ C2] inet6_fill_link_af+0x5e/0xe0 [ 30.613238][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 30.613470][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 30.613781][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 30.614187][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 30.614448][ C2] register_netdevice+0x1177/0x1690 [ 30.614758][ C2] register_netdev+0x20/0x40 [ 30.615154][ C2] vti6_init_net+0x25d/0x380 [ 30.615408][ C2] ops_init+0x9b/0x560 [ 30.615666][ C2] register_pernet_operations+0x2db/0x710 [ 30.615979][ C2] register_pernet_device+0x2a/0x60 [ 30.616432][ C2] vti6_tunnel_init+0x18/0x110 [ 30.616698][ C2] do_one_initcall+0x8d/0x1e0 [ 30.616957][ C2] do_initcalls+0x1b2/0x3e0 [ 30.617351][ C2] kernel_init_freeable+0x232/0x310 [ 30.617658][ C2] kernel_init+0x20/0x200 [ 30.617918][ C2] ret_from_fork+0x31/0x70 [ 30.618317][ C2] ret_from_fork_asm+0x1a/0x30 [ 30.618580][ C2] } [ 30.618685][ C2] ... key at: [] __key.37+0x0/0x40 [ 30.618992][ C2] ... acquired at: [ 30.619276][ C2] mark_lock+0x28d/0x3e0 [ 30.619483][ C2] mark_usage+0xd9/0x2a0 [ 30.619693][ C2] __lock_acquire+0x797/0x1570 [ 30.619899][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.620237][ C2] _raw_write_lock+0x30/0x40 [ 30.620447][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.620655][ C2] call_timer_fn+0x13b/0x230 [ 30.620862][ C2] __run_timers+0x545/0x810 [ 30.621073][ C2] run_timer_softirq+0xe8/0x1b0 [ 30.621410][ C2] __do_softirq+0x1f8/0x5df [ 30.621616][ C2] irq_exit_rcu+0x97/0xc0 [ 30.621821][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.622076][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.622462][ C2] default_idle+0xf/0x20 [ 30.622671][ C2] default_idle_call+0x6d/0xb0 [ 30.622881][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.623087][ C2] do_idle+0xf9/0x160 [ 30.623378][ C2] cpu_startup_entry+0x54/0x60 [ 30.623589][ C2] start_secondary+0x21c/0x2b0 [ 30.623794][ C2] common_startup_64+0x12c/0x138 [ 30.624000][ C2] [ 30.624114][ C2] [ 30.624114][ C2] stack backtrace: [ 30.624496][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 30.624807][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 30.625392][ C2] Call Trace: [ 30.625551][ C2] [ 30.625663][ C2] dump_stack_lvl+0x82/0xd0 [ 30.625873][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 30.626129][ C2] ? kernel_text_address+0x17/0xe0 [ 30.626472][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 30.626731][ C2] ? __pfx_usage_skip+0x10/0x10 [ 30.626937][ C2] ? __pfx_usage_match+0x10/0x10 [ 30.627148][ C2] ? arch_stack_walk+0x8c/0xf0 [ 30.627488][ C2] mark_lock_irq+0x4cd/0xa10 [ 30.627693][ C2] ? common_startup_64+0x12c/0x138 [ 30.627899][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 30.628105][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.628448][ C2] ? save_trace+0x8f/0x5b0 [ 30.628664][ C2] mark_lock+0x28d/0x3e0 [ 30.628819][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 30.629026][ C2] mark_usage+0xd9/0x2a0 [ 30.629184][ C2] __lock_acquire+0x797/0x1570 [ 30.629602][ C2] ? __pfx_validate_chain+0x10/0x10 [ 30.629792][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.629997][ C2] lock_acquire.part.0+0xeb/0x330 [ 30.630207][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.630513][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.630721][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 30.630929][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.631134][ C2] ? lock_acquire+0x32/0xc0 [ 30.631471][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.631685][ C2] _raw_write_lock+0x30/0x40 [ 30.631891][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 30.632095][ C2] addrconf_rs_timer+0xa9/0x730 [ 30.632432][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 30.632644][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.632849][ C2] ? call_timer_fn+0xe8/0x230 [ 30.633066][ C2] ? lock_acquire+0x32/0xc0 [ 30.633272][ C2] ? call_timer_fn+0xe8/0x230 [ 30.633615][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.633821][ C2] call_timer_fn+0x13b/0x230 [ 30.634027][ C2] ? call_timer_fn+0xe8/0x230 [ 30.634232][ C2] ? call_timer_fn+0xe8/0x230 [ 30.634598][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 30.634807][ C2] ? mark_lock+0x38/0x3e0 [ 30.634971][ C2] __run_timers+0x545/0x810 [ 30.635176][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 30.635517][ C2] ? __pfx___run_timers+0x10/0x10 [ 30.635724][ C2] ? do_raw_spin_lock+0x131/0x270 [ 30.635930][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 30.636140][ C2] ? lock_acquire+0x32/0xc0 [ 30.636349][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 30.636690][ C2] run_timer_softirq+0xe8/0x1b0 [ 30.636896][ C2] __do_softirq+0x1f8/0x5df [ 30.637113][ C2] irq_exit_rcu+0x97/0xc0 [ 30.637269][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 30.637609][ C2] [ 30.637721][ C2] [ 30.637827][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 30.638082][ C2] RIP: 0010:default_idle+0xf/0x20 [ 30.638295][ 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 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 [ 30.639033][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 30.639299][ C2] RAX: 00000000000c14cf RBX: 1ffff9200002bfc1 RCX: ffffffff99f32ea5 [ 30.639607][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff976ac1d4 [ 30.639920][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 30.640366][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 30.640684][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 30.640994][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 30.641209][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 30.641547][ C2] default_idle_call+0x6d/0xb0 [ 30.641756][ C2] cpuidle_idle_call+0x1f4/0x280 [ 30.641966][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 30.642174][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 30.642515][ C2] do_idle+0xf9/0x160 [ 30.642673][ C2] cpu_startup_entry+0x54/0x60 [ 30.642879][ C2] start_secondary+0x21c/0x2b0 [ 30.643085][ C2] ? __pfx_start_secondary+0x10/0x10 [ 30.643432][ C2] common_startup_64+0x12c/0x138 [ 30.643648][ C2]