[ 33.979219][ C3] [ 33.979398][ C3] ======================================================== [ 33.979614][ C3] WARNING: possible irq lock inversion dependency detected [ 33.979818][ C3] 6.9.0-rc1-virtme #1 Not tainted [ 33.979966][ C3] -------------------------------------------------------- [ 33.980173][ C3] swapper/3/0 just changed the state of lock: [ 33.980347][ C3] ffff8880052e2580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 33.980620][ C3] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 33.980828][ C3] (&p->alloc_lock){+.+.}-{2:2} [ 33.980834][ C3] [ 33.980834][ C3] [ 33.980834][ C3] and interrupts could create inverse lock ordering between them. [ 33.980834][ C3] [ 33.981625][ C3] [ 33.981625][ C3] other info that might help us debug this: [ 33.981937][ C3] Possible interrupt unsafe locking scenario: [ 33.981937][ C3] [ 33.982263][ C3] CPU0 CPU1 [ 33.982482][ C3] ---- ---- [ 33.982701][ C3] lock(&p->alloc_lock); [ 33.982872][ C3] local_irq_disable(); [ 33.983140][ C3] lock(&ndev->lock); [ 33.983417][ C3] lock(&p->alloc_lock); [ 33.983695][ C3] [ 33.983855][ C3] lock(&ndev->lock); [ 33.984018][ C3] [ 33.984018][ C3] *** DEADLOCK *** [ 33.984018][ C3] [ 33.984341][ C3] 1 lock held by swapper/3/0: [ 33.984553][ C3] #0: ffffc90000288d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 33.984959][ C3] [ 33.984959][ C3] the shortest dependencies between 2nd lock and 1st lock: [ 33.985344][ C3] -> (&p->alloc_lock){+.+.}-{2:2} { [ 33.985568][ C3] HARDIRQ-ON-W at: [ 33.985730][ C3] __lock_acquire+0x797/0x1570 [ 33.986022][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.986303][ C3] _raw_spin_lock+0x30/0x40 [ 33.986595][ C3] set_mems_allowed+0x1d/0x210 [ 33.986881][ C3] kernel_init_freeable+0x72/0x310 [ 33.987157][ C3] kernel_init+0x20/0x200 [ 33.987436][ C3] ret_from_fork+0x31/0x70 [ 33.987725][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.987990][ C3] SOFTIRQ-ON-W at: [ 33.988155][ C3] __lock_acquire+0x797/0x1570 [ 33.988433][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.988719][ C3] _raw_spin_lock+0x30/0x40 [ 33.989008][ C3] set_mems_allowed+0x1d/0x210 [ 33.989288][ C3] kernel_init_freeable+0x72/0x310 [ 33.989568][ C3] kernel_init+0x20/0x200 [ 33.989841][ C3] ret_from_fork+0x31/0x70 [ 33.990113][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.990389][ C3] INITIAL USE at: [ 33.990549][ C3] __lock_acquire+0x797/0x1570 [ 33.990827][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.991123][ C3] _raw_spin_lock+0x30/0x40 [ 33.991398][ C3] set_mems_allowed+0x1d/0x210 [ 33.991684][ C3] kernel_init_freeable+0x72/0x310 [ 33.991970][ C3] kernel_init+0x20/0x200 [ 33.992256][ C3] ret_from_fork+0x31/0x70 [ 33.992532][ C3] ret_from_fork_asm+0x1a/0x30 [ 33.992809][ C3] } [ 33.992925][ C3] ... key at: [] __key.387+0x0/0x40 [ 33.993294][ C3] ... acquired at: [ 33.993470][ C3] __lock_acquire+0xaf0/0x1570 [ 33.993712][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.993945][ C3] _raw_spin_lock+0x30/0x40 [ 33.994176][ C3] __get_task_comm+0x27/0x70 [ 33.994409][ C3] ref_tracker_alloc+0x2ee/0x490 [ 33.994625][ C3] netdev_get_by_index+0x5e/0x80 [ 33.994849][ C3] fib6_nh_init+0x3d8/0x15b0 [ 33.995075][ C3] ip6_route_info_create+0xf18/0x17d0 [ 33.995296][ C3] addrconf_f6i_alloc+0x265/0x560 [ 33.995522][ C3] __ipv6_dev_ac_inc+0x25f/0xb10 [ 33.995753][ C3] addrconf_join_anycast+0x1c0/0x220 [ 33.995975][ C3] dev_forward_change+0x2a6/0x7b0 [ 33.996205][ C3] addrconf_fixup_forwarding+0x23f/0x460 [ 33.996489][ C3] addrconf_sysctl_forward+0x212/0x2b0 [ 33.996718][ C3] proc_sys_call_handler+0x403/0x5e0 [ 33.996935][ C3] vfs_write+0x9e5/0x10a0 [ 33.997169][ C3] ksys_write+0xf5/0x1e0 [ 33.997390][ C3] do_syscall_64+0xc6/0x1e0 [ 33.997609][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 33.997880][ C3] [ 33.997992][ C3] -> (&ndev->lock){++-.}-{2:2} { [ 33.998225][ C3] HARDIRQ-ON-W at: [ 33.998396][ C3] __lock_acquire+0x797/0x1570 [ 33.998675][ C3] lock_acquire.part.0+0xeb/0x330 [ 33.998945][ C3] _raw_write_lock_bh+0x38/0x50 [ 33.999230][ C3] addrconf_permanent_addr+0x6e/0x670 [ 33.999502][ C3] addrconf_notify+0x749/0xd60 [ 33.999773][ C3] notifier_call_chain+0xcd/0x150 [ 34.000053][ C3] __dev_notify_flags+0xe6/0x250 [ 34.000329][ C3] dev_change_flags+0xec/0x160 [ 34.000610][ C3] do_setlink+0x7d6/0x21e0 [ 34.000911][ C3] __rtnl_newlink+0xaa7/0xd80 [ 34.001102][ C3] rtnl_newlink+0x63/0xa0 [ 34.001281][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.001458][ C3] netlink_rcv_skb+0x130/0x360 [ 34.001635][ C3] netlink_unicast+0x449/0x710 [ 34.001809][ C3] netlink_sendmsg+0x723/0xbe0 [ 34.001985][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 34.002170][ C3] ___sys_sendmsg+0xee/0x170 [ 34.002346][ C3] __sys_sendmsg+0xcd/0x170 [ 34.002519][ C3] do_syscall_64+0xc6/0x1e0 [ 34.002698][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.002908][ C3] HARDIRQ-ON-R at: [ 34.003019][ C3] __lock_acquire+0x797/0x1570 [ 34.003197][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.003382][ C3] _raw_read_lock_bh+0x44/0x80 [ 34.003556][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.003738][ C3] inet6_fill_link_af+0x5e/0xe0 [ 34.003911][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.004091][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.004269][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.004479][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 34.004655][ C3] register_netdevice+0x1177/0x1690 [ 34.004827][ C3] register_netdev+0x20/0x40 [ 34.005001][ C3] sit_init_net+0x250/0x4f0 [ 34.005176][ C3] ops_init+0x9b/0x560 [ 34.005316][ C3] register_pernet_operations+0x2db/0x710 [ 34.005523][ C3] register_pernet_device+0x2a/0x60 [ 34.005693][ C3] sit_init+0x23/0xe0 [ 34.005835][ C3] do_one_initcall+0x8d/0x1e0 [ 34.006012][ C3] do_initcalls+0x1b2/0x3e0 [ 34.006199][ C3] kernel_init_freeable+0x232/0x310 [ 34.006377][ C3] kernel_init+0x20/0x200 [ 34.006556][ C3] ret_from_fork+0x31/0x70 [ 34.006734][ C3] ret_from_fork_asm+0x1a/0x30 [ 34.006907][ C3] IN-SOFTIRQ-W at: [ 34.007012][ C3] __lock_acquire+0x797/0x1570 [ 34.007183][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.007358][ C3] _raw_write_lock+0x30/0x40 [ 34.007532][ C3] addrconf_rs_timer+0xa9/0x730 [ 34.007710][ C3] call_timer_fn+0x13b/0x230 [ 34.007885][ C3] __run_timers+0x545/0x810 [ 34.008056][ C3] run_timer_softirq+0xe8/0x1b0 [ 34.008233][ C3] __do_softirq+0x1f8/0x5df [ 34.008405][ C3] irq_exit_rcu+0x97/0xc0 [ 34.008578][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.008784][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.008997][ C3] default_idle+0xf/0x20 [ 34.009172][ C3] default_idle_call+0x6d/0xb0 [ 34.009345][ C3] cpuidle_idle_call+0x1f4/0x280 [ 34.009516][ C3] do_idle+0xf9/0x160 [ 34.009654][ C3] cpu_startup_entry+0x54/0x60 [ 34.009823][ C3] start_secondary+0x21c/0x2b0 [ 34.009997][ C3] common_startup_64+0x12c/0x138 [ 34.010170][ C3] INITIAL USE at: [ 34.010272][ C3] __lock_acquire+0x797/0x1570 [ 34.010444][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.010623][ C3] _raw_write_lock_bh+0x38/0x50 [ 34.010799][ C3] addrconf_permanent_addr+0x6e/0x670 [ 34.010995][ C3] addrconf_notify+0x749/0xd60 [ 34.011175][ C3] notifier_call_chain+0xcd/0x150 [ 34.011348][ C3] __dev_notify_flags+0xe6/0x250 [ 34.011518][ C3] dev_change_flags+0xec/0x160 [ 34.011691][ C3] do_setlink+0x7d6/0x21e0 [ 34.011867][ C3] __rtnl_newlink+0xaa7/0xd80 [ 34.012043][ C3] rtnl_newlink+0x63/0xa0 [ 34.012224][ C3] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.012405][ C3] netlink_rcv_skb+0x130/0x360 [ 34.012578][ C3] netlink_unicast+0x449/0x710 [ 34.012756][ C3] netlink_sendmsg+0x723/0xbe0 [ 34.012938][ C3] ____sys_sendmsg+0x7b2/0xa10 [ 34.013116][ C3] ___sys_sendmsg+0xee/0x170 [ 34.013291][ C3] __sys_sendmsg+0xcd/0x170 [ 34.013471][ C3] do_syscall_64+0xc6/0x1e0 [ 34.013645][ C3] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.013856][ C3] INITIAL READ USE at: [ 34.013960][ C3] __lock_acquire+0x797/0x1570 [ 34.014140][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.014316][ C3] _raw_read_lock_bh+0x44/0x80 [ 34.014499][ C3] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.014719][ C3] inet6_fill_link_af+0x5e/0xe0 [ 34.014895][ C3] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.015071][ C3] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.015279][ C3] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.015488][ C3] rtmsg_ifinfo+0x5b/0xa0 [ 34.015664][ C3] register_netdevice+0x1177/0x1690 [ 34.015876][ C3] register_netdev+0x20/0x40 [ 34.016050][ C3] sit_init_net+0x250/0x4f0 [ 34.016227][ C3] ops_init+0x9b/0x560 [ 34.016400][ C3] register_pernet_operations+0x2db/0x710 [ 34.016610][ C3] register_pernet_device+0x2a/0x60 [ 34.016822][ C3] sit_init+0x23/0xe0 [ 34.016992][ C3] do_one_initcall+0x8d/0x1e0 [ 34.017169][ C3] do_initcalls+0x1b2/0x3e0 [ 34.017344][ C3] kernel_init_freeable+0x232/0x310 [ 34.017554][ C3] kernel_init+0x20/0x200 [ 34.017728][ C3] ret_from_fork+0x31/0x70 [ 34.017905][ C3] ret_from_fork_asm+0x1a/0x30 [ 34.018078][ C3] } [ 34.018148][ C3] ... key at: [] __key.37+0x0/0x40 [ 34.018357][ C3] ... acquired at: [ 34.018460][ C3] mark_lock+0x28d/0x3e0 [ 34.018601][ C3] mark_usage+0xd9/0x2a0 [ 34.018736][ C3] __lock_acquire+0x797/0x1570 [ 34.018877][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.019026][ C3] _raw_write_lock+0x30/0x40 [ 34.019165][ C3] addrconf_rs_timer+0xa9/0x730 [ 34.019308][ C3] call_timer_fn+0x13b/0x230 [ 34.019453][ C3] __run_timers+0x545/0x810 [ 34.019600][ C3] run_timer_softirq+0xe8/0x1b0 [ 34.019739][ C3] __do_softirq+0x1f8/0x5df [ 34.019882][ C3] irq_exit_rcu+0x97/0xc0 [ 34.020023][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.020198][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.020377][ C3] default_idle+0xf/0x20 [ 34.020515][ C3] default_idle_call+0x6d/0xb0 [ 34.020655][ C3] cpuidle_idle_call+0x1f4/0x280 [ 34.020798][ C3] do_idle+0xf9/0x160 [ 34.020910][ C3] cpu_startup_entry+0x54/0x60 [ 34.021054][ C3] start_secondary+0x21c/0x2b0 [ 34.021198][ C3] common_startup_64+0x12c/0x138 [ 34.021342][ C3] [ 34.021415][ C3] [ 34.021415][ C3] stack backtrace: [ 34.021593][ C3] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 6.9.0-rc1-virtme #1 [ 34.021812][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 34.022125][ C3] Call Trace: [ 34.022232][ C3] [ 34.022309][ C3] dump_stack_lvl+0x82/0xd0 [ 34.022455][ C3] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 34.022640][ C3] ? kernel_text_address+0x17/0xe0 [ 34.022786][ C3] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 34.022958][ C3] ? __pfx_usage_skip+0x10/0x10 [ 34.023096][ C3] ? __pfx_usage_match+0x10/0x10 [ 34.023237][ C3] ? arch_stack_walk+0x8c/0xf0 [ 34.023377][ C3] mark_lock_irq+0x4cd/0xa10 [ 34.023519][ C3] ? common_startup_64+0x12c/0x138 [ 34.023662][ C3] ? __pfx_mark_lock_irq+0x10/0x10 [ 34.023811][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 34.023952][ C3] ? save_trace+0x8f/0x5b0 [ 34.024093][ C3] mark_lock+0x28d/0x3e0 [ 34.024207][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 34.024351][ C3] mark_usage+0xd9/0x2a0 [ 34.024457][ C3] __lock_acquire+0x797/0x1570 [ 34.024597][ C3] ? __pfx_validate_chain+0x10/0x10 [ 34.024734][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.024876][ C3] lock_acquire.part.0+0xeb/0x330 [ 34.025018][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.025156][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.025296][ C3] ? trace_lock_acquire+0x135/0x1c0 [ 34.025437][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.025576][ C3] ? lock_acquire+0x32/0xc0 [ 34.025719][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.025862][ C3] _raw_write_lock+0x30/0x40 [ 34.026007][ C3] ? addrconf_rs_timer+0xa9/0x730 [ 34.026144][ C3] addrconf_rs_timer+0xa9/0x730 [ 34.026286][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.026425][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.026563][ C3] ? call_timer_fn+0xe8/0x230 [ 34.026703][ C3] ? lock_acquire+0x32/0xc0 [ 34.026843][ C3] ? call_timer_fn+0xe8/0x230 [ 34.026979][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.027114][ C3] call_timer_fn+0x13b/0x230 [ 34.027252][ C3] ? call_timer_fn+0xe8/0x230 [ 34.027394][ C3] ? call_timer_fn+0xe8/0x230 [ 34.027530][ C3] ? __pfx_call_timer_fn+0x10/0x10 [ 34.027670][ C3] ? mark_lock+0x38/0x3e0 [ 34.027779][ C3] __run_timers+0x545/0x810 [ 34.027916][ C3] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.028051][ C3] ? __pfx___run_timers+0x10/0x10 [ 34.028187][ C3] ? do_raw_spin_lock+0x131/0x270 [ 34.028328][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 34.028465][ C3] ? lock_acquire+0x32/0xc0 [ 34.028603][ C3] ? run_timer_softirq+0xe0/0x1b0 [ 34.028740][ C3] run_timer_softirq+0xe8/0x1b0 [ 34.028880][ C3] __do_softirq+0x1f8/0x5df [ 34.029019][ C3] irq_exit_rcu+0x97/0xc0 [ 34.029123][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.029258][ C3] [ 34.029328][ C3] [ 34.029395][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.029572][ C3] RIP: 0010:default_idle+0xf/0x20 [ 34.029717][ 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 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 [ 34.030207][ C3] RSP: 0018:ffffc9000016fdf8 EFLAGS: 00000242 [ 34.030382][ C3] RAX: 0000000000079d43 RBX: 1ffff9200002dfc1 RCX: ffffffffad50e9d5 [ 34.030589][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffaaeaa4a4 [ 34.030800][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3709c [ 34.031020][ C3] R10: ffff8880361b84e3 R11: ffff8880361ad9b0 R12: 0000000000000000 [ 34.031229][ C3] R13: ffff888001b88040 R14: dffffc0000000000 R15: 0000000000000000 [ 34.031441][ C3] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 34.031593][ C3] ? cpuidle_idle_call+0x1f4/0x280 [ 34.031737][ C3] default_idle_call+0x6d/0xb0 [ 34.031876][ C3] cpuidle_idle_call+0x1f4/0x280 [ 34.032024][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 34.032168][ C3] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 34.032306][ C3] do_idle+0xf9/0x160 [ 34.032414][ C3] cpu_startup_entry+0x54/0x60 [ 34.032551][ C3] start_secondary+0x21c/0x2b0 [ 34.032694][ C3] ? __pfx_start_secondary+0x10/0x10 [ 34.032838][ C3] common_startup_64+0x12c/0x138 [ 34.032982][ C3] [ 50.453921][ T372] Initializing XFRM netlink socket