[ 78.500633][ C2] [ 78.500732][ C2] ======================================================== [ 78.500929][ C2] WARNING: possible irq lock inversion dependency detected [ 78.501123][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 78.501256][ C2] -------------------------------------------------------- [ 78.501451][ C2] swapper/2/0 just changed the state of lock: [ 78.501622][ C2] ffff888004f45580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 78.501868][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 78.502061][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 78.502065][ C2] [ 78.502065][ C2] [ 78.502065][ C2] and interrupts could create inverse lock ordering between them. [ 78.502065][ C2] [ 78.502546][ C2] [ 78.502546][ C2] other info that might help us debug this: [ 78.502733][ C2] Possible interrupt unsafe locking scenario: [ 78.502733][ C2] [ 78.502923][ C2] CPU0 CPU1 [ 78.503053][ C2] ---- ---- [ 78.503191][ C2] lock(&p->alloc_lock); [ 78.503290][ C2] local_irq_disable(); [ 78.503451][ C2] lock(&ndev->lock); [ 78.503613][ C2] lock(&p->alloc_lock); [ 78.503782][ C2] [ 78.503878][ C2] lock(&ndev->lock); [ 78.503977][ C2] [ 78.503977][ C2] *** DEADLOCK *** [ 78.503977][ C2] [ 78.504161][ C2] 1 lock held by swapper/2/0: [ 78.504293][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 78.504540][ C2] [ 78.504540][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 78.504758][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 78.504892][ C2] HARDIRQ-ON-W at: [ 78.504991][ C2] __lock_acquire+0x797/0x1570 [ 78.505158][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.505323][ C2] _raw_spin_lock+0x30/0x40 [ 78.505489][ C2] set_mems_allowed+0x1d/0x210 [ 78.505657][ C2] kernel_init_freeable+0x72/0x310 [ 78.505822][ C2] kernel_init+0x20/0x200 [ 78.505985][ C2] ret_from_fork+0x31/0x70 [ 78.506149][ C2] ret_from_fork_asm+0x1a/0x30 [ 78.506316][ C2] SOFTIRQ-ON-W at: [ 78.506412][ C2] __lock_acquire+0x797/0x1570 [ 78.506581][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.506743][ C2] _raw_spin_lock+0x30/0x40 [ 78.506905][ C2] set_mems_allowed+0x1d/0x210 [ 78.507067][ C2] kernel_init_freeable+0x72/0x310 [ 78.507232][ C2] kernel_init+0x20/0x200 [ 78.507393][ C2] ret_from_fork+0x31/0x70 [ 78.507556][ C2] ret_from_fork_asm+0x1a/0x30 [ 78.507718][ C2] INITIAL USE at: [ 78.507815][ C2] __lock_acquire+0x797/0x1570 [ 78.507978][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.508141][ C2] _raw_spin_lock+0x30/0x40 [ 78.508304][ C2] set_mems_allowed+0x1d/0x210 [ 78.508474][ C2] kernel_init_freeable+0x72/0x310 [ 78.508637][ C2] kernel_init+0x20/0x200 [ 78.508800][ C2] ret_from_fork+0x31/0x70 [ 78.508962][ C2] ret_from_fork_asm+0x1a/0x30 [ 78.509124][ C2] } [ 78.509195][ C2] ... key at: [] __key.387+0x0/0x40 [ 78.509391][ C2] ... acquired at: [ 78.509488][ C2] __lock_acquire+0xaf0/0x1570 [ 78.509638][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.509767][ C2] _raw_spin_lock+0x30/0x40 [ 78.509896][ C2] __get_task_comm+0x27/0x70 [ 78.510030][ C2] ref_tracker_alloc+0x2ee/0x490 [ 78.510163][ C2] netdev_get_by_index+0x5e/0x80 [ 78.510304][ C2] fib6_nh_init+0x3d8/0x15b0 [ 78.510437][ C2] ip6_route_info_create+0xf18/0x17d0 [ 78.510571][ C2] ip6_route_add+0x1c/0x140 [ 78.510702][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 78.510833][ C2] addrconf_permanent_addr+0x32f/0x670 [ 78.510960][ C2] addrconf_notify+0x749/0xd60 [ 78.511089][ C2] notifier_call_chain+0xcd/0x150 [ 78.511221][ C2] __dev_notify_flags+0xe6/0x250 [ 78.511355][ C2] dev_change_flags+0xec/0x160 [ 78.511489][ C2] do_setlink+0x7d6/0x21e0 [ 78.511622][ C2] __rtnl_newlink+0xaa7/0xd80 [ 78.511751][ C2] rtnl_newlink+0x63/0xa0 [ 78.511880][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 78.512008][ C2] netlink_rcv_skb+0x130/0x360 [ 78.512140][ C2] netlink_unicast+0x449/0x710 [ 78.512269][ C2] netlink_sendmsg+0x723/0xbe0 [ 78.512399][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 78.512534][ C2] ___sys_sendmsg+0xee/0x170 [ 78.512665][ C2] __sys_sendmsg+0xcd/0x170 [ 78.512795][ C2] do_syscall_64+0xc6/0x1e0 [ 78.512927][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 78.513089][ C2] [ 78.513161][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 78.513293][ C2] HARDIRQ-ON-W at: [ 78.513391][ C2] __lock_acquire+0x797/0x1570 [ 78.513555][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.513720][ C2] _raw_write_lock_bh+0x38/0x50 [ 78.513883][ C2] addrconf_permanent_addr+0x6e/0x670 [ 78.514042][ C2] addrconf_notify+0x749/0xd60 [ 78.514203][ C2] notifier_call_chain+0xcd/0x150 [ 78.514363][ C2] __dev_notify_flags+0xe6/0x250 [ 78.514526][ C2] dev_change_flags+0xec/0x160 [ 78.514697][ C2] do_setlink+0x7d6/0x21e0 [ 78.514858][ C2] __rtnl_newlink+0xaa7/0xd80 [ 78.515019][ C2] rtnl_newlink+0x63/0xa0 [ 78.515183][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 78.515350][ C2] netlink_rcv_skb+0x130/0x360 [ 78.515516][ C2] netlink_unicast+0x449/0x710 [ 78.515683][ C2] netlink_sendmsg+0x723/0xbe0 [ 78.515849][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 78.516012][ C2] ___sys_sendmsg+0xee/0x170 [ 78.516173][ C2] __sys_sendmsg+0xcd/0x170 [ 78.516337][ C2] do_syscall_64+0xc6/0x1e0 [ 78.516499][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 78.516697][ C2] HARDIRQ-ON-R at: [ 78.516797][ C2] __lock_acquire+0x797/0x1570 [ 78.516961][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.517126][ C2] _raw_read_lock_bh+0x44/0x80 [ 78.517290][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 78.517453][ C2] inet6_fill_link_af+0x5e/0xe0 [ 78.517619][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 78.517786][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 78.517950][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 78.518146][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 78.518310][ C2] register_netdevice+0x1177/0x1690 [ 78.518477][ C2] register_netdev+0x20/0x40 [ 78.518743][ C2] sit_init_net+0x250/0x4f0 [ 78.518909][ C2] ops_init+0x9b/0x560 [ 78.519045][ C2] register_pernet_operations+0x2db/0x710 [ 78.519243][ C2] register_pernet_device+0x2a/0x60 [ 78.519405][ C2] sit_init+0x23/0xe0 [ 78.519542][ C2] do_one_initcall+0x8d/0x1e0 [ 78.519705][ C2] do_initcalls+0x1b2/0x3e0 [ 78.519874][ C2] kernel_init_freeable+0x232/0x310 [ 78.520039][ C2] kernel_init+0x20/0x200 [ 78.520200][ C2] ret_from_fork+0x31/0x70 [ 78.520438][ C2] ret_from_fork_asm+0x1a/0x30 [ 78.520607][ C2] IN-SOFTIRQ-W at: [ 78.520707][ C2] __lock_acquire+0x797/0x1570 [ 78.520873][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.521109][ C2] _raw_write_lock+0x30/0x40 [ 78.521279][ C2] addrconf_rs_timer+0xa9/0x730 [ 78.521440][ C2] call_timer_fn+0x13b/0x230 [ 78.521687][ C2] __run_timers+0x545/0x810 [ 78.521856][ C2] run_timer_softirq+0xe8/0x1b0 [ 78.522017][ C2] __do_softirq+0x1f8/0x5df [ 78.522178][ C2] irq_exit_rcu+0x97/0xc0 [ 78.522420][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 78.522627][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 78.522820][ C2] default_idle+0xf/0x20 [ 78.523056][ C2] default_idle_call+0x6d/0xb0 [ 78.523234][ C2] cpuidle_idle_call+0x1f4/0x280 [ 78.523404][ C2] do_idle+0xf9/0x160 [ 78.523626][ C2] cpu_startup_entry+0x54/0x60 [ 78.523789][ C2] start_secondary+0x21c/0x2b0 [ 78.523956][ C2] common_startup_64+0x12c/0x138 [ 78.524122][ C2] INITIAL USE at: [ 78.524219][ C2] __lock_acquire+0x797/0x1570 [ 78.524383][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.524548][ C2] _raw_write_lock_bh+0x38/0x50 [ 78.524714][ C2] addrconf_permanent_addr+0x6e/0x670 [ 78.524875][ C2] addrconf_notify+0x749/0xd60 [ 78.525035][ C2] notifier_call_chain+0xcd/0x150 [ 78.525198][ C2] __dev_notify_flags+0xe6/0x250 [ 78.525436][ C2] dev_change_flags+0xec/0x160 [ 78.525608][ C2] do_setlink+0x7d6/0x21e0 [ 78.525781][ C2] __rtnl_newlink+0xaa7/0xd80 [ 78.526018][ C2] rtnl_newlink+0x63/0xa0 [ 78.526182][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 78.526344][ C2] netlink_rcv_skb+0x130/0x360 [ 78.526510][ C2] netlink_unicast+0x449/0x710 [ 78.526770][ C2] netlink_sendmsg+0x723/0xbe0 [ 78.526939][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 78.527108][ C2] ___sys_sendmsg+0xee/0x170 [ 78.527276][ C2] __sys_sendmsg+0xcd/0x170 [ 78.527439][ C2] do_syscall_64+0xc6/0x1e0 [ 78.527609][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 78.527808][ C2] INITIAL READ USE at: [ 78.527905][ C2] __lock_acquire+0x797/0x1570 [ 78.528071][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.528238][ C2] _raw_read_lock_bh+0x44/0x80 [ 78.528553][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 78.528749][ C2] inet6_fill_link_af+0x5e/0xe0 [ 78.528910][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 78.529154][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 78.529348][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 78.529546][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 78.529788][ C2] register_netdevice+0x1177/0x1690 [ 78.529980][ C2] register_netdev+0x20/0x40 [ 78.530139][ C2] sit_init_net+0x250/0x4f0 [ 78.530299][ C2] ops_init+0x9b/0x560 [ 78.530540][ C2] register_pernet_operations+0x2db/0x710 [ 78.530733][ C2] register_pernet_device+0x2a/0x60 [ 78.530925][ C2] sit_init+0x23/0xe0 [ 78.531162][ C2] do_one_initcall+0x8d/0x1e0 [ 78.531323][ C2] do_initcalls+0x1b2/0x3e0 [ 78.531491][ C2] kernel_init_freeable+0x232/0x310 [ 78.531771][ C2] kernel_init+0x20/0x200 [ 78.531931][ C2] ret_from_fork+0x31/0x70 [ 78.532092][ C2] ret_from_fork_asm+0x1a/0x30 [ 78.532252][ C2] } [ 78.532317][ C2] ... key at: [] __key.36+0x0/0x40 [ 78.532506][ C2] ... acquired at: [ 78.532605][ C2] mark_lock+0x28d/0x3e0 [ 78.532734][ C2] mark_usage+0xd9/0x2a0 [ 78.532866][ C2] __lock_acquire+0x797/0x1570 [ 78.532995][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.533124][ C2] _raw_write_lock+0x30/0x40 [ 78.533279][ C2] addrconf_rs_timer+0xa9/0x730 [ 78.533480][ C2] call_timer_fn+0x13b/0x230 [ 78.533611][ C2] __run_timers+0x545/0x810 [ 78.533740][ C2] run_timer_softirq+0xe8/0x1b0 [ 78.533869][ C2] __do_softirq+0x1f8/0x5df [ 78.534072][ C2] irq_exit_rcu+0x97/0xc0 [ 78.534204][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 78.534363][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 78.534524][ C2] default_idle+0xf/0x20 [ 78.534740][ C2] default_idle_call+0x6d/0xb0 [ 78.534870][ C2] cpuidle_idle_call+0x1f4/0x280 [ 78.534999][ C2] do_idle+0xf9/0x160 [ 78.535101][ C2] cpu_startup_entry+0x54/0x60 [ 78.535230][ C2] start_secondary+0x21c/0x2b0 [ 78.535365][ C2] common_startup_64+0x12c/0x138 [ 78.535493][ C2] [ 78.535559][ C2] [ 78.535559][ C2] stack backtrace: [ 78.535724][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 78.535918][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 78.536203][ C2] Call Trace: [ 78.536307][ C2] [ 78.536452][ C2] dump_stack_lvl+0x82/0xd0 [ 78.536592][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 78.536751][ C2] ? kernel_text_address+0x17/0xe0 [ 78.536883][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 78.537120][ C2] ? __pfx_usage_skip+0x10/0x10 [ 78.537249][ C2] ? __pfx_usage_match+0x10/0x10 [ 78.537376][ C2] ? arch_stack_walk+0x8c/0xf0 [ 78.537509][ C2] mark_lock_irq+0x4cd/0xa10 [ 78.537720][ C2] ? common_startup_64+0x12c/0x138 [ 78.537848][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 78.537977][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 78.538113][ C2] ? save_trace+0x8f/0x5b0 [ 78.538388][ C2] mark_lock+0x28d/0x3e0 [ 78.538486][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 78.538625][ C2] mark_usage+0xd9/0x2a0 [ 78.538724][ C2] __lock_acquire+0x797/0x1570 [ 78.538856][ C2] ? __pfx_validate_chain+0x10/0x10 [ 78.539057][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 78.539185][ C2] lock_acquire.part.0+0xeb/0x330 [ 78.539312][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 78.539442][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 78.539662][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 78.539797][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 78.539924][ C2] ? lock_acquire+0x32/0xc0 [ 78.540056][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 78.540184][ C2] _raw_write_lock+0x30/0x40 [ 78.540312][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 78.540439][ C2] addrconf_rs_timer+0xa9/0x730 [ 78.540571][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 78.540704][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 78.540835][ C2] ? call_timer_fn+0xe8/0x230 [ 78.540964][ C2] ? lock_acquire+0x32/0xc0 [ 78.541092][ C2] ? call_timer_fn+0xe8/0x230 [ 78.541223][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 78.541424][ C2] call_timer_fn+0x13b/0x230 [ 78.541556][ C2] ? call_timer_fn+0xe8/0x230 [ 78.541690][ C2] ? call_timer_fn+0xe8/0x230 [ 78.541818][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 78.542023][ C2] ? mark_lock+0x38/0x3e0 [ 78.542131][ C2] __run_timers+0x545/0x810 [ 78.542263][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 78.542393][ C2] ? __pfx___run_timers+0x10/0x10 [ 78.542522][ C2] ? do_raw_spin_lock+0x131/0x270 [ 78.542742][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 78.542870][ C2] ? lock_acquire+0x32/0xc0 [ 78.542999][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 78.543129][ C2] run_timer_softirq+0xe8/0x1b0 [ 78.543274][ C2] __do_softirq+0x1f8/0x5df [ 78.543404][ C2] irq_exit_rcu+0x97/0xc0 [ 78.543501][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 78.543636][ C2] [ 78.543703][ C2] [ 78.543768][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 78.543928][ C2] RIP: 0010:default_idle+0xf/0x20 [ 78.544063][ 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 [ 78.544603][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 78.544767][ C2] RAX: 00000000001f7769 RBX: 1ffff9200002bfc1 RCX: ffffffff939a48b5 [ 78.544962][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff912aa4a4 [ 78.545227][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 78.545417][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 78.545694][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 78.545892][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 78.546021][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 78.546151][ C2] default_idle_call+0x6d/0xb0 [ 78.546281][ C2] cpuidle_idle_call+0x1f4/0x280 [ 78.546408][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 78.546540][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 78.546675][ C2] do_idle+0xf9/0x160 [ 78.546775][ C2] cpu_startup_entry+0x54/0x60 [ 78.546976][ C2] start_secondary+0x21c/0x2b0 [ 78.547104][ C2] ? __pfx_start_secondary+0x10/0x10 [ 78.547235][ C2] common_startup_64+0x12c/0x138 [ 78.547367][ C2] [ 280.642255][ T3288] netem: version 1.3