[ 27.379940][ T238] ip (238) used greatest stack depth: 24288 bytes left [ 34.193108][ T311] ip (311) used greatest stack depth: 24016 bytes left [ 40.753416][ C2] [ 40.753621][ C2] ======================================================== [ 40.753895][ C2] WARNING: possible irq lock inversion dependency detected [ 40.754141][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 40.754316][ C2] -------------------------------------------------------- [ 40.754558][ C2] swapper/2/0 just changed the state of lock: [ 40.754761][ C2] ffff888005465580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 40.755059][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 40.755304][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 40.755308][ C2] [ 40.755308][ C2] [ 40.755308][ C2] and interrupts could create inverse lock ordering between them. [ 40.755308][ C2] [ 40.755896][ C2] [ 40.755896][ C2] other info that might help us debug this: [ 40.756134][ C2] Possible interrupt unsafe locking scenario: [ 40.756134][ C2] [ 40.756369][ C2] CPU0 CPU1 [ 40.756530][ C2] ---- ---- [ 40.756692][ C2] lock(&p->alloc_lock); [ 40.756817][ C2] local_irq_disable(); [ 40.757012][ C2] lock(&ndev->lock); [ 40.757218][ C2] lock(&p->alloc_lock); [ 40.757425][ C2] [ 40.757547][ C2] lock(&ndev->lock); [ 40.757673][ C2] [ 40.757673][ C2] *** DEADLOCK *** [ 40.757673][ C2] [ 40.757902][ C2] 1 lock held by swapper/2/0: [ 40.758065][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 40.758352][ C2] [ 40.758352][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 40.758639][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 40.758815][ C2] HARDIRQ-ON-W at: [ 40.758948][ C2] __lock_acquire+0x797/0x1570 [ 40.759158][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.759360][ C2] _raw_spin_lock+0x30/0x40 [ 40.759562][ C2] set_mems_allowed+0x1d/0x210 [ 40.759773][ C2] kernel_init_freeable+0x72/0x310 [ 40.759983][ C2] kernel_init+0x20/0x200 [ 40.760195][ C2] ret_from_fork+0x31/0x70 [ 40.760401][ C2] ret_from_fork_asm+0x1a/0x30 [ 40.760610][ C2] SOFTIRQ-ON-W at: [ 40.760729][ C2] __lock_acquire+0x797/0x1570 [ 40.760929][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.761131][ C2] _raw_spin_lock+0x30/0x40 [ 40.761329][ C2] set_mems_allowed+0x1d/0x210 [ 40.761526][ C2] kernel_init_freeable+0x72/0x310 [ 40.761731][ C2] kernel_init+0x20/0x200 [ 40.761928][ C2] ret_from_fork+0x31/0x70 [ 40.762123][ C2] ret_from_fork_asm+0x1a/0x30 [ 40.762328][ C2] INITIAL USE at: [ 40.762451][ C2] __lock_acquire+0x797/0x1570 [ 40.762649][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.762848][ C2] _raw_spin_lock+0x30/0x40 [ 40.763054][ C2] set_mems_allowed+0x1d/0x210 [ 40.763255][ C2] kernel_init_freeable+0x72/0x310 [ 40.763470][ C2] kernel_init+0x20/0x200 [ 40.763666][ C2] ret_from_fork+0x31/0x70 [ 40.763867][ C2] ret_from_fork_asm+0x1a/0x30 [ 40.764069][ C2] } [ 40.764157][ C2] ... key at: [] __key.387+0x0/0x40 [ 40.764406][ C2] ... acquired at: [ 40.764517][ C2] __lock_acquire+0xaf0/0x1570 [ 40.764682][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.764839][ C2] _raw_spin_lock+0x30/0x40 [ 40.764994][ C2] __get_task_comm+0x27/0x70 [ 40.765160][ C2] ref_tracker_alloc+0x2ee/0x490 [ 40.765318][ C2] netdev_get_by_index+0x5e/0x80 [ 40.765483][ C2] fib6_nh_init+0x3d8/0x15b0 [ 40.765646][ C2] ip6_route_info_create+0xf18/0x17d0 [ 40.765806][ C2] addrconf_f6i_alloc+0x265/0x560 [ 40.765964][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 40.766129][ C2] addrconf_join_anycast+0x1c0/0x220 [ 40.766289][ C2] dev_forward_change+0x2a6/0x7b0 [ 40.766447][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 40.766649][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 40.766813][ C2] proc_sys_call_handler+0x403/0x5e0 [ 40.766970][ C2] vfs_write+0x9e5/0x10a0 [ 40.767128][ C2] ksys_write+0xf5/0x1e0 [ 40.767296][ C2] do_syscall_64+0xc6/0x1e0 [ 40.767457][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 40.767660][ C2] [ 40.767743][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 40.767911][ C2] HARDIRQ-ON-W at: [ 40.768034][ C2] __lock_acquire+0x797/0x1570 [ 40.768236][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.768445][ C2] _raw_write_lock_bh+0x38/0x50 [ 40.768740][ C2] addrconf_permanent_addr+0x6e/0x670 [ 40.769051][ C2] addrconf_notify+0x749/0xd60 [ 40.769360][ C2] notifier_call_chain+0xcd/0x150 [ 40.769679][ C2] __dev_notify_flags+0xe6/0x250 [ 40.769992][ C2] dev_change_flags+0xec/0x160 [ 40.770250][ C2] do_setlink+0x7d6/0x21e0 [ 40.770454][ C2] __rtnl_newlink+0xaa7/0xd80 [ 40.770656][ C2] rtnl_newlink+0x63/0xa0 [ 40.770860][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 40.771062][ C2] netlink_rcv_skb+0x130/0x360 [ 40.771269][ C2] netlink_unicast+0x449/0x710 [ 40.771469][ C2] netlink_sendmsg+0x723/0xbe0 [ 40.771667][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 40.771869][ C2] ___sys_sendmsg+0xee/0x170 [ 40.772071][ C2] __sys_sendmsg+0xcd/0x170 [ 40.772273][ C2] do_syscall_64+0xc6/0x1e0 [ 40.772478][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 40.772724][ C2] HARDIRQ-ON-R at: [ 40.772843][ C2] __lock_acquire+0x797/0x1570 [ 40.773046][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.773244][ C2] _raw_read_lock_bh+0x44/0x80 [ 40.773497][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 40.773696][ C2] inet6_fill_link_af+0x5e/0xe0 [ 40.773902][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 40.774102][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 40.774302][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 40.774539][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 40.774739][ C2] register_netdevice+0x1177/0x1690 [ 40.774939][ C2] register_netdev+0x20/0x40 [ 40.775137][ C2] sit_init_net+0x250/0x4f0 [ 40.775337][ C2] ops_init+0x9b/0x560 [ 40.775501][ C2] register_pernet_operations+0x2db/0x710 [ 40.775743][ C2] register_pernet_device+0x2a/0x60 [ 40.775941][ C2] sit_init+0x23/0xe0 [ 40.776102][ C2] do_one_initcall+0x8d/0x1e0 [ 40.776306][ C2] do_initcalls+0x1b2/0x3e0 [ 40.776509][ C2] kernel_init_freeable+0x232/0x310 [ 40.776708][ C2] kernel_init+0x20/0x200 [ 40.776914][ C2] ret_from_fork+0x31/0x70 [ 40.777109][ C2] ret_from_fork_asm+0x1a/0x30 [ 40.777311][ C2] IN-SOFTIRQ-W at: [ 40.777432][ C2] __lock_acquire+0x797/0x1570 [ 40.777635][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.777827][ C2] _raw_write_lock+0x30/0x40 [ 40.778026][ C2] addrconf_rs_timer+0xa9/0x730 [ 40.778222][ C2] call_timer_fn+0x13b/0x230 [ 40.778422][ C2] __run_timers+0x545/0x810 [ 40.778622][ C2] timer_expire_remote+0x9b/0xe0 [ 40.778824][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 40.779024][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 40.779222][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 40.779420][ C2] __do_softirq+0x1f8/0x5df [ 40.779622][ C2] irq_exit_rcu+0x97/0xc0 [ 40.779822][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 40.780058][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 40.780301][ C2] default_idle+0xf/0x20 [ 40.780501][ C2] default_idle_call+0x6d/0xb0 [ 40.780703][ C2] cpuidle_idle_call+0x1f4/0x280 [ 40.780905][ C2] do_idle+0xf9/0x160 [ 40.781062][ C2] cpu_startup_entry+0x54/0x60 [ 40.781263][ C2] start_secondary+0x21c/0x2b0 [ 40.781469][ C2] common_startup_64+0x12c/0x138 [ 40.781674][ C2] INITIAL USE at: [ 40.781795][ C2] __lock_acquire+0x797/0x1570 [ 40.782000][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.782201][ C2] _raw_write_lock_bh+0x38/0x50 [ 40.782406][ C2] addrconf_permanent_addr+0x6e/0x670 [ 40.782608][ C2] addrconf_notify+0x749/0xd60 [ 40.782811][ C2] notifier_call_chain+0xcd/0x150 [ 40.783015][ C2] __dev_notify_flags+0xe6/0x250 [ 40.783212][ C2] dev_change_flags+0xec/0x160 [ 40.783423][ C2] do_setlink+0x7d6/0x21e0 [ 40.783624][ C2] __rtnl_newlink+0xaa7/0xd80 [ 40.783822][ C2] rtnl_newlink+0x63/0xa0 [ 40.784036][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 40.784238][ C2] netlink_rcv_skb+0x130/0x360 [ 40.784441][ C2] netlink_unicast+0x449/0x710 [ 40.784644][ C2] netlink_sendmsg+0x723/0xbe0 [ 40.784848][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 40.785050][ C2] ___sys_sendmsg+0xee/0x170 [ 40.785255][ C2] __sys_sendmsg+0xcd/0x170 [ 40.785455][ C2] do_syscall_64+0xc6/0x1e0 [ 40.785654][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 40.785896][ C2] INITIAL READ USE at: [ 40.786013][ C2] __lock_acquire+0x797/0x1570 [ 40.786211][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.786414][ C2] _raw_read_lock_bh+0x44/0x80 [ 40.786624][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 40.786867][ C2] inet6_fill_link_af+0x5e/0xe0 [ 40.787067][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 40.787260][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 40.787494][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 40.787739][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 40.787944][ C2] register_netdevice+0x1177/0x1690 [ 40.788178][ C2] register_netdev+0x20/0x40 [ 40.788376][ C2] sit_init_net+0x250/0x4f0 [ 40.788584][ C2] ops_init+0x9b/0x560 [ 40.788777][ C2] register_pernet_operations+0x2db/0x710 [ 40.789009][ C2] register_pernet_device+0x2a/0x60 [ 40.789249][ C2] sit_init+0x23/0xe0 [ 40.789461][ C2] do_one_initcall+0x8d/0x1e0 [ 40.789660][ C2] do_initcalls+0x1b2/0x3e0 [ 40.789858][ C2] kernel_init_freeable+0x232/0x310 [ 40.790097][ C2] kernel_init+0x20/0x200 [ 40.790295][ C2] ret_from_fork+0x31/0x70 [ 40.790499][ C2] ret_from_fork_asm+0x1a/0x30 [ 40.790701][ C2] } [ 40.790782][ C2] ... key at: [] __key.37+0x0/0x40 [ 40.791017][ C2] ... acquired at: [ 40.791134][ C2] mark_lock+0x28d/0x3e0 [ 40.791294][ C2] mark_usage+0xd9/0x2a0 [ 40.791451][ C2] __lock_acquire+0x797/0x1570 [ 40.791611][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.791774][ C2] _raw_write_lock+0x30/0x40 [ 40.791943][ C2] addrconf_rs_timer+0xa9/0x730 [ 40.792100][ C2] call_timer_fn+0x13b/0x230 [ 40.792261][ C2] __run_timers+0x545/0x810 [ 40.792420][ C2] timer_expire_remote+0x9b/0xe0 [ 40.792581][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 40.792732][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 40.792889][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 40.793045][ C2] __do_softirq+0x1f8/0x5df [ 40.793505][ C2] irq_exit_rcu+0x97/0xc0 [ 40.793690][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 40.793890][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 40.794086][ C2] default_idle+0xf/0x20 [ 40.794242][ C2] default_idle_call+0x6d/0xb0 [ 40.794400][ C2] cpuidle_idle_call+0x1f4/0x280 [ 40.794556][ C2] do_idle+0xf9/0x160 [ 40.794686][ C2] cpu_startup_entry+0x54/0x60 [ 40.794841][ C2] start_secondary+0x21c/0x2b0 [ 40.795080][ C2] common_startup_64+0x12c/0x138 [ 40.795244][ C2] [ 40.795330][ C2] [ 40.795330][ C2] stack backtrace: [ 40.795516][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 40.795842][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 40.796202][ C2] Call Trace: [ 40.796325][ C2] [ 40.796490][ C2] dump_stack_lvl+0x82/0xd0 [ 40.796653][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 40.796846][ C2] ? kernel_text_address+0x17/0xe0 [ 40.797010][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 40.797290][ C2] ? __pfx_usage_skip+0x10/0x10 [ 40.797449][ C2] ? __pfx_usage_match+0x10/0x10 [ 40.797610][ C2] ? arch_stack_walk+0x8c/0xf0 [ 40.797773][ C2] mark_lock_irq+0x4cd/0xa10 [ 40.798022][ C2] ? common_startup_64+0x12c/0x138 [ 40.798182][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 40.798340][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 40.798501][ C2] ? save_trace+0x8f/0x5b0 [ 40.798658][ C2] mark_lock+0x28d/0x3e0 [ 40.798856][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 40.799020][ C2] mark_usage+0xd9/0x2a0 [ 40.799133][ C2] __lock_acquire+0x797/0x1570 [ 40.799288][ C2] ? __pfx_validate_chain+0x10/0x10 [ 40.799524][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 40.799698][ C2] lock_acquire.part.0+0xeb/0x330 [ 40.799835][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 40.799979][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 40.800113][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 40.800425][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 40.800653][ C2] ? lock_acquire+0x32/0xc0 [ 40.800877][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 40.801096][ C2] _raw_write_lock+0x30/0x40 [ 40.801327][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 40.801556][ C2] addrconf_rs_timer+0xa9/0x730 [ 40.801787][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 40.802058][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 40.802475][ C2] ? call_timer_fn+0xe8/0x230 [ 40.802726][ C2] ? lock_acquire+0x32/0xc0 [ 40.802972][ C2] ? call_timer_fn+0xe8/0x230 [ 40.803222][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 40.803481][ C2] call_timer_fn+0x13b/0x230 [ 40.803715][ C2] ? call_timer_fn+0xe8/0x230 [ 40.803859][ C2] ? call_timer_fn+0xe8/0x230 [ 40.803995][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 40.804132][ C2] ? mark_lock+0x38/0x3e0 [ 40.804345][ C2] __run_timers+0x545/0x810 [ 40.804481][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 40.804619][ C2] ? __pfx___run_timers+0x10/0x10 [ 40.804755][ C2] ? __lock_release+0x103/0x460 [ 40.804889][ C2] ? do_raw_spin_lock+0x131/0x270 [ 40.805023][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 40.805158][ C2] ? lock_acquire+0x32/0xc0 [ 40.805295][ C2] ? timer_expire_remote+0x93/0xe0 [ 40.805524][ C2] timer_expire_remote+0x9b/0xe0 [ 40.805666][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 40.805806][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 40.805979][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 40.806203][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 40.806340][ C2] ? do_raw_spin_lock+0x131/0x270 [ 40.806475][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 40.806611][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 40.806758][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x14f/0x370 [ 40.806932][ C2] __do_softirq+0x1f8/0x5df [ 40.807076][ C2] irq_exit_rcu+0x97/0xc0 [ 40.807180][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 40.807316][ C2] [ 40.807470][ C2] [ 40.807543][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 40.807712][ C2] RIP: 0010:default_idle+0xf/0x20 [ 40.807865][ 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 [ 40.808429][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 40.808602][ C2] RAX: 0000000000104c49 RBX: 1ffff9200002bfc1 RCX: ffffffffb610e9d5 [ 40.808892][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb3aaa4a4 [ 40.809101][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 40.809304][ C2] R10: ffff8880361384e3 R11: ffff88803612d9b0 R12: 0000000000000000 [ 40.809587][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 40.809790][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 40.809930][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 40.810247][ C2] default_idle_call+0x6d/0xb0 [ 40.810384][ C2] cpuidle_idle_call+0x1f4/0x280 [ 40.810522][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 40.810659][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 40.810801][ C2] do_idle+0xf9/0x160 [ 40.810905][ C2] cpu_startup_entry+0x54/0x60 [ 40.811083][ C2] start_secondary+0x21c/0x2b0 [ 40.811242][ C2] ? __pfx_start_secondary+0x10/0x10 [ 40.811400][ C2] common_startup_64+0x12c/0x138 [ 40.811642][ C2]