[ 26.770159][ T257] ip (257) used greatest stack depth: 23488 bytes left [ 31.800667][ T293] netem: version 1.3 [ 33.704931][ C3] [ 33.705100][ C3] ======================================================== [ 33.705350][ C3] WARNING: possible irq lock inversion dependency detected [ 33.705580][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 33.705758][ C3] -------------------------------------------------------- [ 33.705994][ C3] swapper/3/0 just changed the state of lock: [ 33.706189][ C3] ffff888007032580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 33.706471][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 33.706698][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 33.706702][ C3] [ 33.706702][ C3] [ 33.706702][ C3] and interrupts could create inverse lock ordering between them. [ 33.706702][ C3] [ 33.707262][ C3] [ 33.707262][ C3] other info that might help us debug this: [ 33.707504][ C3] Possible interrupt unsafe locking scenario: [ 33.707504][ C3] [ 33.707733][ C3] CPU0 CPU1 [ 33.707904][ C3] ---- ---- [ 33.708052][ C3] lock(&p->alloc_lock); [ 33.708165][ C3] local_irq_disable(); [ 33.708350][ C3] lock(&ndev->lock); [ 33.708540][ C3] lock(&p->alloc_lock); [ 33.708734][ C3] [ 33.708865][ C3] lock(&ndev->lock); [ 33.708980][ C3] [ 33.708980][ C3] *** DEADLOCK *** [ 33.708980][ C3] [ 33.709198][ C3] 1 lock held by swapper/3/0: [ 33.709356][ C3] #0: ffffc90000288b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 33.709639][ C3] [ 33.709639][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 33.709932][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 33.710089][ C3] HARDIRQ-ON-W at: [ 33.710221][ C3] __lock_acquire+0x797/0x1570 [ 33.710416][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.710607][ C3] _raw_spin_lock+0x30/0x40 [ 33.710824][ C3] set_mems_allowed+0x1d/0x210 [ 33.711014][ C3] kernel_init_freeable+0x72/0x310 [ 33.711205][ C3] kernel_init+0x20/0x200 [ 33.711396][ C3] ret_from_fork+0x31/0x70 [ 33.711602][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.711800][ C3] SOFTIRQ-ON-W at: [ 33.711942][ C3] __lock_acquire+0x797/0x1570 [ 33.712130][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.712332][ C3] _raw_spin_lock+0x30/0x40 [ 33.712520][ C3] set_mems_allowed+0x1d/0x210 [ 33.712717][ C3] kernel_init_freeable+0x72/0x310 [ 33.712918][ C3] kernel_init+0x20/0x200 [ 33.713108][ C3] ret_from_fork+0x31/0x70 [ 33.713295][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.713498][ C3] INITIAL USE at: [ 33.713616][ C3] __lock_acquire+0x797/0x1570 [ 33.713826][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.714012][ C3] _raw_spin_lock+0x30/0x40 [ 33.714218][ C3] set_mems_allowed+0x1d/0x210 [ 33.714424][ C3] kernel_init_freeable+0x72/0x310 [ 33.714610][ C3] kernel_init+0x20/0x200 [ 33.714820][ C3] ret_from_fork+0x31/0x70 [ 33.715010][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.715209][ C3] } [ 33.715287][ C3] ... key at: [] __key.387+0x0/0x40 [ 33.715537][ C3] ... acquired at: [ 33.715651][ C3] __lock_acquire+0xaf0/0x1570 [ 33.715821][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.715988][ C3] _raw_spin_lock+0x30/0x40 [ 33.716140][ C3] __get_task_comm+0x27/0x70 [ 33.716304][ C3] ref_tracker_alloc+0x2ee/0x490 [ 33.716455][ C3] netdev_get_by_index+0x5e/0x80 [ 33.716624][ C3] fib6_nh_init+0x3d8/0x15b0 [ 33.716786][ C3] ip6_route_info_create+0xf18/0x17d0 [ 33.716942][ C3] ip6_route_add+0x1c/0x140 [ 33.717094][ C3] addrconf_prefix_route+0x1cc/0x2b0 [ 33.717249][ C3] addrconf_permanent_addr+0x32f/0x670 [ 33.717398][ C3] addrconf_notify+0x749/0xd60 [ 33.717546][ C3] notifier_call_chain+0xcd/0x150 [ 33.717720][ C3] __dev_notify_flags+0xe6/0x250 [ 33.717869][ C3] dev_change_flags+0xec/0x160 [ 33.718035][ C3] do_setlink+0x7d6/0x21e0 [ 33.718187][ C3] __rtnl_newlink+0xaa7/0xd80 [ 33.718349][ C3] rtnl_newlink+0x63/0xa0 [ 33.718496][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.718674][ C3] netlink_rcv_skb+0x130/0x360 [ 33.718863][ C3] netlink_unicast+0x449/0x710 [ 33.719014][ C3] netlink_sendmsg+0x723/0xbe0 [ 33.719177][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 33.719325][ C3] ___sys_sendmsg+0xee/0x170 [ 33.719486][ C3] __sys_sendmsg+0xcd/0x170 [ 33.719647][ C3] do_syscall_64+0xc6/0x1e0 [ 33.719810][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.720012][ C3] [ 33.720087][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 33.720257][ C3] HARDIRQ-ON-W at: [ 33.720373][ C3] __lock_acquire+0x797/0x1570 [ 33.720557][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.720766][ C3] _raw_write_lock_bh+0x38/0x50 [ 33.720959][ C3] addrconf_permanent_addr+0x6e/0x670 [ 33.721149][ C3] addrconf_notify+0x749/0xd60 [ 33.721344][ C3] notifier_call_chain+0xcd/0x150 [ 33.721531][ C3] __dev_notify_flags+0xe6/0x250 [ 33.721734][ C3] dev_change_flags+0xec/0x160 [ 33.721920][ C3] do_setlink+0x7d6/0x21e0 [ 33.722113][ C3] __rtnl_newlink+0xaa7/0xd80 [ 33.722298][ C3] rtnl_newlink+0x63/0xa0 [ 33.722489][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.722712][ C3] netlink_rcv_skb+0x130/0x360 [ 33.722900][ C3] netlink_unicast+0x449/0x710 [ 33.723086][ C3] netlink_sendmsg+0x723/0xbe0 [ 33.723276][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 33.723474][ C3] ___sys_sendmsg+0xee/0x170 [ 33.723672][ C3] __sys_sendmsg+0xcd/0x170 [ 33.723857][ C3] do_syscall_64+0xc6/0x1e0 [ 33.724043][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.724278][ C3] HARDIRQ-ON-R at: [ 33.724391][ C3] __lock_acquire+0x797/0x1570 [ 33.724586][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.724781][ C3] _raw_read_lock_bh+0x44/0x80 [ 33.724970][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.725157][ C3] inet6_fill_link_af+0x5e/0xe0 [ 33.725344][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.725533][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.725734][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.725958][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 33.726152][ C3] register_netdevice+0x1177/0x1690 [ 33.726340][ C3] register_netdev+0x20/0x40 [ 33.726527][ C3] sit_init_net+0x250/0x4f0 [ 33.726737][ C3] ops_init+0x9b/0x560 [ 33.726964][ C3] register_pernet_operations+0x2db/0x710 [ 33.727192][ C3] register_pernet_device+0x2a/0x60 [ 33.727375][ C3] sit_init+0x23/0xe0 [ 33.727527][ C3] do_one_initcall+0x8d/0x1e0 [ 33.727719][ C3] do_initcalls+0x1b2/0x3e0 [ 33.727910][ C3] kernel_init_freeable+0x232/0x310 [ 33.728097][ C3] kernel_init+0x20/0x200 [ 33.728288][ C3] ret_from_fork+0x31/0x70 [ 33.728502][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.728697][ C3] IN-SOFTIRQ-W at: [ 33.728903][ C3] __lock_acquire+0x797/0x1570 [ 33.729083][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.729254][ C3] _raw_write_lock+0x30/0x40 [ 33.729428][ C3] addrconf_rs_timer+0xa9/0x730 [ 33.729604][ C3] call_timer_fn+0x13b/0x230 [ 33.729788][ C3] __run_timers+0x545/0x810 [ 33.729995][ C3] timer_expire_remote+0x9b/0xe0 [ 33.730181][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 33.730371][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.730554][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 33.730748][ C3] __do_softirq+0x1f8/0x5df [ 33.730938][ C3] irq_exit_rcu+0x97/0xc0 [ 33.731124][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.731351][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.731580][ C3] default_idle+0xf/0x20 [ 33.731775][ C3] default_idle_call+0x6d/0xb0 [ 33.731960][ C3] cpuidle_idle_call+0x1f4/0x280 [ 33.732132][ C3] do_idle+0xf9/0x160 [ 33.732274][ C3] cpu_startup_entry+0x54/0x60 [ 33.732457][ C3] start_secondary+0x21c/0x2b0 [ 33.732639][ C3] common_startup_64+0x12c/0x138 [ 33.732830][ C3] INITIAL USE at: [ 33.732962][ C3] __lock_acquire+0x797/0x1570 [ 33.733152][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.733345][ C3] _raw_write_lock_bh+0x38/0x50 [ 33.733526][ C3] addrconf_permanent_addr+0x6e/0x670 [ 33.733720][ C3] addrconf_notify+0x749/0xd60 [ 33.733890][ C3] notifier_call_chain+0xcd/0x150 [ 33.734061][ C3] __dev_notify_flags+0xe6/0x250 [ 33.734251][ C3] dev_change_flags+0xec/0x160 [ 33.734436][ C3] do_setlink+0x7d6/0x21e0 [ 33.734613][ C3] __rtnl_newlink+0xaa7/0xd80 [ 33.734837][ C3] rtnl_newlink+0x63/0xa0 [ 33.735009][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 33.735193][ C3] netlink_rcv_skb+0x130/0x360 [ 33.735386][ C3] netlink_unicast+0x449/0x710 [ 33.735562][ C3] netlink_sendmsg+0x723/0xbe0 [ 33.735753][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 33.735939][ C3] ___sys_sendmsg+0xee/0x170 [ 33.736115][ C3] __sys_sendmsg+0xcd/0x170 [ 33.736311][ C3] do_syscall_64+0xc6/0x1e0 [ 33.736488][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.736723][ C3] INITIAL READ USE at: [ 33.736826][ C3] __lock_acquire+0x797/0x1570 [ 33.737010][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.737181][ C3] _raw_read_lock_bh+0x44/0x80 [ 33.737355][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 33.737566][ C3] inet6_fill_link_af+0x5e/0xe0 [ 33.737750][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 33.737924][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 33.738132][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 33.738339][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 33.738511][ C3] register_netdevice+0x1177/0x1690 [ 33.738725][ C3] register_netdev+0x20/0x40 [ 33.738899][ C3] sit_init_net+0x250/0x4f0 [ 33.739074][ C3] ops_init+0x9b/0x560 [ 33.739246][ C3] register_pernet_operations+0x2db/0x710 [ 33.739467][ C3] register_pernet_device+0x2a/0x60 [ 33.739768][ C3] sit_init+0x23/0xe0 [ 33.739952][ C3] do_one_initcall+0x8d/0x1e0 [ 33.740140][ C3] do_initcalls+0x1b2/0x3e0 [ 33.740320][ C3] kernel_init_freeable+0x232/0x310 [ 33.740605][ C3] kernel_init+0x20/0x200 [ 33.740794][ C3] ret_from_fork+0x31/0x70 [ 33.740971][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.741237][ C3] } [ 33.741307][ C3] ... key at: [] __key.36+0x0/0x40 [ 33.741529][ C3] ... acquired at: [ 33.741630][ C3] mark_lock+0x28d/0x3e0 [ 33.741869][ C3] mark_usage+0xd9/0x2a0 [ 33.742022][ C3] __lock_acquire+0x797/0x1570 [ 33.742162][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.742298][ C3] _raw_write_lock+0x30/0x40 [ 33.742447][ C3] addrconf_rs_timer+0xa9/0x730 [ 33.742583][ C3] call_timer_fn+0x13b/0x230 [ 33.742746][ C3] __run_timers+0x545/0x810 [ 33.742882][ C3] timer_expire_remote+0x9b/0xe0 [ 33.743021][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 33.743170][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.743307][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 33.743459][ C3] __do_softirq+0x1f8/0x5df [ 33.743614][ C3] irq_exit_rcu+0x97/0xc0 [ 33.743845][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.744033][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.744205][ C3] default_idle+0xf/0x20 [ 33.744383][ C3] default_idle_call+0x6d/0xb0 [ 33.744529][ C3] cpuidle_idle_call+0x1f4/0x280 [ 33.744675][ C3] do_idle+0xf9/0x160 [ 33.744780][ C3] cpu_startup_entry+0x54/0x60 [ 33.744926][ C3] start_secondary+0x21c/0x2b0 [ 33.745157][ C3] common_startup_64+0x12c/0x138 [ 33.745299][ C3] [ 33.745368][ C3] [ 33.745368][ C3] stack backtrace: [ 33.745536][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 33.745833][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 33.746147][ C3] Call Trace: [ 33.746259][ C3] [ 33.746331][ C3] dump_stack_lvl+0x82/0xd0 [ 33.746488][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 33.746665][ C3] ? kernel_text_address+0x17/0xe0 [ 33.746824][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 33.747005][ C3] ? __pfx_usage_skip+0x10/0x10 [ 33.747142][ C3] ? __pfx_usage_match+0x10/0x10 [ 33.747278][ C3] ? arch_stack_walk+0x8c/0xf0 [ 33.747417][ C3] mark_lock_irq+0x4cd/0xa10 [ 33.747556][ C3] ? common_startup_64+0x12c/0x138 [ 33.747785][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 33.747923][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 33.748064][ C3] ? save_trace+0x8f/0x5b0 [ 33.748202][ C3] mark_lock+0x28d/0x3e0 [ 33.748306][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 33.748520][ C3] mark_usage+0xd9/0x2a0 [ 33.748623][ C3] __lock_acquire+0x797/0x1570 [ 33.748777][ C3] ? __pfx_validate_chain+0x10/0x10 [ 33.748916][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.749132][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.749269][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.749405][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.749543][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 33.749770][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.749907][ C3] ? lock_acquire+0x32/0xc0 [ 33.750043][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.750180][ C3] _raw_write_lock+0x30/0x40 [ 33.750318][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 33.750533][ C3] addrconf_rs_timer+0xa9/0x730 [ 33.750678][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 33.750836][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.750972][ C3] ? call_timer_fn+0xe8/0x230 [ 33.751187][ C3] ? lock_acquire+0x32/0xc0 [ 33.751322][ C3] ? call_timer_fn+0xe8/0x230 [ 33.751458][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.751597][ C3] call_timer_fn+0x13b/0x230 [ 33.751824][ C3] ? call_timer_fn+0xe8/0x230 [ 33.751960][ C3] ? call_timer_fn+0xe8/0x230 [ 33.752096][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 33.752233][ C3] ? mark_lock+0x38/0x3e0 [ 33.752342][ C3] __run_timers+0x545/0x810 [ 33.752556][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 33.752705][ C3] ? __pfx___run_timers+0x10/0x10 [ 33.752843][ C3] ? __lock_release+0x103/0x460 [ 33.752983][ C3] ? do_raw_spin_lock+0x131/0x270 [ 33.753205][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 33.753355][ C3] ? lock_acquire+0x32/0xc0 [ 33.753526][ C3] ? timer_expire_remote+0x93/0xe0 [ 33.753672][ C3] timer_expire_remote+0x9b/0xe0 [ 33.753819][ C3] tmigr_handle_remote_cpu+0x270/0x430 [ 33.753969][ C3] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 33.754142][ C3] tmigr_handle_remote_up+0x19f/0x2e0 [ 33.754282][ C3] tmigr_handle_remote+0x21d/0x3a0 [ 33.754508][ C3] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 33.754649][ C3] __do_softirq+0x1f8/0x5df [ 33.754810][ C3] irq_exit_rcu+0x97/0xc0 [ 33.754916][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 33.755057][ C3] [ 33.755240][ C3] [ 33.755312][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 33.755496][ C3] RIP: 0010:default_idle+0xf/0x20 [ 33.755644][ 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.756191][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 33.756378][ C3] RAX: 0000000000088901 RBX: 1ffff9200002dfc1 RCX: ffffffffb0da48b5 [ 33.756695][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffae6aa4a4 [ 33.756913][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 33.757140][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 33.757437][ C3] R13: ffff888001b90040 R14: dffffc0000000000 R15: 0000000000000000 [ 33.757646][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 33.757817][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 33.758038][ C3] default_idle_call+0x6d/0xb0 [ 33.758188][ C3] cpuidle_idle_call+0x1f4/0x280 [ 33.758325][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 33.758462][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 33.758711][ C3] do_idle+0xf9/0x160 [ 33.758849][ C3] cpu_startup_entry+0x54/0x60 [ 33.758986][ C3] start_secondary+0x21c/0x2b0 [ 33.759121][ C3] ? __pfx_start_secondary+0x10/0x10 [ 33.759262][ C3] common_startup_64+0x12c/0x138 [ 33.759480][ C3]