[ 35.123454][ C2] [ 35.123624][ C2] ======================================================== [ 35.123829][ C2] WARNING: possible irq lock inversion dependency detected [ 35.124041][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 35.124180][ C2] -------------------------------------------------------- [ 35.124387][ C2] swapper/2/0 just changed the state of lock: [ 35.124560][ C2] ffff88801f34a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.124810][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.125012][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 35.125016][ C2] [ 35.125016][ C2] [ 35.125016][ C2] and interrupts could create inverse lock ordering between them. [ 35.125016][ C2] [ 35.125525][ C2] [ 35.125525][ C2] other info that might help us debug this: [ 35.125727][ C2] Possible interrupt unsafe locking scenario: [ 35.125727][ C2] [ 35.125929][ C2] CPU0 CPU1 [ 35.126069][ C2] ---- ---- [ 35.126205][ C2] lock(&p->alloc_lock); [ 35.126311][ C2] local_irq_disable(); [ 35.126492][ C2] lock(&ndev->lock); [ 35.126662][ C2] lock(&p->alloc_lock); [ 35.126834][ C2] [ 35.126957][ C2] lock(&ndev->lock); [ 35.127062][ C2] [ 35.127062][ C2] *** DEADLOCK *** [ 35.127062][ C2] [ 35.127257][ C2] 1 lock held by swapper/2/0: [ 35.127392][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.127636][ C2] [ 35.127636][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 35.127866][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.128009][ C2] HARDIRQ-ON-W at: [ 35.128115][ C2] __lock_acquire+0x797/0x1570 [ 35.128288][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.128459][ C2] _raw_spin_lock+0x30/0x40 [ 35.128631][ C2] set_mems_allowed+0x1d/0x210 [ 35.128805][ C2] kernel_init_freeable+0x72/0x310 [ 35.128979][ C2] kernel_init+0x20/0x200 [ 35.129149][ C2] ret_from_fork+0x31/0x70 [ 35.129322][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.129491][ C2] SOFTIRQ-ON-W at: [ 35.129595][ C2] __lock_acquire+0x797/0x1570 [ 35.129766][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.129935][ C2] _raw_spin_lock+0x30/0x40 [ 35.130107][ C2] set_mems_allowed+0x1d/0x210 [ 35.130302][ C2] kernel_init_freeable+0x72/0x310 [ 35.130486][ C2] kernel_init+0x20/0x200 [ 35.130655][ C2] ret_from_fork+0x31/0x70 [ 35.130827][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.130996][ C2] INITIAL USE at: [ 35.131103][ C2] __lock_acquire+0x797/0x1570 [ 35.131272][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.131444][ C2] _raw_spin_lock+0x30/0x40 [ 35.131614][ C2] set_mems_allowed+0x1d/0x210 [ 35.131784][ C2] kernel_init_freeable+0x72/0x310 [ 35.131961][ C2] kernel_init+0x20/0x200 [ 35.132135][ C2] ret_from_fork+0x31/0x70 [ 35.132306][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.132476][ C2] } [ 35.132548][ C2] ... key at: [] __key.387+0x0/0x40 [ 35.132752][ C2] ... acquired at: [ 35.132852][ C2] __lock_acquire+0xaf0/0x1570 [ 35.132990][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.133127][ C2] _raw_spin_lock+0x30/0x40 [ 35.133267][ C2] __get_task_comm+0x27/0x70 [ 35.133403][ C2] ref_tracker_alloc+0x2ee/0x490 [ 35.133541][ C2] netdev_get_by_index+0x5e/0x80 [ 35.133679][ C2] fib6_nh_init+0x3d8/0x15b0 [ 35.133814][ C2] ip6_route_info_create+0xf18/0x17d0 [ 35.133949][ C2] ip6_route_add+0x1c/0x140 [ 35.134084][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 35.134222][ C2] addrconf_permanent_addr+0x32f/0x670 [ 35.134363][ C2] addrconf_notify+0x749/0xd60 [ 35.134500][ C2] notifier_call_chain+0xcd/0x150 [ 35.134635][ C2] __dev_notify_flags+0xe6/0x250 [ 35.134770][ C2] dev_change_flags+0xec/0x160 [ 35.134906][ C2] do_setlink+0x7d6/0x21e0 [ 35.135041][ C2] __rtnl_newlink+0xaa7/0xd80 [ 35.135180][ C2] rtnl_newlink+0x63/0xa0 [ 35.135317][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.135458][ C2] netlink_rcv_skb+0x130/0x360 [ 35.135595][ C2] netlink_unicast+0x449/0x710 [ 35.135729][ C2] netlink_sendmsg+0x723/0xbe0 [ 35.135865][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 35.136001][ C2] ___sys_sendmsg+0xee/0x170 [ 35.136135][ C2] __sys_sendmsg+0xcd/0x170 [ 35.136269][ C2] do_syscall_64+0xc6/0x1e0 [ 35.136404][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.136575][ C2] [ 35.136725][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 35.136864][ C2] HARDIRQ-ON-W at: [ 35.136967][ C2] __lock_acquire+0x797/0x1570 [ 35.137137][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.137390][ C2] _raw_write_lock_bh+0x38/0x50 [ 35.137560][ C2] addrconf_permanent_addr+0x6e/0x670 [ 35.137728][ C2] addrconf_notify+0x749/0xd60 [ 35.137901][ C2] notifier_call_chain+0xcd/0x150 [ 35.138148][ C2] __dev_notify_flags+0xe6/0x250 [ 35.138319][ C2] dev_change_flags+0xec/0x160 [ 35.138490][ C2] do_setlink+0x7d6/0x21e0 [ 35.138739][ C2] __rtnl_newlink+0xaa7/0xd80 [ 35.138909][ C2] rtnl_newlink+0x63/0xa0 [ 35.139082][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.139333][ C2] netlink_rcv_skb+0x130/0x360 [ 35.139505][ C2] netlink_unicast+0x449/0x710 [ 35.139673][ C2] netlink_sendmsg+0x723/0xbe0 [ 35.139841][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 35.140086][ C2] ___sys_sendmsg+0xee/0x170 [ 35.140274][ C2] __sys_sendmsg+0xcd/0x170 [ 35.140468][ C2] do_syscall_64+0xc6/0x1e0 [ 35.140718][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.140919][ C2] HARDIRQ-ON-R at: [ 35.141021][ C2] __lock_acquire+0x797/0x1570 [ 35.141190][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.141438][ C2] _raw_read_lock_bh+0x44/0x80 [ 35.141609][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.141780][ C2] inet6_fill_link_af+0x5e/0xe0 [ 35.142029][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.142198][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.142366][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.142652][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 35.142820][ C2] register_netdevice+0x1177/0x1690 [ 35.142993][ C2] register_netdev+0x20/0x40 [ 35.143162][ C2] sit_init_net+0x250/0x4f0 [ 35.143413][ C2] ops_init+0x9b/0x560 [ 35.143550][ C2] register_pernet_operations+0x2db/0x710 [ 35.143751][ C2] register_pernet_device+0x2a/0x60 [ 35.144000][ C2] sit_init+0x23/0xe0 [ 35.144139][ C2] do_one_initcall+0x8d/0x1e0 [ 35.144308][ C2] do_initcalls+0x1b2/0x3e0 [ 35.144477][ C2] kernel_init_freeable+0x232/0x310 [ 35.144724][ C2] kernel_init+0x20/0x200 [ 35.144893][ C2] ret_from_fork+0x31/0x70 [ 35.145064][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.145394][ C2] IN-SOFTIRQ-W at: [ 35.145498][ C2] __lock_acquire+0x797/0x1570 [ 35.145666][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.145835][ C2] _raw_write_lock+0x30/0x40 [ 35.146082][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.146249][ C2] call_timer_fn+0x13b/0x230 [ 35.146419][ C2] __run_timers+0x545/0x810 [ 35.146673][ C2] timer_expire_remote+0x9b/0xe0 [ 35.146843][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 35.147012][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.147179][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 35.147427][ C2] __do_softirq+0x1f8/0x5df [ 35.147595][ C2] irq_exit_rcu+0x97/0xc0 [ 35.147769][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.148052][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.148254][ C2] default_idle+0xf/0x20 [ 35.148422][ C2] default_idle_call+0x6d/0xb0 [ 35.148668][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.148836][ C2] do_idle+0xf9/0x160 [ 35.148971][ C2] cpu_startup_entry+0x54/0x60 [ 35.149142][ C2] start_secondary+0x21c/0x2b0 [ 35.149390][ C2] common_startup_64+0x12c/0x138 [ 35.149559][ C2] INITIAL USE at: [ 35.149660][ C2] __lock_acquire+0x797/0x1570 [ 35.149829][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.150076][ C2] _raw_write_lock_bh+0x38/0x50 [ 35.150262][ C2] addrconf_permanent_addr+0x6e/0x670 [ 35.150441][ C2] addrconf_notify+0x749/0xd60 [ 35.150690][ C2] notifier_call_chain+0xcd/0x150 [ 35.150858][ C2] __dev_notify_flags+0xe6/0x250 [ 35.151025][ C2] dev_change_flags+0xec/0x160 [ 35.151275][ C2] do_setlink+0x7d6/0x21e0 [ 35.151447][ C2] __rtnl_newlink+0xaa7/0xd80 [ 35.151620][ C2] rtnl_newlink+0x63/0xa0 [ 35.151788][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.152036][ C2] netlink_rcv_skb+0x130/0x360 [ 35.152204][ C2] netlink_unicast+0x449/0x710 [ 35.152371][ C2] netlink_sendmsg+0x723/0xbe0 [ 35.152619][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 35.152790][ C2] ___sys_sendmsg+0xee/0x170 [ 35.152957][ C2] __sys_sendmsg+0xcd/0x170 [ 35.153124][ C2] do_syscall_64+0xc6/0x1e0 [ 35.153374][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.153574][ C2] INITIAL READ USE at: [ 35.153677][ C2] __lock_acquire+0x797/0x1570 [ 35.153927][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.154100][ C2] _raw_read_lock_bh+0x44/0x80 [ 35.154268][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.154550][ C2] inet6_fill_link_af+0x5e/0xe0 [ 35.154717][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.154886][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.155086][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.155371][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 35.155540][ C2] register_netdevice+0x1177/0x1690 [ 35.155744][ C2] register_netdev+0x20/0x40 [ 35.156071][ C2] sit_init_net+0x250/0x4f0 [ 35.156241][ C2] ops_init+0x9b/0x560 [ 35.156410][ C2] register_pernet_operations+0x2db/0x710 [ 35.156697][ C2] register_pernet_device+0x2a/0x60 [ 35.156897][ C2] sit_init+0x23/0xe0 [ 35.157066][ C2] do_one_initcall+0x8d/0x1e0 [ 35.157315][ C2] do_initcalls+0x1b2/0x3e0 [ 35.157484][ C2] kernel_init_freeable+0x232/0x310 [ 35.157688][ C2] kernel_init+0x20/0x200 [ 35.157935][ C2] ret_from_fork+0x31/0x70 [ 35.158104][ C2] ret_from_fork_asm+0x1a/0x30 [ 35.158272][ C2] } [ 35.158340][ C2] ... key at: [] __key.36+0x0/0x40 [ 35.158617][ C2] ... acquired at: [ 35.158716][ C2] mark_lock+0x28d/0x3e0 [ 35.158850][ C2] mark_usage+0xd9/0x2a0 [ 35.158987][ C2] __lock_acquire+0x797/0x1570 [ 35.159199][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.159335][ C2] _raw_write_lock+0x30/0x40 [ 35.159469][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.159602][ C2] call_timer_fn+0x13b/0x230 [ 35.159737][ C2] __run_timers+0x545/0x810 [ 35.159951][ C2] timer_expire_remote+0x9b/0xe0 [ 35.160086][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 35.160223][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.160392][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 35.160605][ C2] __do_softirq+0x1f8/0x5df [ 35.160740][ C2] irq_exit_rcu+0x97/0xc0 [ 35.160875][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.161043][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.161288][ C2] default_idle+0xf/0x20 [ 35.161424][ C2] default_idle_call+0x6d/0xb0 [ 35.161562][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.161698][ C2] do_idle+0xf9/0x160 [ 35.161877][ C2] cpu_startup_entry+0x54/0x60 [ 35.162010][ C2] start_secondary+0x21c/0x2b0 [ 35.162144][ C2] common_startup_64+0x12c/0x138 [ 35.162278][ C2] [ 35.162345][ C2] [ 35.162345][ C2] stack backtrace: [ 35.162608][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 35.162813][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 35.163108][ C2] Call Trace: [ 35.163214][ C2] [ 35.163285][ C2] dump_stack_lvl+0x82/0xd0 [ 35.163425][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 35.163596][ C2] ? kernel_text_address+0x17/0xe0 [ 35.163736][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 35.163905][ C2] ? __pfx_usage_skip+0x10/0x10 [ 35.164040][ C2] ? __pfx_usage_match+0x10/0x10 [ 35.164174][ C2] ? arch_stack_walk+0x8c/0xf0 [ 35.164390][ C2] mark_lock_irq+0x4cd/0xa10 [ 35.164524][ C2] ? common_startup_64+0x12c/0x138 [ 35.164659][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 35.164794][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 35.165007][ C2] ? save_trace+0x8f/0x5b0 [ 35.165146][ C2] mark_lock+0x28d/0x3e0 [ 35.165249][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 35.165382][ C2] mark_usage+0xd9/0x2a0 [ 35.165484][ C2] __lock_acquire+0x797/0x1570 [ 35.165699][ C2] ? __pfx_validate_chain+0x10/0x10 [ 35.165834][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.165967][ C2] lock_acquire.part.0+0xeb/0x330 [ 35.166100][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.166390][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.166529][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 35.166665][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.166798][ C2] ? lock_acquire+0x32/0xc0 [ 35.167008][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.167142][ C2] _raw_write_lock+0x30/0x40 [ 35.167274][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 35.167409][ C2] addrconf_rs_timer+0xa9/0x730 [ 35.167543][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.167759][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.167892][ C2] ? call_timer_fn+0xe8/0x230 [ 35.168025][ C2] ? lock_acquire+0x32/0xc0 [ 35.168158][ C2] ? call_timer_fn+0xe8/0x230 [ 35.168370][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.168504][ C2] call_timer_fn+0x13b/0x230 [ 35.168637][ C2] ? call_timer_fn+0xe8/0x230 [ 35.168770][ C2] ? call_timer_fn+0xe8/0x230 [ 35.168983][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 35.169120][ C2] ? mark_lock+0x38/0x3e0 [ 35.169227][ C2] __run_timers+0x545/0x810 [ 35.169360][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.169495][ C2] ? __pfx___run_timers+0x10/0x10 [ 35.169708][ C2] ? __lock_release+0x103/0x460 [ 35.169843][ C2] ? do_raw_spin_lock+0x131/0x270 [ 35.169977][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.170112][ C2] ? lock_acquire+0x32/0xc0 [ 35.170351][ C2] ? timer_expire_remote+0x93/0xe0 [ 35.170487][ C2] timer_expire_remote+0x9b/0xe0 [ 35.170621][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 35.170757][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 35.171006][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 35.171142][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 35.171277][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 35.171418][ C2] __do_softirq+0x1f8/0x5df [ 35.171636][ C2] irq_exit_rcu+0x97/0xc0 [ 35.171739][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.171872][ C2] [ 35.171942][ C2] [ 35.172010][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.172257][ C2] RIP: 0010:default_idle+0xf/0x20 [ 35.172398][ 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 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 [ 35.172960][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 35.173131][ C2] RAX: 00000000000f3a45 RBX: 1ffff9200002bfc1 RCX: ffffffffa4da48b5 [ 35.173331][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa26aa4a4 [ 35.173612][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 35.173817][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 35.174016][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 35.174299][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 35.174433][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 35.174571][ C2] default_idle_call+0x6d/0xb0 [ 35.174704][ C2] cpuidle_idle_call+0x1f4/0x280 [ 35.174917][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 35.175054][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 35.175189][ C2] do_idle+0xf9/0x160 [ 35.175292][ C2] cpu_startup_entry+0x54/0x60 [ 35.175426][ C2] start_secondary+0x21c/0x2b0 [ 35.175639][ C2] ? __pfx_start_secondary+0x10/0x10 [ 35.175774][ C2] common_startup_64+0x12c/0x138 [ 35.175912][ C2] [ 44.269464][ T368] netem: version 1.3 [ 307.920012][ T2623] mptcp_connect (2623) used greatest stack depth: 24072 bytes left