[ 39.617988][ C2] [ 39.618116][ C2] ======================================================== [ 39.618327][ C2] WARNING: possible irq lock inversion dependency detected [ 39.618539][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 39.618684][ C2] -------------------------------------------------------- [ 39.618902][ C2] swapper/2/0 just changed the state of lock: [ 39.619081][ C2] ffff888005545580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 39.619343][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 39.619555][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 39.619559][ C2] [ 39.619559][ C2] [ 39.619559][ C2] and interrupts could create inverse lock ordering between them. [ 39.619559][ C2] [ 39.620094][ C2] [ 39.620094][ C2] other info that might help us debug this: [ 39.620310][ C2] Possible interrupt unsafe locking scenario: [ 39.620310][ C2] [ 39.620523][ C2] CPU0 CPU1 [ 39.620674][ C2] ---- ---- [ 39.620819][ C2] lock(&p->alloc_lock); [ 39.620931][ C2] local_irq_disable(); [ 39.621109][ C2] lock(&ndev->lock); [ 39.621291][ C2] lock(&p->alloc_lock); [ 39.621468][ C2] [ 39.621579][ C2] lock(&ndev->lock); [ 39.621696][ C2] [ 39.621696][ C2] *** DEADLOCK *** [ 39.621696][ C2] [ 39.621919][ C2] 1 lock held by swapper/2/0: [ 39.622063][ C2] #0: ffffc90000230d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 39.622329][ C2] [ 39.622329][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 39.622582][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 39.622737][ C2] HARDIRQ-ON-W at: [ 39.622849][ C2] __lock_acquire+0x797/0x1570 [ 39.623037][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.623220][ C2] _raw_spin_lock+0x30/0x40 [ 39.623406][ C2] set_mems_allowed+0x1d/0x210 [ 39.623592][ C2] kernel_init_freeable+0x72/0x310 [ 39.623780][ C2] kernel_init+0x20/0x200 [ 39.623968][ C2] ret_from_fork+0x31/0x70 [ 39.624152][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.624333][ C2] SOFTIRQ-ON-W at: [ 39.624443][ C2] __lock_acquire+0x797/0x1570 [ 39.624650][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.624823][ C2] _raw_spin_lock+0x30/0x40 [ 39.624990][ C2] set_mems_allowed+0x1d/0x210 [ 39.625158][ C2] kernel_init_freeable+0x72/0x310 [ 39.625324][ C2] kernel_init+0x20/0x200 [ 39.625490][ C2] ret_from_fork+0x31/0x70 [ 39.625661][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.625849][ C2] INITIAL USE at: [ 39.625948][ C2] __lock_acquire+0x797/0x1570 [ 39.626122][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.626289][ C2] _raw_spin_lock+0x30/0x40 [ 39.626459][ C2] set_mems_allowed+0x1d/0x210 [ 39.626629][ C2] kernel_init_freeable+0x72/0x310 [ 39.626802][ C2] kernel_init+0x20/0x200 [ 39.626973][ C2] ret_from_fork+0x31/0x70 [ 39.627146][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.627315][ C2] } [ 39.627385][ C2] ... key at: [] __key.387+0x0/0x40 [ 39.627590][ C2] ... acquired at: [ 39.627700][ C2] __lock_acquire+0xaf0/0x1570 [ 39.627844][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.627981][ C2] _raw_spin_lock+0x30/0x40 [ 39.628118][ C2] __get_task_comm+0x27/0x70 [ 39.628258][ C2] ref_tracker_alloc+0x2ee/0x490 [ 39.628396][ C2] netdev_get_by_index+0x5e/0x80 [ 39.628529][ C2] fib6_nh_init+0x3d8/0x15b0 [ 39.628752][ C2] ip6_route_info_create+0xf18/0x17d0 [ 39.628883][ C2] addrconf_f6i_alloc+0x265/0x560 [ 39.629015][ C2] __ipv6_dev_ac_inc+0x25f/0xb10 [ 39.629148][ C2] addrconf_join_anycast+0x1c0/0x220 [ 39.629364][ C2] dev_forward_change+0x2a6/0x7b0 [ 39.629499][ C2] addrconf_fixup_forwarding+0x23f/0x460 [ 39.629675][ C2] addrconf_sysctl_forward+0x212/0x2b0 [ 39.629820][ C2] proc_sys_call_handler+0x403/0x5e0 [ 39.630040][ C2] vfs_write+0x9e5/0x10a0 [ 39.630174][ C2] ksys_write+0xf5/0x1e0 [ 39.630310][ C2] do_syscall_64+0xc6/0x1e0 [ 39.630447][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 39.630622][ C2] [ 39.630689][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 39.630831][ C2] HARDIRQ-ON-W at: [ 39.630930][ C2] __lock_acquire+0x797/0x1570 [ 39.631107][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.631274][ C2] _raw_write_lock_bh+0x38/0x50 [ 39.631442][ C2] addrconf_permanent_addr+0x6e/0x670 [ 39.631619][ C2] addrconf_notify+0x749/0xd60 [ 39.631871][ C2] notifier_call_chain+0xcd/0x150 [ 39.632036][ C2] __dev_notify_flags+0xe6/0x250 [ 39.632207][ C2] dev_change_flags+0xec/0x160 [ 39.632372][ C2] do_setlink+0x7d6/0x21e0 [ 39.632696][ C2] __rtnl_newlink+0xaa7/0xd80 [ 39.632867][ C2] rtnl_newlink+0x63/0xa0 [ 39.633033][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 39.633275][ C2] netlink_rcv_skb+0x130/0x360 [ 39.633442][ C2] netlink_unicast+0x449/0x710 [ 39.633607][ C2] netlink_sendmsg+0x723/0xbe0 [ 39.633859][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 39.634028][ C2] ___sys_sendmsg+0xee/0x170 [ 39.634205][ C2] __sys_sendmsg+0xcd/0x170 [ 39.634382][ C2] do_syscall_64+0xc6/0x1e0 [ 39.634636][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 39.634851][ C2] HARDIRQ-ON-R at: [ 39.634959][ C2] __lock_acquire+0x797/0x1570 [ 39.635214][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.635397][ C2] _raw_read_lock_bh+0x44/0x80 [ 39.635585][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 39.635774][ C2] inet6_fill_link_af+0x5e/0xe0 [ 39.636030][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 39.636197][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 39.636362][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 39.636561][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 39.636732][ C2] register_netdevice+0x1177/0x1690 [ 39.636897][ C2] register_netdev+0x20/0x40 [ 39.637060][ C2] sit_init_net+0x250/0x4f0 [ 39.637228][ C2] ops_init+0x9b/0x560 [ 39.637361][ C2] register_pernet_operations+0x2db/0x710 [ 39.637558][ C2] register_pernet_device+0x2a/0x60 [ 39.637820][ C2] sit_init+0x23/0xe0 [ 39.637954][ C2] do_one_initcall+0x8d/0x1e0 [ 39.638123][ C2] do_initcalls+0x1b2/0x3e0 [ 39.638366][ C2] kernel_init_freeable+0x232/0x310 [ 39.638528][ C2] kernel_init+0x20/0x200 [ 39.638703][ C2] ret_from_fork+0x31/0x70 [ 39.638867][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.639116][ C2] IN-SOFTIRQ-W at: [ 39.639216][ C2] __lock_acquire+0x797/0x1570 [ 39.639381][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.639546][ C2] _raw_write_lock+0x30/0x40 [ 39.639711][ C2] addrconf_rs_timer+0xa9/0x730 [ 39.639875][ C2] call_timer_fn+0x13b/0x230 [ 39.640048][ C2] __run_timers+0x545/0x810 [ 39.640290][ C2] run_timer_softirq+0xe8/0x1b0 [ 39.640454][ C2] __do_softirq+0x1f8/0x5df [ 39.640624][ C2] irq_exit_rcu+0x97/0xc0 [ 39.640876][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 39.641074][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.641268][ C2] default_idle+0xf/0x20 [ 39.641515][ C2] default_idle_call+0x6d/0xb0 [ 39.641681][ C2] cpuidle_idle_call+0x1f4/0x280 [ 39.641862][ C2] do_idle+0xf9/0x160 [ 39.641995][ C2] cpu_startup_entry+0x54/0x60 [ 39.642238][ C2] start_secondary+0x21c/0x2b0 [ 39.642411][ C2] common_startup_64+0x12c/0x138 [ 39.642588][ C2] INITIAL USE at: [ 39.642690][ C2] __lock_acquire+0x797/0x1570 [ 39.643012][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.643177][ C2] _raw_write_lock_bh+0x38/0x50 [ 39.643347][ C2] addrconf_permanent_addr+0x6e/0x670 [ 39.643512][ C2] addrconf_notify+0x749/0xd60 [ 39.643682][ C2] notifier_call_chain+0xcd/0x150 [ 39.643852][ C2] __dev_notify_flags+0xe6/0x250 [ 39.644017][ C2] dev_change_flags+0xec/0x160 [ 39.644261][ C2] do_setlink+0x7d6/0x21e0 [ 39.644430][ C2] __rtnl_newlink+0xaa7/0xd80 [ 39.644600][ C2] rtnl_newlink+0x63/0xa0 [ 39.644847][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 39.645029][ C2] netlink_rcv_skb+0x130/0x360 [ 39.645196][ C2] netlink_unicast+0x449/0x710 [ 39.645439][ C2] netlink_sendmsg+0x723/0xbe0 [ 39.645604][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 39.645808][ C2] ___sys_sendmsg+0xee/0x170 [ 39.645981][ C2] __sys_sendmsg+0xcd/0x170 [ 39.646225][ C2] do_syscall_64+0xc6/0x1e0 [ 39.646392][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 39.646595][ C2] INITIAL READ USE at: [ 39.646778][ C2] __lock_acquire+0x797/0x1570 [ 39.646942][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.647106][ C2] _raw_read_lock_bh+0x44/0x80 [ 39.647271][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 39.647555][ C2] inet6_fill_link_af+0x5e/0xe0 [ 39.647724][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 39.647889][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 39.648172][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 39.648367][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 39.648530][ C2] register_netdevice+0x1177/0x1690 [ 39.648810][ C2] register_netdev+0x20/0x40 [ 39.648977][ C2] sit_init_net+0x250/0x4f0 [ 39.649142][ C2] ops_init+0x9b/0x560 [ 39.649381][ C2] register_pernet_operations+0x2db/0x710 [ 39.649577][ C2] register_pernet_device+0x2a/0x60 [ 39.649772][ C2] sit_init+0x23/0xe0 [ 39.650028][ C2] do_one_initcall+0x8d/0x1e0 [ 39.650196][ C2] do_initcalls+0x1b2/0x3e0 [ 39.650363][ C2] kernel_init_freeable+0x232/0x310 [ 39.650563][ C2] kernel_init+0x20/0x200 [ 39.650728][ C2] ret_from_fork+0x31/0x70 [ 39.650894][ C2] ret_from_fork_asm+0x1a/0x30 [ 39.651072][ C2] } [ 39.651139][ C2] ... key at: [] __key.37+0x0/0x40 [ 39.651335][ C2] ... acquired at: [ 39.651434][ C2] mark_lock+0x28d/0x3e0 [ 39.651569][ C2] mark_usage+0xd9/0x2a0 [ 39.651772][ C2] __lock_acquire+0x797/0x1570 [ 39.651904][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.652037][ C2] _raw_write_lock+0x30/0x40 [ 39.652170][ C2] addrconf_rs_timer+0xa9/0x730 [ 39.652302][ C2] call_timer_fn+0x13b/0x230 [ 39.652512][ C2] __run_timers+0x545/0x810 [ 39.652644][ C2] run_timer_softirq+0xe8/0x1b0 [ 39.652778][ C2] __do_softirq+0x1f8/0x5df [ 39.652909][ C2] irq_exit_rcu+0x97/0xc0 [ 39.653188][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 39.653351][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.653512][ C2] default_idle+0xf/0x20 [ 39.653651][ C2] default_idle_call+0x6d/0xb0 [ 39.653855][ C2] cpuidle_idle_call+0x1f4/0x280 [ 39.653987][ C2] do_idle+0xf9/0x160 [ 39.654084][ C2] cpu_startup_entry+0x54/0x60 [ 39.654218][ C2] start_secondary+0x21c/0x2b0 [ 39.654425][ C2] common_startup_64+0x12c/0x138 [ 39.654561][ C2] [ 39.654627][ C2] [ 39.654627][ C2] stack backtrace: [ 39.654790][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 39.655076][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 39.655364][ C2] Call Trace: [ 39.655469][ C2] [ 39.655541][ C2] dump_stack_lvl+0x82/0xd0 [ 39.655774][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 39.655945][ C2] ? kernel_text_address+0x17/0xe0 [ 39.656086][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 39.656250][ C2] ? __pfx_usage_skip+0x10/0x10 [ 39.656458][ C2] ? __pfx_usage_match+0x10/0x10 [ 39.656595][ C2] ? arch_stack_walk+0x8c/0xf0 [ 39.656728][ C2] mark_lock_irq+0x4cd/0xa10 [ 39.656857][ C2] ? common_startup_64+0x12c/0x138 [ 39.657076][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 39.657211][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 39.657350][ C2] ? save_trace+0x8f/0x5b0 [ 39.657484][ C2] mark_lock+0x28d/0x3e0 [ 39.657585][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 39.657715][ C2] mark_usage+0xd9/0x2a0 [ 39.657815][ C2] __lock_acquire+0x797/0x1570 [ 39.657949][ C2] ? __pfx_validate_chain+0x10/0x10 [ 39.658079][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.658207][ C2] lock_acquire.part.0+0xeb/0x330 [ 39.658338][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.658467][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 39.658602][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 39.658807][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.658938][ C2] ? lock_acquire+0x32/0xc0 [ 39.659068][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.659199][ C2] _raw_write_lock+0x30/0x40 [ 39.659403][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 39.659531][ C2] addrconf_rs_timer+0xa9/0x730 [ 39.659666][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 39.659797][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.659929][ C2] ? call_timer_fn+0xe8/0x230 [ 39.660132][ C2] ? lock_acquire+0x32/0xc0 [ 39.660263][ C2] ? call_timer_fn+0xe8/0x230 [ 39.660392][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.660521][ C2] call_timer_fn+0x13b/0x230 [ 39.660728][ C2] ? call_timer_fn+0xe8/0x230 [ 39.660865][ C2] ? call_timer_fn+0xe8/0x230 [ 39.660998][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 39.661126][ C2] ? mark_lock+0x38/0x3e0 [ 39.661303][ C2] __run_timers+0x545/0x810 [ 39.661435][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 39.661569][ C2] ? __pfx___run_timers+0x10/0x10 [ 39.661706][ C2] ? do_raw_spin_lock+0x131/0x270 [ 39.661837][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 39.662050][ C2] ? lock_acquire+0x32/0xc0 [ 39.662190][ C2] ? run_timer_softirq+0xe0/0x1b0 [ 39.662323][ C2] run_timer_softirq+0xe8/0x1b0 [ 39.662454][ C2] __do_softirq+0x1f8/0x5df [ 39.662594][ C2] irq_exit_rcu+0x97/0xc0 [ 39.662696][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 39.662833][ C2] [ 39.662901][ C2] [ 39.662967][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 39.663205][ C2] RIP: 0010:default_idle+0xf/0x20 [ 39.663343][ 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 [ 39.663892][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000242 [ 39.664059][ C2] RAX: 000000000011b9a1 RBX: 1ffff9200002bfc1 RCX: ffffffff98f0e9d5 [ 39.664268][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff968aa4a4 [ 39.664559][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 39.664760][ C2] R10: ffff8880361384e3 R11: 1ffff110003a928c R12: 0000000000000000 [ 39.664962][ C2] R13: ffff888001b7c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 39.665239][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 39.665369][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 39.665509][ C2] default_idle_call+0x6d/0xb0 [ 39.665643][ C2] cpuidle_idle_call+0x1f4/0x280 [ 39.665861][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 39.665996][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 39.666130][ C2] do_idle+0xf9/0x160 [ 39.666228][ C2] cpu_startup_entry+0x54/0x60 [ 39.666434][ C2] start_secondary+0x21c/0x2b0 [ 39.666564][ C2] ? __pfx_start_secondary+0x10/0x10 [ 39.666698][ C2] common_startup_64+0x12c/0x138 [ 39.666839][ C2] WAIT TIMEOUT stderr Ctrl-C stderr Ctrl-C stderr