[ 38.196196][ C2] [ 38.196421][ C2] ======================================================== [ 38.196632][ C2] WARNING: possible irq lock inversion dependency detected [ 38.196836][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 38.196985][ C2] -------------------------------------------------------- [ 38.197185][ C2] swapper/2/0 just changed the state of lock: [ 38.197353][ C2] ffff888005c35580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 38.197602][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 38.197805][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 38.197809][ C2] [ 38.197809][ C2] [ 38.197809][ C2] and interrupts could create inverse lock ordering between them. [ 38.197809][ C2] [ 38.198335][ C2] [ 38.198335][ C2] other info that might help us debug this: [ 38.198536][ C2] Possible interrupt unsafe locking scenario: [ 38.198536][ C2] [ 38.198745][ C2] CPU0 CPU1 [ 38.198891][ C2] ---- ---- [ 38.199030][ C2] lock(&p->alloc_lock); [ 38.199136][ C2] local_irq_disable(); [ 38.199309][ C2] lock(&ndev->lock); [ 38.199481][ C2] lock(&p->alloc_lock); [ 38.199650][ C2] [ 38.199753][ C2] lock(&ndev->lock); [ 38.199874][ C2] [ 38.199874][ C2] *** DEADLOCK *** [ 38.199874][ C2] [ 38.200085][ C2] 1 lock held by swapper/2/0: [ 38.200222][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 38.200468][ C2] [ 38.200468][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 38.200705][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 38.200847][ C2] HARDIRQ-ON-W at: [ 38.200952][ C2] __lock_acquire+0x797/0x1570 [ 38.201129][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.201302][ C2] _raw_spin_lock+0x30/0x40 [ 38.201476][ C2] set_mems_allowed+0x1d/0x210 [ 38.201649][ C2] kernel_init_freeable+0x72/0x310 [ 38.201822][ C2] kernel_init+0x20/0x200 [ 38.201998][ C2] ret_from_fork+0x31/0x70 [ 38.202172][ C2] ret_from_fork_asm+0x1a/0x30 [ 38.202344][ C2] SOFTIRQ-ON-W at: [ 38.202452][ C2] __lock_acquire+0x797/0x1570 [ 38.202623][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.202794][ C2] _raw_spin_lock+0x30/0x40 [ 38.202967][ C2] set_mems_allowed+0x1d/0x210 [ 38.203140][ C2] kernel_init_freeable+0x72/0x310 [ 38.203316][ C2] kernel_init+0x20/0x200 [ 38.203486][ C2] ret_from_fork+0x31/0x70 [ 38.203658][ C2] ret_from_fork_asm+0x1a/0x30 [ 38.203827][ C2] INITIAL USE at: [ 38.203929][ C2] __lock_acquire+0x797/0x1570 [ 38.204097][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.204272][ C2] _raw_spin_lock+0x30/0x40 [ 38.204444][ C2] set_mems_allowed+0x1d/0x210 [ 38.204613][ C2] kernel_init_freeable+0x72/0x310 [ 38.204783][ C2] kernel_init+0x20/0x200 [ 38.204953][ C2] ret_from_fork+0x31/0x70 [ 38.205126][ C2] ret_from_fork_asm+0x1a/0x30 [ 38.205298][ C2] } [ 38.205370][ C2] ... key at: [] __key.387+0x0/0x40 [ 38.205575][ C2] ... acquired at: [ 38.205677][ C2] __lock_acquire+0xaf0/0x1570 [ 38.205817][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.205954][ C2] _raw_spin_lock+0x30/0x40 [ 38.206094][ C2] __get_task_comm+0x27/0x70 [ 38.206230][ C2] ref_tracker_alloc+0x2ee/0x490 [ 38.206370][ C2] netdev_get_by_index+0x5e/0x80 [ 38.206506][ C2] fib6_nh_init+0x3d8/0x15b0 [ 38.206647][ C2] ip6_route_info_create+0xf18/0x17d0 [ 38.206784][ C2] addrconf_f6i_alloc+0x265/0x560 [ 38.206919][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 38.207055][ C2] addrconf_join_anycast+0x1c0/0x220 [ 38.207198][ C2] dev_forward_change+0x2a6/0x7b0 [ 38.207334][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 38.207510][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 38.207647][ C2] proc_sys_call_handler+0x403/0x5e0 [ 38.207785][ C2] vfs_write+0x9e5/0x10a0 [ 38.207931][ C2] ksys_write+0xf5/0x1e0 [ 38.208068][ C2] do_syscall_64+0xc6/0x1e0 [ 38.208206][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 38.208376][ C2] [ 38.208446][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 38.208588][ C2] HARDIRQ-ON-W at: [ 38.208691][ C2] __lock_acquire+0x797/0x1570 [ 38.208863][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.209038][ C2] _raw_write_lock_bh+0x38/0x50 [ 38.209211][ C2] addrconf_permanent_addr+0x6e/0x670 [ 38.209382][ C2] addrconf_notify+0x749/0xd60 [ 38.209555][ C2] notifier_call_chain+0xcd/0x150 [ 38.209739][ C2] __dev_notify_flags+0xe6/0x250 [ 38.209909][ C2] dev_change_flags+0xec/0x160 [ 38.210080][ C2] do_setlink+0x7d6/0x21e0 [ 38.210257][ C2] __rtnl_newlink+0xaa7/0xd80 [ 38.210430][ C2] rtnl_newlink+0x63/0xa0 [ 38.210600][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 38.210773][ C2] netlink_rcv_skb+0x130/0x360 [ 38.210946][ C2] netlink_unicast+0x449/0x710 [ 38.211119][ C2] netlink_sendmsg+0x723/0xbe0 [ 38.211290][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 38.211464][ C2] ___sys_sendmsg+0xee/0x170 [ 38.211636][ C2] __sys_sendmsg+0xcd/0x170 [ 38.211807][ C2] do_syscall_64+0xc6/0x1e0 [ 38.211983][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 38.212189][ C2] HARDIRQ-ON-R at: [ 38.212292][ C2] __lock_acquire+0x797/0x1570 [ 38.212463][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.212634][ C2] _raw_read_lock_bh+0x44/0x80 [ 38.212804][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 38.212978][ C2] inet6_fill_link_af+0x5e/0xe0 [ 38.213148][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 38.213317][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 38.213486][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 38.213691][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 38.213861][ C2] register_netdevice+0x1177/0x1690 [ 38.214035][ C2] register_netdev+0x20/0x40 [ 38.214214][ C2] sit_init_net+0x250/0x4f0 [ 38.214388][ C2] ops_init+0x9b/0x560 [ 38.214527][ C2] register_pernet_operations+0x2db/0x710 [ 38.214731][ C2] register_pernet_device+0x2a/0x60 [ 38.214902][ C2] sit_init+0x23/0xe0 [ 38.215040][ C2] do_one_initcall+0x8d/0x1e0 [ 38.215218][ C2] do_initcalls+0x1b2/0x3e0 [ 38.215392][ C2] kernel_init_freeable+0x232/0x310 [ 38.215563][ C2] kernel_init+0x20/0x200 [ 38.215735][ C2] ret_from_fork+0x31/0x70 [ 38.215907][ C2] ret_from_fork_asm+0x1a/0x30 [ 38.216082][ C2] IN-SOFTIRQ-W at: [ 38.216184][ C2] __lock_acquire+0x797/0x1570 [ 38.216360][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.216532][ C2] _raw_write_lock+0x30/0x40 [ 38.216705][ C2] addrconf_rs_timer+0xa9/0x730 [ 38.216875][ C2] call_timer_fn+0x13b/0x230 [ 38.217047][ C2] __run_timers+0x545/0x810 [ 38.217222][ C2] timer_expire_remote+0x9b/0xe0 [ 38.217396][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 38.217568][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 38.217740][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 38.217919][ C2] __do_softirq+0x1f8/0x5df [ 38.218090][ C2] irq_exit_rcu+0x97/0xc0 [ 38.218260][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 38.218470][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 38.218675][ C2] default_idle+0xf/0x20 [ 38.218846][ C2] default_idle_call+0x6d/0xb0 [ 38.219019][ C2] cpuidle_idle_call+0x1f4/0x280 [ 38.219191][ C2] do_idle+0xf9/0x160 [ 38.219327][ C2] cpu_startup_entry+0x54/0x60 [ 38.219504][ C2] start_secondary+0x21c/0x2b0 [ 38.219675][ C2] common_startup_64+0x12c/0x138 [ 38.219847][ C2] INITIAL USE at: [ 38.219949][ C2] __lock_acquire+0x797/0x1570 [ 38.220120][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.220292][ C2] _raw_write_lock_bh+0x38/0x50 [ 38.220465][ C2] addrconf_permanent_addr+0x6e/0x670 [ 38.220640][ C2] addrconf_notify+0x749/0xd60 [ 38.220810][ C2] notifier_call_chain+0xcd/0x150 [ 38.220983][ C2] __dev_notify_flags+0xe6/0x250 [ 38.221151][ C2] dev_change_flags+0xec/0x160 [ 38.221324][ C2] do_setlink+0x7d6/0x21e0 [ 38.221495][ C2] __rtnl_newlink+0xaa7/0xd80 [ 38.221669][ C2] rtnl_newlink+0x63/0xa0 [ 38.221842][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 38.222014][ C2] netlink_rcv_skb+0x130/0x360 [ 38.222187][ C2] netlink_unicast+0x449/0x710 [ 38.222359][ C2] netlink_sendmsg+0x723/0xbe0 [ 38.222533][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 38.222705][ C2] ___sys_sendmsg+0xee/0x170 [ 38.222882][ C2] __sys_sendmsg+0xcd/0x170 [ 38.223056][ C2] do_syscall_64+0xc6/0x1e0 [ 38.223229][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 38.223434][ C2] INITIAL READ USE at: [ 38.223535][ C2] __lock_acquire+0x797/0x1570 [ 38.223708][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.223879][ C2] _raw_read_lock_bh+0x44/0x80 [ 38.224052][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 38.224257][ C2] inet6_fill_link_af+0x5e/0xe0 [ 38.224428][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 38.224596][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 38.224800][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 38.225009][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 38.225182][ C2] register_netdevice+0x1177/0x1690 [ 38.225386][ C2] register_netdev+0x20/0x40 [ 38.225556][ C2] sit_init_net+0x250/0x4f0 [ 38.225729][ C2] ops_init+0x9b/0x560 [ 38.225900][ C2] register_pernet_operations+0x2db/0x710 [ 38.226105][ C2] register_pernet_device+0x2a/0x60 [ 38.226306][ C2] sit_init+0x23/0xe0 [ 38.226479][ C2] do_one_initcall+0x8d/0x1e0 [ 38.226649][ C2] do_initcalls+0x1b2/0x3e0 [ 38.226821][ C2] kernel_init_freeable+0x232/0x310 [ 38.227037][ C2] kernel_init+0x20/0x200 [ 38.227215][ C2] ret_from_fork+0x31/0x70 [ 38.227387][ C2] ret_from_fork_asm+0x1a/0x30 [ 38.227559][ C2] } [ 38.227628][ C2] ... key at: [] __key.37+0x0/0x40 [ 38.227831][ C2] ... acquired at: [ 38.227952][ C2] mark_lock+0x28d/0x3e0 [ 38.228093][ C2] mark_usage+0xd9/0x2a0 [ 38.228228][ C2] __lock_acquire+0x797/0x1570 [ 38.228372][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.228509][ C2] _raw_write_lock+0x30/0x40 [ 38.228646][ C2] addrconf_rs_timer+0xa9/0x730 [ 38.228781][ C2] call_timer_fn+0x13b/0x230 [ 38.228920][ C2] __run_timers+0x545/0x810 [ 38.229057][ C2] timer_expire_remote+0x9b/0xe0 [ 38.229192][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 38.229327][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 38.229471][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 38.229606][ C2] __do_softirq+0x1f8/0x5df [ 38.229740][ C2] irq_exit_rcu+0x97/0xc0 [ 38.229876][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 38.230047][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 38.230219][ C2] default_idle+0xf/0x20 [ 38.230354][ C2] default_idle_call+0x6d/0xb0 [ 38.230487][ C2] cpuidle_idle_call+0x1f4/0x280 [ 38.230628][ C2] do_idle+0xf9/0x160 [ 38.230731][ C2] cpu_startup_entry+0x54/0x60 [ 38.230867][ C2] start_secondary+0x21c/0x2b0 [ 38.231004][ C2] common_startup_64+0x12c/0x138 [ 38.231142][ C2] [ 38.231212][ C2] [ 38.231212][ C2] stack backtrace: [ 38.231378][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 38.231582][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 38.231886][ C2] Call Trace: [ 38.231990][ C2] [ 38.232064][ C2] dump_stack_lvl+0x82/0xd0 [ 38.232218][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 38.232388][ C2] ? kernel_text_address+0x17/0xe0 [ 38.232525][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 38.232697][ C2] ? __pfx_usage_skip+0x10/0x10 [ 38.232838][ C2] ? __pfx_usage_match+0x10/0x10 [ 38.232975][ C2] ? arch_stack_walk+0x8c/0xf0 [ 38.233115][ C2] mark_lock_irq+0x4cd/0xa10 [ 38.233250][ C2] ? common_startup_64+0x12c/0x138 [ 38.233385][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 38.233522][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 38.233660][ C2] ? save_trace+0x8f/0x5b0 [ 38.233795][ C2] mark_lock+0x28d/0x3e0 [ 38.233900][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 38.234035][ C2] mark_usage+0xd9/0x2a0 [ 38.234140][ C2] __lock_acquire+0x797/0x1570 [ 38.234277][ C2] ? __pfx_validate_chain+0x10/0x10 [ 38.234413][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 38.234547][ C2] lock_acquire.part.0+0xeb/0x330 [ 38.234685][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 38.234820][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 38.234957][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 38.235092][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 38.235225][ C2] ? lock_acquire+0x32/0xc0 [ 38.235361][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 38.235497][ C2] _raw_write_lock+0x30/0x40 [ 38.235631][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 38.235765][ C2] addrconf_rs_timer+0xa9/0x730 [ 38.235903][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 38.236040][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 38.236181][ C2] ? call_timer_fn+0xe8/0x230 [ 38.236317][ C2] ? lock_acquire+0x32/0xc0 [ 38.236455][ C2] ? call_timer_fn+0xe8/0x230 [ 38.236591][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 38.236727][ C2] call_timer_fn+0x13b/0x230 [ 38.236862][ C2] ? call_timer_fn+0xe8/0x230 [ 38.236999][ C2] ? call_timer_fn+0xe8/0x230 [ 38.237133][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 38.237273][ C2] ? mark_lock+0x38/0x3e0 [ 38.237380][ C2] __run_timers+0x545/0x810 [ 38.237515][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 38.237655][ C2] ? __pfx___run_timers+0x10/0x10 [ 38.237791][ C2] ? __lock_release+0x103/0x460 [ 38.237947][ C2] ? do_raw_spin_lock+0x131/0x270 [ 38.238085][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 38.238222][ C2] ? lock_acquire+0x32/0xc0 [ 38.238360][ C2] ? timer_expire_remote+0x93/0xe0 [ 38.238503][ C2] timer_expire_remote+0x9b/0xe0 [ 38.238638][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 38.238775][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 38.238952][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 38.239089][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 38.239222][ C2] ? do_raw_spin_lock+0x131/0x270 [ 38.239359][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 38.239500][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 38.239635][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 38.239806][ C2] __do_softirq+0x1f8/0x5df [ 38.239944][ C2] irq_exit_rcu+0x97/0xc0 [ 38.240047][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 38.240181][ C2] [ 38.240251][ C2] [ 38.240318][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 38.240485][ C2] RIP: 0010:default_idle+0xf/0x20 [ 38.240634][ 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 a3 30 35 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 38.241115][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 38.241287][ C2] RAX: 000000000010fde9 RBX: 1ffff9200002bfc1 RCX: ffffffff9ad0e9d5 [ 38.241489][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff986aa4a4 [ 38.241696][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f2709c [ 38.241897][ C2] R10: ffff88802f9384e3 R11: ffff88802f92d9b0 R12: 0000000000000000 [ 38.242106][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 38.242315][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 38.242451][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 38.242591][ C2] default_idle_call+0x6d/0xb0 [ 38.242725][ C2] cpuidle_idle_call+0x1f4/0x280 [ 38.242862][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 38.242997][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 38.243134][ C2] do_idle+0xf9/0x160 [ 38.243237][ C2] cpu_startup_entry+0x54/0x60 [ 38.243373][ C2] start_secondary+0x21c/0x2b0 [ 38.243510][ C2] ? __pfx_start_secondary+0x10/0x10 [ 38.243650][ C2] common_startup_64+0x12c/0x138 [ 38.243788][ C2]