[ 25.223652][ T253] ip (253) used greatest stack depth: 23744 bytes left [ 30.868597][ T295] netem: version 1.3 [ 33.386922][ C3] [ 33.387081][ C3] ======================================================== [ 33.387308][ C3] WARNING: possible irq lock inversion dependency detected [ 33.387531][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 33.387673][ C3] -------------------------------------------------------- [ 33.387881][ C3] swapper/3/0 just changed the state of lock: [ 33.388054][ C3] ffff888007a22580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 33.388312][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 33.388517][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 33.388521][ C3] [ 33.388521][ C3] [ 33.388521][ C3] and interrupts could create inverse lock ordering between them. [ 33.388521][ C3] [ 33.389026][ C3] [ 33.389026][ C3] other info that might help us debug this: [ 33.389231][ C3] Possible interrupt unsafe locking scenario: [ 33.389231][ C3] [ 33.389438][ C3] CPU0 CPU1 [ 33.389579][ C3] ---- ---- [ 33.389714][ C3] lock(&p->alloc_lock); [ 33.389820][ C3] local_irq_disable(); [ 33.389992][ C3] lock(&ndev->lock); [ 33.390162][ C3] lock(&p->alloc_lock); [ 33.390331][ C3] [ 33.390435][ C3] lock(&ndev->lock); [ 33.390544][ C3] [ 33.390544][ C3] *** DEADLOCK *** [ 33.390544][ C3] [ 33.390744][ C3] 1 lock held by swapper/3/0: [ 33.390882][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 33.391136][ C3] [ 33.391136][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 33.391376][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 33.391518][ C3] HARDIRQ-ON-W at: [ 33.391625][ C3] __lock_acquire+0x797/0x1570 [ 33.391801][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.391973][ C3] _raw_spin_lock+0x30/0x40 [ 33.392156][ C3] set_mems_allowed+0x1d/0x210 [ 33.392333][ C3] kernel_init_freeable+0x72/0x310 [ 33.392521][ C3] kernel_init+0x20/0x200 [ 33.392693][ C3] ret_from_fork+0x31/0x70 [ 33.392866][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.393041][ C3] SOFTIRQ-ON-W at: [ 33.393144][ C3] __lock_acquire+0x797/0x1570 [ 33.393318][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.393490][ C3] _raw_spin_lock+0x30/0x40 [ 33.393662][ C3] set_mems_allowed+0x1d/0x210 [ 33.393832][ C3] kernel_init_freeable+0x72/0x310 [ 33.394008][ C3] kernel_init+0x20/0x200 [ 33.394181][ C3] ret_from_fork+0x31/0x70 [ 33.394355][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.394538][ C3] INITIAL USE at: [ 33.394646][ C3] __lock_acquire+0x797/0x1570 [ 33.394822][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.394992][ C3] _raw_spin_lock+0x30/0x40 [ 33.395164][ C3] set_mems_allowed+0x1d/0x210 [ 33.395341][ C3] kernel_init_freeable+0x72/0x310 [ 33.395515][ C3] kernel_init+0x20/0x200 [ 33.395688][ C3] ret_from_fork+0x31/0x70 [ 33.395859][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.396031][ C3] } [ 33.396102][ C3] ... key at: [] __key.387+0x0/0x40 [ 33.396326][ C3] ... acquired at: [ 33.396428][ C3] __lock_acquire+0xaf0/0x1570 [ 33.396576][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.396713][ C3] _raw_spin_lock+0x30/0x40 [ 33.396849][ C3] __get_task_comm+0x27/0x70 [ 33.396988][ C3] ref_tracker_alloc+0x2ee/0x490 [ 33.397128][ C3] netdev_get_by_index+0x5e/0x80 [ 33.397267][ C3] fib6_nh_init+0x3d8/0x15b0 [ 33.397424][ C3] ip6_route_info_create+0xf18/0x17d0 [ 33.397561][ C3] ip6_route_add+0x1c/0x140 [ 33.397702][ C3] addrconf_prefix_route+0x1cc/0x2b0 [ 33.397840][ C3] addrconf_permanent_addr+0x32f/0x670 [ 33.397976][ C3] addrconf_notify+0x749/0xd60 [ 33.398112][ C3] notifier_call_chain+0xcd/0x150 [ 33.398249][ C3] __dev_notify_flags+0xe6/0x250 [ 33.398391][ C3] dev_change_flags+0xec/0x160 [ 33.398527][ C3] do_setlink+0x7d6/0x21e0 [ 33.398665][ C3] __rtnl_newlink+0xaa7/0xd80 [ 33.398806][ C3] rtnl_newlink+0x63/0xa0 [ 33.398947][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.399087][ C3] netlink_rcv_skb+0x130/0x360 [ 33.399226][ C3] netlink_unicast+0x449/0x710 [ 33.399363][ C3] netlink_sendmsg+0x723/0xbe0 [ 33.399500][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 33.399643][ C3] ___sys_sendmsg+0xee/0x170 [ 33.399780][ C3] __sys_sendmsg+0xcd/0x170 [ 33.399916][ C3] do_syscall_64+0xc6/0x1e0 [ 33.400057][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.400231][ C3] [ 33.400301][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 33.400442][ C3] HARDIRQ-ON-W at: [ 33.400552][ C3] __lock_acquire+0x797/0x1570 [ 33.400725][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.400896][ C3] _raw_write_lock_bh+0x38/0x50 [ 33.401071][ C3] addrconf_permanent_addr+0x6e/0x670 [ 33.401241][ C3] addrconf_notify+0x749/0xd60 [ 33.401435][ C3] notifier_call_chain+0xcd/0x150 [ 33.401613][ C3] __dev_notify_flags+0xe6/0x250 [ 33.401789][ C3] dev_change_flags+0xec/0x160 [ 33.401963][ C3] do_setlink+0x7d6/0x21e0 [ 33.402136][ C3] __rtnl_newlink+0xaa7/0xd80 [ 33.402319][ C3] rtnl_newlink+0x63/0xa0 [ 33.402493][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.402664][ C3] netlink_rcv_skb+0x130/0x360 [ 33.402834][ C3] netlink_unicast+0x449/0x710 [ 33.403011][ C3] netlink_sendmsg+0x723/0xbe0 [ 33.403191][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 33.403364][ C3] ___sys_sendmsg+0xee/0x170 [ 33.403535][ C3] __sys_sendmsg+0xcd/0x170 [ 33.403707][ C3] do_syscall_64+0xc6/0x1e0 [ 33.403880][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.404089][ C3] HARDIRQ-ON-R at: [ 33.404195][ C3] __lock_acquire+0x797/0x1570 [ 33.404372][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.404548][ C3] _raw_read_lock_bh+0x44/0x80 [ 33.404720][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.404896][ C3] inet6_fill_link_af+0x5e/0xe0 [ 33.405067][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.405238][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.405428][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.405642][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 33.405820][ C3] register_netdevice+0x1177/0x1690 [ 33.405993][ C3] register_netdev+0x20/0x40 [ 33.406175][ C3] sit_init_net+0x250/0x4f0 [ 33.406358][ C3] ops_init+0x9b/0x560 [ 33.406504][ C3] register_pernet_operations+0x2db/0x710 [ 33.406718][ C3] register_pernet_device+0x2a/0x60 [ 33.406892][ C3] sit_init+0x23/0xe0 [ 33.407030][ C3] do_one_initcall+0x8d/0x1e0 [ 33.407202][ C3] do_initcalls+0x1b2/0x3e0 [ 33.407376][ C3] kernel_init_freeable+0x232/0x310 [ 33.407551][ C3] kernel_init+0x20/0x200 [ 33.407723][ C3] ret_from_fork+0x31/0x70 [ 33.407903][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.408074][ C3] IN-SOFTIRQ-W at: [ 33.408177][ C3] __lock_acquire+0x797/0x1570 [ 33.408351][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.408527][ C3] _raw_write_lock+0x30/0x40 [ 33.408699][ C3] addrconf_rs_timer+0xa9/0x730 [ 33.408871][ C3] call_timer_fn+0x13b/0x230 [ 33.409050][ C3] __run_timers+0x545/0x810 [ 33.409222][ C3] run_timer_softirq+0xe8/0x1b0 [ 33.409402][ C3] __do_softirq+0x1f8/0x5df [ 33.409573][ C3] irq_exit_rcu+0x97/0xc0 [ 33.409747][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.409952][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.410169][ C3] default_idle+0xf/0x20 [ 33.410344][ C3] default_idle_call+0x6d/0xb0 [ 33.410530][ C3] cpuidle_idle_call+0x1f4/0x280 [ 33.410703][ C3] do_idle+0xf9/0x160 [ 33.410844][ C3] cpu_startup_entry+0x54/0x60 [ 33.411018][ C3] start_secondary+0x21c/0x2b0 [ 33.411190][ C3] common_startup_64+0x12c/0x138 [ 33.411365][ C3] INITIAL USE at: [ 33.411471][ C3] __lock_acquire+0x797/0x1570 [ 33.411643][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.411815][ C3] _raw_write_lock_bh+0x38/0x50 [ 33.411997][ C3] addrconf_permanent_addr+0x6e/0x670 [ 33.412170][ C3] addrconf_notify+0x749/0xd60 [ 33.412348][ C3] notifier_call_chain+0xcd/0x150 [ 33.412519][ C3] __dev_notify_flags+0xe6/0x250 [ 33.412693][ C3] dev_change_flags+0xec/0x160 [ 33.412866][ C3] do_setlink+0x7d6/0x21e0 [ 33.413038][ C3] __rtnl_newlink+0xaa7/0xd80 [ 33.413213][ C3] rtnl_newlink+0x63/0xa0 [ 33.413384][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.413560][ C3] netlink_rcv_skb+0x130/0x360 [ 33.413740][ C3] netlink_unicast+0x449/0x710 [ 33.413914][ C3] netlink_sendmsg+0x723/0xbe0 [ 33.414085][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 33.414258][ C3] ___sys_sendmsg+0xee/0x170 [ 33.414440][ C3] __sys_sendmsg+0xcd/0x170 [ 33.414615][ C3] do_syscall_64+0xc6/0x1e0 [ 33.414787][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.415000][ C3] INITIAL READ USE at: [ 33.415108][ C3] __lock_acquire+0x797/0x1570 [ 33.415284][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.415456][ C3] _raw_read_lock_bh+0x44/0x80 [ 33.415629][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.415839][ C3] inet6_fill_link_af+0x5e/0xe0 [ 33.416012][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.416199][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.416482][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.416686][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 33.416864][ C3] register_netdevice+0x1177/0x1690 [ 33.417148][ C3] register_netdev+0x20/0x40 [ 33.417320][ C3] sit_init_net+0x250/0x4f0 [ 33.417492][ C3] ops_init+0x9b/0x560 [ 33.417738][ C3] register_pernet_operations+0x2db/0x710 [ 33.417942][ C3] register_pernet_device+0x2a/0x60 [ 33.418157][ C3] sit_init+0x23/0xe0 [ 33.418483][ C3] do_one_initcall+0x8d/0x1e0 [ 33.418656][ C3] do_initcalls+0x1b2/0x3e0 [ 33.418828][ C3] kernel_init_freeable+0x232/0x310 [ 33.419110][ C3] kernel_init+0x20/0x200 [ 33.419281][ C3] ret_from_fork+0x31/0x70 [ 33.419470][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.419718][ C3] } [ 33.419795][ C3] ... key at: [] __key.36+0x0/0x40 [ 33.420000][ C3] ... acquired at: [ 33.420105][ C3] mark_lock+0x28d/0x3e0 [ 33.420243][ C3] mark_usage+0xd9/0x2a0 [ 33.420461][ C3] __lock_acquire+0x797/0x1570 [ 33.420598][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.420741][ C3] _raw_write_lock+0x30/0x40 [ 33.420889][ C3] addrconf_rs_timer+0xa9/0x730 [ 33.421103][ C3] call_timer_fn+0x13b/0x230 [ 33.421241][ C3] __run_timers+0x545/0x810 [ 33.421383][ C3] run_timer_softirq+0xe8/0x1b0 [ 33.421519][ C3] __do_softirq+0x1f8/0x5df [ 33.421729][ C3] irq_exit_rcu+0x97/0xc0 [ 33.421866][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.422042][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.422221][ C3] default_idle+0xf/0x20 [ 33.422441][ C3] default_idle_call+0x6d/0xb0 [ 33.422577][ C3] cpuidle_idle_call+0x1f4/0x280 [ 33.422715][ C3] do_idle+0xf9/0x160 [ 33.422820][ C3] cpu_startup_entry+0x54/0x60 [ 33.422960][ C3] start_secondary+0x21c/0x2b0 [ 33.423171][ C3] common_startup_64+0x12c/0x138 [ 33.423311][ C3] [ 33.423385][ C3] [ 33.423385][ C3] stack backtrace: [ 33.423570][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 33.423848][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.424149][ C3] Call Trace: [ 33.424261][ C3] [ 33.424405][ C3] dump_stack_lvl+0x82/0xd0 [ 33.424550][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 33.424724][ C3] ? kernel_text_address+0x17/0xe0 [ 33.424867][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 33.425110][ C3] ? __pfx_usage_skip+0x10/0x10 [ 33.425246][ C3] ? __pfx_usage_match+0x10/0x10 [ 33.425382][ C3] ? arch_stack_walk+0x8c/0xf0 [ 33.425522][ C3] mark_lock_irq+0x4cd/0xa10 [ 33.425731][ C3] ? common_startup_64+0x12c/0x138 [ 33.425869][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 33.426011][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 33.426154][ C3] ? save_trace+0x8f/0x5b0 [ 33.426292][ C3] mark_lock+0x28d/0x3e0 [ 33.426469][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 33.426611][ C3] mark_usage+0xd9/0x2a0 [ 33.426716][ C3] __lock_acquire+0x797/0x1570 [ 33.426859][ C3] ? __pfx_validate_chain+0x10/0x10 [ 33.427070][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.427211][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.427347][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.427491][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.427629][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 33.427846][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.427982][ C3] ? lock_acquire+0x32/0xc0 [ 33.428118][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.428255][ C3] _raw_write_lock+0x30/0x40 [ 33.428483][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.428625][ C3] addrconf_rs_timer+0xa9/0x730 [ 33.428761][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.428898][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.429184][ C3] ? call_timer_fn+0xe8/0x230 [ 33.429319][ C3] ? lock_acquire+0x32/0xc0 [ 33.429457][ C3] ? call_timer_fn+0xe8/0x230 [ 33.429594][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.429813][ C3] call_timer_fn+0x13b/0x230 [ 33.429953][ C3] ? call_timer_fn+0xe8/0x230 [ 33.430089][ C3] ? call_timer_fn+0xe8/0x230 [ 33.430227][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 33.430365][ C3] ? mark_lock+0x38/0x3e0 [ 33.430471][ C3] __run_timers+0x545/0x810 [ 33.430606][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.430743][ C3] ? __pfx___run_timers+0x10/0x10 [ 33.430879][ C3] ? do_raw_spin_lock+0x131/0x270 [ 33.431090][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 33.431232][ C3] ? lock_acquire+0x32/0xc0 [ 33.431367][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 33.431504][ C3] run_timer_softirq+0xe8/0x1b0 [ 33.431715][ C3] __do_softirq+0x1f8/0x5df [ 33.431854][ C3] irq_exit_rcu+0x97/0xc0 [ 33.431957][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.432096][ C3] [ 33.432166][ C3] [ 33.432235][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.432501][ C3] RIP: 0010:default_idle+0xf/0x20 [ 33.432645][ C3] 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 [ 33.433214][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 33.433388][ C3] RAX: 000000000007da79 RBX: 1ffff9200002dfc1 RCX: ffffffff9ada48b5 [ 33.433594][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff986aa4a4 [ 33.433873][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 33.434078][ C3] R10: ffff8880361b84e3 R11: ffff8880361bde40 R12: 0000000000000000 [ 33.434280][ C3] R13: ffff888001b90040 R14: dffffc0000000000 R15: 0000000000000000 [ 33.434560][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 33.434699][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 33.434836][ C3] default_idle_call+0x6d/0xb0 [ 33.435044][ C3] cpuidle_idle_call+0x1f4/0x280 [ 33.435182][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 33.435318][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 33.435455][ C3] do_idle+0xf9/0x160 [ 33.435558][ C3] cpu_startup_entry+0x54/0x60 [ 33.435767][ C3] start_secondary+0x21c/0x2b0 [ 33.435902][ C3] ? __pfx_start_secondary+0x10/0x10 [ 33.436052][ C3] common_startup_64+0x12c/0x138 [ 33.436203][ C3]