[ 31.527819][ C2] [ 31.528000][ C2] ======================================================== [ 31.528194][ C2] WARNING: possible irq lock inversion dependency detected [ 31.528389][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 31.528520][ C2] -------------------------------------------------------- [ 31.528732][ C2] swapper/2/0 just changed the state of lock: [ 31.528894][ C2] ffff8880081c3d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 31.529133][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 31.529321][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 31.529325][ C2] [ 31.529325][ C2] [ 31.529325][ C2] and interrupts could create inverse lock ordering between them. [ 31.529325][ C2] [ 31.529797][ C2] [ 31.529797][ C2] other info that might help us debug this: [ 31.530007][ C2] Possible interrupt unsafe locking scenario: [ 31.530007][ C2] [ 31.530201][ C2] CPU0 CPU1 [ 31.530330][ C2] ---- ---- [ 31.530458][ C2] lock(&p->alloc_lock); [ 31.530557][ C2] local_irq_disable(); [ 31.530718][ C2] lock(&ndev->lock); [ 31.530887][ C2] lock(&p->alloc_lock); [ 31.531051][ C2] [ 31.531149][ C2] lock(&ndev->lock); [ 31.531248][ C2] [ 31.531248][ C2] *** DEADLOCK *** [ 31.531248][ C2] [ 31.531437][ C2] 1 lock held by swapper/2/0: [ 31.531567][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 31.531801][ C2] [ 31.531801][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 31.532026][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 31.532161][ C2] HARDIRQ-ON-W at: [ 31.532260][ C2] __lock_acquire+0x797/0x1570 [ 31.532430][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.532592][ C2] _raw_spin_lock+0x30/0x40 [ 31.532758][ C2] set_mems_allowed+0x1d/0x210 [ 31.532924][ C2] kernel_init_freeable+0x72/0x310 [ 31.533095][ C2] kernel_init+0x20/0x200 [ 31.533261][ C2] ret_from_fork+0x31/0x70 [ 31.533427][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.533591][ C2] SOFTIRQ-ON-W at: [ 31.533688][ C2] __lock_acquire+0x797/0x1570 [ 31.533850][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.534017][ C2] _raw_spin_lock+0x30/0x40 [ 31.534181][ C2] set_mems_allowed+0x1d/0x210 [ 31.534343][ C2] kernel_init_freeable+0x72/0x310 [ 31.534505][ C2] kernel_init+0x20/0x200 [ 31.534669][ C2] ret_from_fork+0x31/0x70 [ 31.534834][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.534999][ C2] INITIAL USE at: [ 31.535097][ C2] __lock_acquire+0x797/0x1570 [ 31.535262][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.535424][ C2] _raw_spin_lock+0x30/0x40 [ 31.535587][ C2] set_mems_allowed+0x1d/0x210 [ 31.535750][ C2] kernel_init_freeable+0x72/0x310 [ 31.535914][ C2] kernel_init+0x20/0x200 [ 31.536078][ C2] ret_from_fork+0x31/0x70 [ 31.536242][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.536407][ C2] } [ 31.536475][ C2] ... key at: [] __key.388+0x0/0x40 [ 31.536671][ C2] ... acquired at: [ 31.536768][ C2] __lock_acquire+0xaf0/0x1570 [ 31.536902][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.537035][ C2] _raw_spin_lock+0x30/0x40 [ 31.537166][ C2] __get_task_comm+0x27/0x70 [ 31.537299][ C2] ref_tracker_alloc+0x2ee/0x490 [ 31.537433][ C2] netdev_get_by_index+0x5e/0x80 [ 31.537564][ C2] fib6_nh_init+0x3d8/0x1580 [ 31.537698][ C2] ip6_route_info_create+0xf18/0x17d0 [ 31.537827][ C2] addrconf_f6i_alloc+0x265/0x560 [ 31.537957][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 31.538095][ C2] addrconf_join_anycast+0x1c0/0x220 [ 31.538225][ C2] dev_forward_change+0x2a6/0x7b0 [ 31.538356][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 31.538518][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 31.538649][ C2] proc_sys_call_handler+0x403/0x5e0 [ 31.538781][ C2] vfs_write+0x9e5/0x10a0 [ 31.538913][ C2] ksys_write+0xf5/0x1e0 [ 31.539045][ C2] do_syscall_64+0xc6/0x1e0 [ 31.539179][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.539342][ C2] [ 31.539408][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 31.539541][ C2] HARDIRQ-ON-W at: [ 31.539638][ C2] __lock_acquire+0x797/0x1570 [ 31.539803][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.539973][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.540142][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.540304][ C2] addrconf_notify+0x749/0xd60 [ 31.540467][ C2] notifier_call_chain+0xcd/0x150 [ 31.540631][ C2] __dev_notify_flags+0xe6/0x250 [ 31.540797][ C2] dev_change_flags+0xec/0x160 [ 31.540959][ C2] do_setlink+0x7d6/0x21e0 [ 31.541126][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.541293][ C2] rtnl_newlink+0x63/0xa0 [ 31.541456][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.541618][ C2] netlink_rcv_skb+0x130/0x360 [ 31.541783][ C2] netlink_unicast+0x449/0x710 [ 31.541948][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.542111][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.542279][ C2] ___sys_sendmsg+0xee/0x170 [ 31.542440][ C2] __sys_sendmsg+0xcd/0x170 [ 31.542605][ C2] do_syscall_64+0xc6/0x1e0 [ 31.542765][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.542961][ C2] HARDIRQ-ON-R at: [ 31.543135][ C2] __lock_acquire+0x797/0x1570 [ 31.543297][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.543460][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.543626][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.543870][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.544033][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.544194][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.544357][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.544555][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.544716][ C2] register_netdevice+0x1177/0x1690 [ 31.544957][ C2] register_netdev+0x20/0x40 [ 31.545120][ C2] vti6_init_net+0x25d/0x380 [ 31.545289][ C2] ops_init+0x9b/0x560 [ 31.545421][ C2] register_pernet_operations+0x2db/0x710 [ 31.545691][ C2] register_pernet_device+0x2a/0x60 [ 31.545853][ C2] vti6_tunnel_init+0x18/0x110 [ 31.546018][ C2] do_one_initcall+0x8d/0x1e0 [ 31.546253][ C2] do_initcalls+0x1b2/0x3e0 [ 31.546413][ C2] kernel_init_freeable+0x232/0x310 [ 31.546572][ C2] kernel_init+0x20/0x200 [ 31.546736][ C2] ret_from_fork+0x31/0x70 [ 31.546979][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.547138][ C2] IN-SOFTIRQ-W at: [ 31.547234][ C2] __lock_acquire+0x797/0x1570 [ 31.547394][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.547554][ C2] _raw_write_lock+0x30/0x40 [ 31.547714][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.547879][ C2] call_timer_fn+0x13b/0x230 [ 31.548041][ C2] __run_timers+0x545/0x810 [ 31.548200][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.548359][ C2] __do_softirq+0x1f8/0x5df [ 31.548596][ C2] irq_exit_rcu+0x97/0xc0 [ 31.548759][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.548949][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.549217][ C2] default_idle+0xf/0x20 [ 31.549376][ C2] default_idle_call+0x6d/0xb0 [ 31.549537][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.549697][ C2] do_idle+0xf9/0x160 [ 31.549922][ C2] cpu_startup_entry+0x54/0x60 [ 31.550081][ C2] start_secondary+0x21c/0x2b0 [ 31.550248][ C2] common_startup_64+0x12c/0x138 [ 31.550411][ C2] INITIAL USE at: [ 31.550511][ C2] __lock_acquire+0x797/0x1570 [ 31.550671][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.550831][ C2] _raw_write_lock_bh+0x38/0x50 [ 31.550993][ C2] addrconf_permanent_addr+0x6e/0x670 [ 31.551154][ C2] addrconf_notify+0x749/0xd60 [ 31.551319][ C2] notifier_call_chain+0xcd/0x150 [ 31.551554][ C2] __dev_notify_flags+0xe6/0x250 [ 31.551714][ C2] dev_change_flags+0xec/0x160 [ 31.551873][ C2] do_setlink+0x7d6/0x21e0 [ 31.552031][ C2] __rtnl_newlink+0xaa7/0xd80 [ 31.552269][ C2] rtnl_newlink+0x63/0xa0 [ 31.552431][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 31.552590][ C2] netlink_rcv_skb+0x130/0x360 [ 31.552836][ C2] netlink_unicast+0x449/0x710 [ 31.552999][ C2] netlink_sendmsg+0x723/0xbe0 [ 31.553161][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 31.553323][ C2] ___sys_sendmsg+0xee/0x170 [ 31.553482][ C2] __sys_sendmsg+0xcd/0x170 [ 31.553646][ C2] do_syscall_64+0xc6/0x1e0 [ 31.553804][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 31.553996][ C2] INITIAL READ USE at: [ 31.554092][ C2] __lock_acquire+0x797/0x1570 [ 31.554252][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.554412][ C2] _raw_read_lock_bh+0x44/0x80 [ 31.554725][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 31.554919][ C2] inet6_fill_link_af+0x5e/0xe0 [ 31.555078][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 31.555313][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 31.555503][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 31.555693][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 31.555939][ C2] register_netdevice+0x1177/0x1690 [ 31.556129][ C2] register_netdev+0x20/0x40 [ 31.556288][ C2] vti6_init_net+0x25d/0x380 [ 31.556448][ C2] ops_init+0x9b/0x560 [ 31.556609][ C2] register_pernet_operations+0x2db/0x710 [ 31.556799][ C2] register_pernet_device+0x2a/0x60 [ 31.556992][ C2] vti6_tunnel_init+0x18/0x110 [ 31.557151][ C2] do_one_initcall+0x8d/0x1e0 [ 31.557311][ C2] do_initcalls+0x1b2/0x3e0 [ 31.557549][ C2] kernel_init_freeable+0x232/0x310 [ 31.557739][ C2] kernel_init+0x20/0x200 [ 31.557899][ C2] ret_from_fork+0x31/0x70 [ 31.558062][ C2] ret_from_fork_asm+0x1a/0x30 [ 31.558297][ C2] } [ 31.558365][ C2] ... key at: [] __key.37+0x0/0x40 [ 31.558555][ C2] ... acquired at: [ 31.558649][ C2] mark_lock+0x28d/0x3e0 [ 31.558862][ C2] mark_usage+0xd9/0x2a0 [ 31.558988][ C2] __lock_acquire+0x797/0x1570 [ 31.559115][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.559249][ C2] _raw_write_lock+0x30/0x40 [ 31.559377][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.559503][ C2] call_timer_fn+0x13b/0x230 [ 31.559630][ C2] __run_timers+0x545/0x810 [ 31.559757][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.559890][ C2] __do_softirq+0x1f8/0x5df [ 31.560020][ C2] irq_exit_rcu+0x97/0xc0 [ 31.560153][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.560313][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.560545][ C2] default_idle+0xf/0x20 [ 31.560671][ C2] default_idle_call+0x6d/0xb0 [ 31.560797][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.560926][ C2] do_idle+0xf9/0x160 [ 31.561022][ C2] cpu_startup_entry+0x54/0x60 [ 31.561223][ C2] start_secondary+0x21c/0x2b0 [ 31.561350][ C2] common_startup_64+0x12c/0x138 [ 31.561477][ C2] [ 31.561544][ C2] [ 31.561544][ C2] stack backtrace: [ 31.561770][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 31.561962][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 31.562243][ C2] Call Trace: [ 31.562346][ C2] [ 31.562414][ C2] dump_stack_lvl+0x82/0xd0 [ 31.562545][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 31.562709][ C2] ? kernel_text_address+0x17/0xe0 [ 31.562914][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 31.563071][ C2] ? __pfx_usage_skip+0x10/0x10 [ 31.563197][ C2] ? __pfx_usage_match+0x10/0x10 [ 31.563323][ C2] ? arch_stack_walk+0x8c/0xf0 [ 31.563527][ C2] mark_lock_irq+0x4cd/0xa10 [ 31.563656][ C2] ? common_startup_64+0x12c/0x138 [ 31.563784][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 31.563913][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.564043][ C2] ? save_trace+0x8f/0x5b0 [ 31.564317][ C2] mark_lock+0x28d/0x3e0 [ 31.564413][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 31.564540][ C2] mark_usage+0xd9/0x2a0 [ 31.564640][ C2] __lock_acquire+0x797/0x1570 [ 31.564858][ C2] ? __pfx_validate_chain+0x10/0x10 [ 31.564985][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.565115][ C2] lock_acquire.part.0+0xeb/0x330 [ 31.565242][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.565370][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.565500][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 31.565627][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.565752][ C2] ? lock_acquire+0x32/0xc0 [ 31.565879][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.566006][ C2] _raw_write_lock+0x30/0x40 [ 31.566136][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 31.566265][ C2] addrconf_rs_timer+0xa9/0x730 [ 31.566391][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 31.566593][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.566719][ C2] ? call_timer_fn+0xe8/0x230 [ 31.566845][ C2] ? lock_acquire+0x32/0xc0 [ 31.566972][ C2] ? call_timer_fn+0xe8/0x230 [ 31.567175][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.567307][ C2] call_timer_fn+0x13b/0x230 [ 31.567433][ C2] ? call_timer_fn+0xe8/0x230 [ 31.567560][ C2] ? call_timer_fn+0xe8/0x230 [ 31.567687][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 31.567899][ C2] ? mark_lock+0x38/0x3e0 [ 31.567998][ C2] __run_timers+0x545/0x810 [ 31.568127][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 31.568254][ C2] ? __pfx___run_timers+0x10/0x10 [ 31.568383][ C2] ? do_raw_spin_lock+0x131/0x270 [ 31.568514][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 31.568640][ C2] ? lock_acquire+0x32/0xc0 [ 31.568767][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 31.568897][ C2] run_timer_softirq+0xe8/0x1b0 [ 31.569024][ C2] __do_softirq+0x1f8/0x5df [ 31.569153][ C2] irq_exit_rcu+0x97/0xc0 [ 31.569248][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 31.569376][ C2] [ 31.569517][ C2] [ 31.569585][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 31.569742][ C2] RIP: 0010:default_idle+0xf/0x20 [ 31.569887][ 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 [ 31.570415][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 31.570580][ C2] RAX: 00000000000db109 RBX: 1ffff9200002bfc1 RCX: ffffffffb7732ea5 [ 31.570869][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb4eac1d4 [ 31.571058][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee709c [ 31.571249][ C2] R10: ffff88802f7384e3 R11: 1ffff110003ab28c R12: 0000000000000000 [ 31.571442][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 31.571637][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 31.571768][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 31.571896][ C2] default_idle_call+0x6d/0xb0 [ 31.572022][ C2] cpuidle_idle_call+0x1f4/0x280 [ 31.572149][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 31.572277][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 31.572408][ C2] do_idle+0xf9/0x160 [ 31.572577][ C2] cpu_startup_entry+0x54/0x60 [ 31.572704][ C2] start_secondary+0x21c/0x2b0 [ 31.572835][ C2] ? __pfx_start_secondary+0x10/0x10 [ 31.572962][ C2] common_startup_64+0x12c/0x138 [ 31.573166][ C2] [ 33.090105][ T311] Mirror/redirect action on