[ 23.848352][ T245] ip (245) used greatest stack depth: 24296 bytes left [ 39.850976][ T331] ip (331) used greatest stack depth: 24208 bytes left [ 64.513763][ C1] [ 64.513923][ C1] ======================================================== [ 64.514137][ C1] WARNING: possible irq lock inversion dependency detected [ 64.514348][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 64.514477][ C1] -------------------------------------------------------- [ 64.514676][ C1] swapper/1/0 just changed the state of lock: [ 64.514855][ C1] ffff888005620d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 64.515114][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 64.515309][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 64.515313][ C1] [ 64.515313][ C1] [ 64.515313][ C1] and interrupts could create inverse lock ordering between them. [ 64.515313][ C1] [ 64.515823][ C1] [ 64.515823][ C1] other info that might help us debug this: [ 64.516016][ C1] Possible interrupt unsafe locking scenario: [ 64.516016][ C1] [ 64.516224][ C1] CPU0 CPU1 [ 64.516364][ C1] ---- ---- [ 64.516499][ C1] lock(&p->alloc_lock); [ 64.516615][ C1] local_irq_disable(); [ 64.516798][ C1] lock(&ndev->lock); [ 64.516964][ C1] lock(&p->alloc_lock); [ 64.517138][ C1] [ 64.517235][ C1] lock(&ndev->lock); [ 64.517355][ C1] [ 64.517355][ C1] *** DEADLOCK *** [ 64.517355][ C1] [ 64.517547][ C1] 1 lock held by swapper/1/0: [ 64.517678][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 64.517915][ C1] [ 64.517915][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 64.518137][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 64.518271][ C1] HARDIRQ-ON-W at: [ 64.518376][ C1] __lock_acquire+0x797/0x1570 [ 64.518551][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.518715][ C1] _raw_spin_lock+0x30/0x40 [ 64.518880][ C1] set_mems_allowed+0x1d/0x210 [ 64.519050][ C1] kernel_init_freeable+0x72/0x310 [ 64.519216][ C1] kernel_init+0x20/0x200 [ 64.519381][ C1] ret_from_fork+0x31/0x70 [ 64.519550][ C1] ret_from_fork_asm+0x1a/0x30 [ 64.519716][ C1] SOFTIRQ-ON-W at: [ 64.519816][ C1] __lock_acquire+0x797/0x1570 [ 64.519980][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.520145][ C1] _raw_spin_lock+0x30/0x40 [ 64.520315][ C1] set_mems_allowed+0x1d/0x210 [ 64.520478][ C1] kernel_init_freeable+0x72/0x310 [ 64.520643][ C1] kernel_init+0x20/0x200 [ 64.520807][ C1] ret_from_fork+0x31/0x70 [ 64.520974][ C1] ret_from_fork_asm+0x1a/0x30 [ 64.521136][ C1] INITIAL USE at: [ 64.521235][ C1] __lock_acquire+0x797/0x1570 [ 64.521400][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.521566][ C1] _raw_spin_lock+0x30/0x40 [ 64.521729][ C1] set_mems_allowed+0x1d/0x210 [ 64.521896][ C1] kernel_init_freeable+0x72/0x310 [ 64.522062][ C1] kernel_init+0x20/0x200 [ 64.522225][ C1] ret_from_fork+0x31/0x70 [ 64.522400][ C1] ret_from_fork_asm+0x1a/0x30 [ 64.522588][ C1] } [ 64.522656][ C1] ... key at: [] __key.388+0x0/0x40 [ 64.522867][ C1] ... acquired at: [ 64.522966][ C1] __lock_acquire+0xaf0/0x1570 [ 64.523112][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.523262][ C1] _raw_spin_lock+0x30/0x40 [ 64.523390][ C1] __get_task_comm+0x27/0x70 [ 64.523544][ C1] ref_tracker_alloc+0x2ee/0x490 [ 64.523678][ C1] netdev_get_by_index+0x5e/0x80 [ 64.523815][ C1] fib6_nh_init+0x3d8/0x1580 [ 64.523963][ C1] ip6_route_info_create+0xf18/0x17d0 [ 64.524092][ C1] addrconf_f6i_alloc+0x265/0x560 [ 64.524242][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 64.524372][ C1] addrconf_join_anycast+0x1c0/0x220 [ 64.524510][ C1] dev_forward_change+0x2a6/0x7b0 [ 64.524660][ C1] addrconf_fixup_forwarding+0x152/0x460 [ 64.524821][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 64.524967][ C1] proc_sys_call_handler+0x403/0x5e0 [ 64.525097][ C1] vfs_write+0x9e5/0x10a0 [ 64.525240][ C1] ksys_write+0xf5/0x1e0 [ 64.525390][ C1] do_syscall_64+0xc6/0x1e0 [ 64.525519][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 64.525701][ C1] [ 64.525767][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 64.525908][ C1] HARDIRQ-ON-W at: [ 64.526008][ C1] __lock_acquire+0x797/0x1570 [ 64.526188][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.526352][ C1] _raw_write_lock_bh+0x38/0x50 [ 64.526515][ C1] addrconf_permanent_addr+0x6e/0x670 [ 64.526684][ C1] addrconf_notify+0x749/0xd60 [ 64.526857][ C1] notifier_call_chain+0xcd/0x150 [ 64.527033][ C1] __dev_notify_flags+0xe6/0x250 [ 64.527210][ C1] dev_change_flags+0xec/0x160 [ 64.527398][ C1] do_setlink+0x7d6/0x21e0 [ 64.527560][ C1] __rtnl_newlink+0xaa7/0xd80 [ 64.527740][ C1] rtnl_newlink+0x63/0xa0 [ 64.527910][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 64.528090][ C1] netlink_rcv_skb+0x130/0x360 [ 64.528255][ C1] netlink_unicast+0x449/0x710 [ 64.528441][ C1] netlink_sendmsg+0x723/0xbe0 [ 64.528613][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 64.528793][ C1] ___sys_sendmsg+0xee/0x170 [ 64.528968][ C1] __sys_sendmsg+0xcd/0x170 [ 64.529149][ C1] do_syscall_64+0xc6/0x1e0 [ 64.529317][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 64.529530][ C1] HARDIRQ-ON-R at: [ 64.529639][ C1] __lock_acquire+0x797/0x1570 [ 64.529811][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.529984][ C1] _raw_read_lock_bh+0x44/0x80 [ 64.530158][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 64.530344][ C1] inet6_fill_link_af+0x5e/0xe0 [ 64.530505][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 64.530690][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 64.530865][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 64.531076][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 64.531239][ C1] register_netdevice+0x1177/0x1690 [ 64.531419][ C1] register_netdev+0x20/0x40 [ 64.531589][ C1] vti6_init_net+0x25d/0x380 [ 64.531777][ C1] ops_init+0x9b/0x560 [ 64.531916][ C1] register_pernet_operations+0x2db/0x710 [ 64.532126][ C1] register_pernet_device+0x2a/0x60 [ 64.532296][ C1] vti6_tunnel_init+0x18/0x110 [ 64.532484][ C1] do_one_initcall+0x8d/0x1e0 [ 64.532649][ C1] do_initcalls+0x1b2/0x3e0 [ 64.532832][ C1] kernel_init_freeable+0x232/0x310 [ 64.533001][ C1] kernel_init+0x20/0x200 [ 64.533174][ C1] ret_from_fork+0x31/0x70 [ 64.533347][ C1] ret_from_fork_asm+0x1a/0x30 [ 64.533525][ C1] IN-SOFTIRQ-W at: [ 64.533623][ C1] __lock_acquire+0x797/0x1570 [ 64.533785][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.533948][ C1] _raw_write_lock+0x30/0x40 [ 64.534111][ C1] addrconf_rs_timer+0xa9/0x730 [ 64.534278][ C1] call_timer_fn+0x13b/0x230 [ 64.534442][ C1] __run_timers+0x545/0x810 [ 64.534605][ C1] run_timer_softirq+0xe8/0x1b0 [ 64.534769][ C1] __do_softirq+0x1f8/0x5df [ 64.534932][ C1] irq_exit_rcu+0x97/0xc0 [ 64.535095][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 64.535290][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 64.535485][ C1] default_idle+0xf/0x20 [ 64.535647][ C1] default_idle_call+0x6d/0xb0 [ 64.535809][ C1] cpuidle_idle_call+0x1f4/0x280 [ 64.535973][ C1] do_idle+0xf9/0x160 [ 64.536103][ C1] cpu_startup_entry+0x54/0x60 [ 64.536270][ C1] start_secondary+0x21c/0x2b0 [ 64.536436][ C1] common_startup_64+0x12c/0x138 [ 64.536598][ C1] INITIAL USE at: [ 64.536702][ C1] __lock_acquire+0x797/0x1570 [ 64.536867][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.537030][ C1] _raw_write_lock_bh+0x38/0x50 [ 64.537193][ C1] addrconf_permanent_addr+0x6e/0x670 [ 64.537357][ C1] addrconf_notify+0x749/0xd60 [ 64.537519][ C1] notifier_call_chain+0xcd/0x150 [ 64.537682][ C1] __dev_notify_flags+0xe6/0x250 [ 64.537845][ C1] dev_change_flags+0xec/0x160 [ 64.538005][ C1] do_setlink+0x7d6/0x21e0 [ 64.538167][ C1] __rtnl_newlink+0xaa7/0xd80 [ 64.538332][ C1] rtnl_newlink+0x63/0xa0 [ 64.538494][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 64.538657][ C1] netlink_rcv_skb+0x130/0x360 [ 64.538820][ C1] netlink_unicast+0x449/0x710 [ 64.538982][ C1] netlink_sendmsg+0x723/0xbe0 [ 64.539143][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 64.539307][ C1] ___sys_sendmsg+0xee/0x170 [ 64.539471][ C1] __sys_sendmsg+0xcd/0x170 [ 64.539642][ C1] do_syscall_64+0xc6/0x1e0 [ 64.539830][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 64.540024][ C1] INITIAL READ USE at: [ 64.540139][ C1] __lock_acquire+0x797/0x1570 [ 64.540301][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.540473][ C1] _raw_read_lock_bh+0x44/0x80 [ 64.540658][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 64.540871][ C1] inet6_fill_link_af+0x5e/0xe0 [ 64.541033][ C1] rtnl_fill_ifinfo+0x1615/0x2a90 [ 64.541204][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 64.541414][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 64.541705][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 64.541873][ C1] register_netdevice+0x1177/0x1690 [ 64.542090][ C1] register_netdev+0x20/0x40 [ 64.542327][ C1] vti6_init_net+0x25d/0x380 [ 64.542489][ C1] ops_init+0x9b/0x560 [ 64.542649][ C1] register_pernet_operations+0x2db/0x710 [ 64.542863][ C1] register_pernet_device+0x2a/0x60 [ 64.543138][ C1] vti6_tunnel_init+0x18/0x110 [ 64.543320][ C1] do_one_initcall+0x8d/0x1e0 [ 64.543483][ C1] do_initcalls+0x1b2/0x3e0 [ 64.543825][ C1] kernel_init_freeable+0x232/0x310 [ 64.544035][ C1] kernel_init+0x20/0x200 [ 64.544200][ C1] ret_from_fork+0x31/0x70 [ 64.544453][ C1] ret_from_fork_asm+0x1a/0x30 [ 64.544626][ C1] } [ 64.544703][ C1] ... key at: [] __key.37+0x0/0x40 [ 64.544909][ C1] ... acquired at: [ 64.545096][ C1] mark_lock+0x28d/0x3e0 [ 64.545233][ C1] mark_usage+0xd9/0x2a0 [ 64.545378][ C1] __lock_acquire+0x797/0x1570 [ 64.545533][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.545789][ C1] _raw_write_lock+0x30/0x40 [ 64.545919][ C1] addrconf_rs_timer+0xa9/0x730 [ 64.546063][ C1] call_timer_fn+0x13b/0x230 [ 64.546193][ C1] __run_timers+0x545/0x810 [ 64.546339][ C1] run_timer_softirq+0xe8/0x1b0 [ 64.546560][ C1] __do_softirq+0x1f8/0x5df [ 64.546711][ C1] irq_exit_rcu+0x97/0xc0 [ 64.546840][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 64.547004][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 64.547240][ C1] default_idle+0xf/0x20 [ 64.547369][ C1] default_idle_call+0x6d/0xb0 [ 64.547514][ C1] cpuidle_idle_call+0x1f4/0x280 [ 64.547643][ C1] do_idle+0xf9/0x160 [ 64.547831][ C1] cpu_startup_entry+0x54/0x60 [ 64.547968][ C1] start_secondary+0x21c/0x2b0 [ 64.548096][ C1] common_startup_64+0x12c/0x138 [ 64.548255][ C1] [ 64.548320][ C1] [ 64.548320][ C1] stack backtrace: [ 64.548572][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 64.548804][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 64.549177][ C1] Call Trace: [ 64.549298][ C1] [ 64.549367][ C1] dump_stack_lvl+0x82/0xd0 [ 64.549529][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 64.549695][ C1] ? kernel_text_address+0x17/0xe0 [ 64.549900][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 64.550058][ C1] ? __pfx_usage_skip+0x10/0x10 [ 64.550214][ C1] ? __pfx_usage_match+0x10/0x10 [ 64.550342][ C1] ? arch_stack_walk+0x8c/0xf0 [ 64.550546][ C1] mark_lock_irq+0x4cd/0xa10 [ 64.550675][ C1] ? common_startup_64+0x12c/0x138 [ 64.550805][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 64.550938][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 64.551155][ C1] ? save_trace+0x8f/0x5b0 [ 64.551296][ C1] mark_lock+0x28d/0x3e0 [ 64.551392][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 64.551538][ C1] mark_usage+0xd9/0x2a0 [ 64.551637][ C1] __lock_acquire+0x797/0x1570 [ 64.551850][ C1] ? __pfx_validate_chain+0x10/0x10 [ 64.551982][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 64.552111][ C1] lock_acquire.part.0+0xeb/0x330 [ 64.552239][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 64.552367][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 64.552495][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 64.552623][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 64.552754][ C1] ? lock_acquire+0x32/0xc0 [ 64.552958][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 64.553089][ C1] _raw_write_lock+0x30/0x40 [ 64.553217][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 64.553345][ C1] addrconf_rs_timer+0xa9/0x730 [ 64.553544][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 64.553672][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 64.553799][ C1] ? call_timer_fn+0xe8/0x230 [ 64.553927][ C1] ? lock_acquire+0x32/0xc0 [ 64.554053][ C1] ? call_timer_fn+0xe8/0x230 [ 64.554326][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 64.554454][ C1] call_timer_fn+0x13b/0x230 [ 64.554583][ C1] ? call_timer_fn+0xe8/0x230 [ 64.554710][ C1] ? call_timer_fn+0xe8/0x230 [ 64.554909][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 64.555037][ C1] ? mark_lock+0x38/0x3e0 [ 64.555138][ C1] __run_timers+0x545/0x810 [ 64.555266][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 64.555465][ C1] ? __pfx___run_timers+0x10/0x10 [ 64.555597][ C1] ? do_raw_spin_lock+0x131/0x270 [ 64.555727][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 64.555854][ C1] ? lock_acquire+0x32/0xc0 [ 64.555981][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 64.556182][ C1] run_timer_softirq+0xe8/0x1b0 [ 64.556310][ C1] __do_softirq+0x1f8/0x5df [ 64.556449][ C1] irq_exit_rcu+0x97/0xc0 [ 64.556562][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 64.556811][ C1] [ 64.556898][ C1] [ 64.556963][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 64.557139][ C1] RIP: 0010:default_idle+0xf/0x20 [ 64.557272][ C1] 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 d3 eb 32 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 64.557853][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 64.558025][ C1] RAX: 0000000000117aab RBX: 1ffff92000029fc1 RCX: ffffffffab132ea5 [ 64.558309][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa88ac1d4 [ 64.558510][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c1709c [ 64.558798][ C1] R10: ffff8880360b84e3 R11: ffff8880360ad9b0 R12: 0000000000000000 [ 64.559003][ C1] R13: ffff888001b8a300 R14: dffffc0000000000 R15: 0000000000000000 [ 64.559232][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 64.559369][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 64.559587][ C1] default_idle_call+0x6d/0xb0 [ 64.559766][ C1] cpuidle_idle_call+0x1f4/0x280 [ 64.559896][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 64.560041][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 64.560261][ C1] do_idle+0xf9/0x160 [ 64.560360][ C1] cpu_startup_entry+0x54/0x60 [ 64.560515][ C1] start_secondary+0x21c/0x2b0 [ 64.560651][ C1] ? __pfx_start_secondary+0x10/0x10 [ 64.560855][ C1] common_startup_64+0x12c/0x138 [ 64.560986][ C1]