[ 104.553473][ C2] [ 104.553738][ C2] ======================================================== [ 104.554348][ C2] WARNING: possible irq lock inversion dependency detected [ 104.554681][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 104.554820][ C2] -------------------------------------------------------- [ 104.555032][ C2] swapper/2/0 just changed the state of lock: [ 104.555200][ C2] ffff88800431bd80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 104.555451][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 104.555660][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 104.555664][ C2] [ 104.555664][ C2] [ 104.555664][ C2] and interrupts could create inverse lock ordering between them. [ 104.555664][ C2] [ 104.556172][ C2] [ 104.556172][ C2] other info that might help us debug this: [ 104.556374][ C2] Possible interrupt unsafe locking scenario: [ 104.556374][ C2] [ 104.556569][ C2] CPU0 CPU1 [ 104.556703][ C2] ---- ---- [ 104.556834][ C2] lock(&p->alloc_lock); [ 104.556937][ C2] local_irq_disable(); [ 104.557105][ C2] lock(&ndev->lock); [ 104.557273][ C2] lock(&p->alloc_lock); [ 104.557440][ C2] [ 104.557541][ C2] lock(&ndev->lock); [ 104.557642][ C2] [ 104.557642][ C2] *** DEADLOCK *** [ 104.557642][ C2] [ 104.557840][ C2] 1 lock held by swapper/2/0: [ 104.557975][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 104.558219][ C2] [ 104.558219][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 104.558451][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 104.558589][ C2] HARDIRQ-ON-W at: [ 104.558693][ C2] __lock_acquire+0x797/0x1570 [ 104.558869][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.559044][ C2] _raw_spin_lock+0x30/0x40 [ 104.559217][ C2] set_mems_allowed+0x1d/0x210 [ 104.559388][ C2] kernel_init_freeable+0x72/0x310 [ 104.559560][ C2] kernel_init+0x20/0x200 [ 104.559732][ C2] ret_from_fork+0x31/0x70 [ 104.559905][ C2] ret_from_fork_asm+0x1a/0x30 [ 104.560077][ C2] SOFTIRQ-ON-W at: [ 104.560180][ C2] __lock_acquire+0x797/0x1570 [ 104.560349][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.560517][ C2] _raw_spin_lock+0x30/0x40 [ 104.560685][ C2] set_mems_allowed+0x1d/0x210 [ 104.560856][ C2] kernel_init_freeable+0x72/0x310 [ 104.561025][ C2] kernel_init+0x20/0x200 [ 104.561194][ C2] ret_from_fork+0x31/0x70 [ 104.561364][ C2] ret_from_fork_asm+0x1a/0x30 [ 104.561532][ C2] INITIAL USE at: [ 104.561631][ C2] __lock_acquire+0x797/0x1570 [ 104.561800][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.561969][ C2] _raw_spin_lock+0x30/0x40 [ 104.562141][ C2] set_mems_allowed+0x1d/0x210 [ 104.562310][ C2] kernel_init_freeable+0x72/0x310 [ 104.562479][ C2] kernel_init+0x20/0x200 [ 104.562647][ C2] ret_from_fork+0x31/0x70 [ 104.562815][ C2] ret_from_fork_asm+0x1a/0x30 [ 104.562982][ C2] } [ 104.563059][ C2] ... key at: [] __key.388+0x0/0x40 [ 104.563261][ C2] ... acquired at: [ 104.563380][ C2] __lock_acquire+0xaf0/0x1570 [ 104.563519][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.563659][ C2] _raw_spin_lock+0x30/0x40 [ 104.563797][ C2] __get_task_comm+0x27/0x70 [ 104.563939][ C2] ref_tracker_alloc+0x2ee/0x490 [ 104.564078][ C2] netdev_get_by_index+0x5e/0x80 [ 104.564221][ C2] fib6_nh_init+0x3d8/0x1580 [ 104.564362][ C2] ip6_route_info_create+0xf18/0x17d0 [ 104.564509][ C2] addrconf_f6i_alloc+0x265/0x560 [ 104.564642][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 104.564776][ C2] addrconf_join_anycast+0x1c0/0x220 [ 104.564934][ C2] dev_forward_change+0x2a6/0x7b0 [ 104.565071][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 104.565245][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 104.565384][ C2] proc_sys_call_handler+0x403/0x5e0 [ 104.565520][ C2] vfs_write+0x9e5/0x10a0 [ 104.565659][ C2] ksys_write+0xf5/0x1e0 [ 104.565795][ C2] do_syscall_64+0xc6/0x1e0 [ 104.565933][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 104.566115][ C2] [ 104.566183][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 104.566321][ C2] HARDIRQ-ON-W at: [ 104.566425][ C2] __lock_acquire+0x797/0x1570 [ 104.566593][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.566761][ C2] _raw_write_lock_bh+0x38/0x50 [ 104.566931][ C2] addrconf_permanent_addr+0x6e/0x670 [ 104.567099][ C2] addrconf_notify+0x749/0xd60 [ 104.567267][ C2] notifier_call_chain+0xcd/0x150 [ 104.567440][ C2] __dev_notify_flags+0xe6/0x250 [ 104.567612][ C2] dev_change_flags+0xec/0x160 [ 104.567779][ C2] do_setlink+0x7d6/0x21e0 [ 104.567950][ C2] __rtnl_newlink+0xaa7/0xd80 [ 104.568122][ C2] rtnl_newlink+0x63/0xa0 [ 104.568293][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 104.568462][ C2] netlink_rcv_skb+0x130/0x360 [ 104.568639][ C2] netlink_unicast+0x449/0x710 [ 104.568810][ C2] netlink_sendmsg+0x723/0xbe0 [ 104.569010][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 104.569184][ C2] ___sys_sendmsg+0xee/0x170 [ 104.569359][ C2] __sys_sendmsg+0xcd/0x170 [ 104.569533][ C2] do_syscall_64+0xc6/0x1e0 [ 104.569711][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 104.569922][ C2] HARDIRQ-ON-R at: [ 104.570026][ C2] __lock_acquire+0x797/0x1570 [ 104.570201][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.570375][ C2] _raw_read_lock_bh+0x44/0x80 [ 104.570550][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 104.570721][ C2] inet6_fill_link_af+0x5e/0xe0 [ 104.570898][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 104.571071][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 104.571253][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 104.571455][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 104.571624][ C2] register_netdevice+0x1177/0x1690 [ 104.571793][ C2] register_netdev+0x20/0x40 [ 104.571989][ C2] vti6_init_net+0x25d/0x380 [ 104.572162][ C2] ops_init+0x9b/0x560 [ 104.572299][ C2] register_pernet_operations+0x2db/0x710 [ 104.572499][ C2] register_pernet_device+0x2a/0x60 [ 104.572670][ C2] vti6_tunnel_init+0x18/0x110 [ 104.572840][ C2] do_one_initcall+0x8d/0x1e0 [ 104.573012][ C2] do_initcalls+0x1b2/0x3e0 [ 104.573182][ C2] kernel_init_freeable+0x232/0x310 [ 104.573357][ C2] kernel_init+0x20/0x200 [ 104.573525][ C2] ret_from_fork+0x31/0x70 [ 104.573697][ C2] ret_from_fork_asm+0x1a/0x30 [ 104.573874][ C2] IN-SOFTIRQ-W at: [ 104.573975][ C2] __lock_acquire+0x797/0x1570 [ 104.574148][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.574320][ C2] _raw_write_lock+0x30/0x40 [ 104.574487][ C2] addrconf_rs_timer+0xa9/0x730 [ 104.574656][ C2] call_timer_fn+0x13b/0x230 [ 104.574824][ C2] __run_timers+0x545/0x810 [ 104.575018][ C2] timer_expire_remote+0x9b/0xe0 [ 104.575192][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 104.575372][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 104.575547][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 104.575720][ C2] __do_softirq+0x1f8/0x5df [ 104.575893][ C2] irq_exit_rcu+0x97/0xc0 [ 104.576068][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 104.576284][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 104.576491][ C2] default_idle+0xf/0x20 [ 104.576662][ C2] default_idle_call+0x6d/0xb0 [ 104.576829][ C2] cpuidle_idle_call+0x1f4/0x280 [ 104.577000][ C2] do_idle+0xf9/0x160 [ 104.577136][ C2] cpu_startup_entry+0x54/0x60 [ 104.577307][ C2] start_secondary+0x21c/0x2b0 [ 104.577480][ C2] common_startup_64+0x12c/0x138 [ 104.577648][ C2] INITIAL USE at: [ 104.577750][ C2] __lock_acquire+0x797/0x1570 [ 104.577921][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.578089][ C2] _raw_write_lock_bh+0x38/0x50 [ 104.578257][ C2] addrconf_permanent_addr+0x6e/0x670 [ 104.578429][ C2] addrconf_notify+0x749/0xd60 [ 104.578603][ C2] notifier_call_chain+0xcd/0x150 [ 104.578770][ C2] __dev_notify_flags+0xe6/0x250 [ 104.578938][ C2] dev_change_flags+0xec/0x160 [ 104.579105][ C2] do_setlink+0x7d6/0x21e0 [ 104.579273][ C2] __rtnl_newlink+0xaa7/0xd80 [ 104.579441][ C2] rtnl_newlink+0x63/0xa0 [ 104.579614][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 104.579782][ C2] netlink_rcv_skb+0x130/0x360 [ 104.579953][ C2] netlink_unicast+0x449/0x710 [ 104.580123][ C2] netlink_sendmsg+0x723/0xbe0 [ 104.580373][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 104.580541][ C2] ___sys_sendmsg+0xee/0x170 [ 104.580710][ C2] __sys_sendmsg+0xcd/0x170 [ 104.580964][ C2] do_syscall_64+0xc6/0x1e0 [ 104.581134][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 104.581355][ C2] INITIAL READ USE at: [ 104.581457][ C2] __lock_acquire+0x797/0x1570 [ 104.581710][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.581883][ C2] _raw_read_lock_bh+0x44/0x80 [ 104.582062][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 104.582351][ C2] inet6_fill_link_af+0x5e/0xe0 [ 104.582533][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 104.582700][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 104.582976][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 104.583174][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 104.583344][ C2] register_netdevice+0x1177/0x1690 [ 104.583625][ C2] register_netdev+0x20/0x40 [ 104.583792][ C2] vti6_init_net+0x25d/0x380 [ 104.583961][ C2] ops_init+0x9b/0x560 [ 104.584291][ C2] register_pernet_operations+0x2db/0x710 [ 104.584493][ C2] register_pernet_device+0x2a/0x60 [ 104.584698][ C2] vti6_tunnel_init+0x18/0x110 [ 104.584877][ C2] do_one_initcall+0x8d/0x1e0 [ 104.585068][ C2] do_initcalls+0x1b2/0x3e0 [ 104.585240][ C2] kernel_init_freeable+0x232/0x310 [ 104.585448][ C2] kernel_init+0x20/0x200 [ 104.585702][ C2] ret_from_fork+0x31/0x70 [ 104.585882][ C2] ret_from_fork_asm+0x1a/0x30 [ 104.586055][ C2] } [ 104.586135][ C2] ... key at: [] __key.37+0x0/0x40 [ 104.586417][ C2] ... acquired at: [ 104.586515][ C2] mark_lock+0x28d/0x3e0 [ 104.586649][ C2] mark_usage+0xd9/0x2a0 [ 104.586784][ C2] __lock_acquire+0x797/0x1570 [ 104.586993][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.587132][ C2] _raw_write_lock+0x30/0x40 [ 104.587266][ C2] addrconf_rs_timer+0xa9/0x730 [ 104.587400][ C2] call_timer_fn+0x13b/0x230 [ 104.587611][ C2] __run_timers+0x545/0x810 [ 104.587745][ C2] timer_expire_remote+0x9b/0xe0 [ 104.587879][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 104.588014][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 104.588223][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 104.588368][ C2] __do_softirq+0x1f8/0x5df [ 104.588501][ C2] irq_exit_rcu+0x97/0xc0 [ 104.588633][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 104.588874][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 104.589039][ C2] default_idle+0xf/0x20 [ 104.589171][ C2] default_idle_call+0x6d/0xb0 [ 104.589305][ C2] cpuidle_idle_call+0x1f4/0x280 [ 104.589516][ C2] do_idle+0xf9/0x160 [ 104.589624][ C2] cpu_startup_entry+0x54/0x60 [ 104.589758][ C2] start_secondary+0x21c/0x2b0 [ 104.589893][ C2] common_startup_64+0x12c/0x138 [ 104.590027][ C2] [ 104.590168][ C2] [ 104.590168][ C2] stack backtrace: [ 104.590333][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 104.590531][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 104.590910][ C2] Call Trace: [ 104.591015][ C2] [ 104.591085][ C2] dump_stack_lvl+0x82/0xd0 [ 104.591223][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 104.591474][ C2] ? kernel_text_address+0x17/0xe0 [ 104.591612][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 104.591777][ C2] ? __pfx_usage_skip+0x10/0x10 [ 104.591911][ C2] ? __pfx_usage_match+0x10/0x10 [ 104.592130][ C2] ? arch_stack_walk+0x8c/0xf0 [ 104.592267][ C2] mark_lock_irq+0x4cd/0xa10 [ 104.592402][ C2] ? common_startup_64+0x12c/0x138 [ 104.592536][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 104.592756][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 104.592893][ C2] ? save_trace+0x8f/0x5b0 [ 104.593027][ C2] mark_lock+0x28d/0x3e0 [ 104.593127][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 104.593265][ C2] mark_usage+0xd9/0x2a0 [ 104.593443][ C2] __lock_acquire+0x797/0x1570 [ 104.593578][ C2] ? __pfx_validate_chain+0x10/0x10 [ 104.593712][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 104.593844][ C2] lock_acquire.part.0+0xeb/0x330 [ 104.594054][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 104.594189][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 104.594323][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 104.594463][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 104.594595][ C2] ? lock_acquire+0x32/0xc0 [ 104.594883][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 104.595022][ C2] _raw_write_lock+0x30/0x40 [ 104.595155][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 104.595288][ C2] addrconf_rs_timer+0xa9/0x730 [ 104.595497][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 104.595632][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 104.595769][ C2] ? call_timer_fn+0xe8/0x230 [ 104.595902][ C2] ? lock_acquire+0x32/0xc0 [ 104.596114][ C2] ? call_timer_fn+0xe8/0x230 [ 104.596248][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 104.596382][ C2] call_timer_fn+0x13b/0x230 [ 104.596516][ C2] ? call_timer_fn+0xe8/0x230 [ 104.596728][ C2] ? call_timer_fn+0xe8/0x230 [ 104.596863][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 104.596995][ C2] ? mark_lock+0x38/0x3e0 [ 104.597106][ C2] __run_timers+0x545/0x810 [ 104.597241][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 104.597454][ C2] ? __pfx___run_timers+0x10/0x10 [ 104.597587][ C2] ? __lock_release+0x103/0x460 [ 104.597722][ C2] ? do_raw_spin_lock+0x131/0x270 [ 104.597854][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 104.598063][ C2] ? lock_acquire+0x32/0xc0 [ 104.598197][ C2] ? timer_expire_remote+0x93/0xe0 [ 104.598337][ C2] timer_expire_remote+0x9b/0xe0 [ 104.598470][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 104.598680][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 104.598851][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 104.598985][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 104.599117][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 104.599371][ C2] ? _raw_spin_unlock_irq+0x28/0x50 [ 104.599508][ C2] ? _raw_spin_unlock_irq+0x30/0x50 [ 104.599651][ C2] __do_softirq+0x1f8/0x5df [ 104.599790][ C2] irq_exit_rcu+0x97/0xc0 [ 104.599892][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 104.600034][ C2] [ 104.600108][ C2] [ 104.600178][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 104.600350][ C2] RIP: 0010:default_idle+0xf/0x20 [ 104.600496][ 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 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 [ 104.601086][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 104.601356][ C2] RAX: 000000000040e1a3 RBX: 1ffff9200002bfc1 RCX: ffffffff8d732ea5 [ 104.601562][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8aeac1d4 [ 104.601767][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 104.601980][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 104.602184][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 104.602392][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 104.602617][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 104.602757][ C2] default_idle_call+0x6d/0xb0 [ 104.602894][ C2] cpuidle_idle_call+0x1f4/0x280 [ 104.603036][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 104.603172][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 104.603402][ C2] do_idle+0xf9/0x160 [ 104.603507][ C2] cpu_startup_entry+0x54/0x60 [ 104.603644][ C2] start_secondary+0x21c/0x2b0 [ 104.603780][ C2] ? __pfx_start_secondary+0x10/0x10 [ 104.603922][ C2] common_startup_64+0x12c/0x138 [ 104.604062][ C2]