[ 189.099411][ C1] [ 189.099601][ C1] ======================================================== [ 189.099801][ C1] WARNING: possible irq lock inversion dependency detected [ 189.100008][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 189.100149][ C1] -------------------------------------------------------- [ 189.100342][ C1] swapper/1/0 just changed the state of lock: [ 189.100546][ C1] ffff888005425580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 189.100858][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 189.101072][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 189.101076][ C1] [ 189.101076][ C1] [ 189.101076][ C1] and interrupts could create inverse lock ordering between them. [ 189.101076][ C1] [ 189.101592][ C1] [ 189.101592][ C1] other info that might help us debug this: [ 189.101787][ C1] Possible interrupt unsafe locking scenario: [ 189.101787][ C1] [ 189.101989][ C1] CPU0 CPU1 [ 189.102123][ C1] ---- ---- [ 189.102253][ C1] lock(&p->alloc_lock); [ 189.102363][ C1] local_irq_disable(); [ 189.102533][ C1] lock(&ndev->lock); [ 189.102705][ C1] lock(&p->alloc_lock); [ 189.102868][ C1] [ 189.102973][ C1] lock(&ndev->lock); [ 189.103078][ C1] [ 189.103078][ C1] *** DEADLOCK *** [ 189.103078][ C1] [ 189.103291][ C1] 1 lock held by swapper/1/0: [ 189.103434][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 189.103687][ C1] [ 189.103687][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 189.103919][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 189.104057][ C1] HARDIRQ-ON-W at: [ 189.104166][ C1] __lock_acquire+0x797/0x1570 [ 189.104360][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.104549][ C1] _raw_spin_lock+0x30/0x40 [ 189.104735][ C1] set_mems_allowed+0x1d/0x210 [ 189.104920][ C1] kernel_init_freeable+0x72/0x310 [ 189.105104][ C1] kernel_init+0x20/0x200 [ 189.105288][ C1] ret_from_fork+0x31/0x70 [ 189.105491][ C1] ret_from_fork_asm+0x1a/0x30 [ 189.105679][ C1] SOFTIRQ-ON-W at: [ 189.105787][ C1] __lock_acquire+0x797/0x1570 [ 189.105967][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.106149][ C1] _raw_spin_lock+0x30/0x40 [ 189.106332][ C1] set_mems_allowed+0x1d/0x210 [ 189.106512][ C1] kernel_init_freeable+0x72/0x310 [ 189.106680][ C1] kernel_init+0x20/0x200 [ 189.106847][ C1] ret_from_fork+0x31/0x70 [ 189.107012][ C1] ret_from_fork_asm+0x1a/0x30 [ 189.107181][ C1] INITIAL USE at: [ 189.107279][ C1] __lock_acquire+0x797/0x1570 [ 189.107455][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.107624][ C1] _raw_spin_lock+0x30/0x40 [ 189.107790][ C1] set_mems_allowed+0x1d/0x210 [ 189.107957][ C1] kernel_init_freeable+0x72/0x310 [ 189.108126][ C1] kernel_init+0x20/0x200 [ 189.108293][ C1] ret_from_fork+0x31/0x70 [ 189.108467][ C1] ret_from_fork_asm+0x1a/0x30 [ 189.108653][ C1] } [ 189.108723][ C1] ... key at: [] __key.387+0x0/0x40 [ 189.108928][ C1] ... acquired at: [ 189.109028][ C1] __lock_acquire+0xaf0/0x1570 [ 189.109169][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.109308][ C1] _raw_spin_lock+0x30/0x40 [ 189.109453][ C1] __get_task_comm+0x27/0x70 [ 189.109595][ C1] ref_tracker_alloc+0x2ee/0x490 [ 189.109732][ C1] netdev_get_by_index+0x5e/0x80 [ 189.109875][ C1] fib6_nh_init+0x3d8/0x15b0 [ 189.110011][ C1] ip6_route_info_create+0xf18/0x17d0 [ 189.110144][ C1] addrconf_f6i_alloc+0x265/0x560 [ 189.110276][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 189.110410][ C1] addrconf_join_anycast+0x1c0/0x220 [ 189.110550][ C1] __ipv6_ifa_notify+0x6b3/0xaf0 [ 189.110684][ C1] addrconf_dad_completed+0x12b/0xe20 [ 189.110829][ C1] addrconf_dad_work+0x38c/0xab0 [ 189.110960][ C1] process_one_work+0xe2c/0x1730 [ 189.111099][ C1] worker_thread+0x587/0xd30 [ 189.111232][ C1] kthread+0x28a/0x350 [ 189.111335][ C1] ret_from_fork+0x31/0x70 [ 189.111503][ C1] ret_from_fork_asm+0x1a/0x30 [ 189.111720][ C1] [ 189.111823][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 189.111963][ C1] HARDIRQ-ON-W at: [ 189.112071][ C1] __lock_acquire+0x797/0x1570 [ 189.112260][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.112442][ C1] _raw_write_lock_bh+0x38/0x50 [ 189.112610][ C1] addrconf_permanent_addr+0x6e/0x670 [ 189.112777][ C1] addrconf_notify+0x749/0xd60 [ 189.112944][ C1] notifier_call_chain+0xcd/0x150 [ 189.113122][ C1] __dev_notify_flags+0xe6/0x250 [ 189.113289][ C1] dev_change_flags+0xec/0x160 [ 189.113465][ C1] do_setlink+0x7d6/0x21e0 [ 189.113632][ C1] __rtnl_newlink+0xaa7/0xd80 [ 189.113804][ C1] rtnl_newlink+0x63/0xa0 [ 189.113975][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 189.114148][ C1] netlink_rcv_skb+0x130/0x360 [ 189.114320][ C1] netlink_unicast+0x449/0x710 [ 189.114513][ C1] netlink_sendmsg+0x723/0xbe0 [ 189.114685][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 189.114853][ C1] ___sys_sendmsg+0xee/0x170 [ 189.115022][ C1] __sys_sendmsg+0xcd/0x170 [ 189.115201][ C1] do_syscall_64+0xc6/0x1e0 [ 189.115369][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 189.115589][ C1] HARDIRQ-ON-R at: [ 189.115704][ C1] __lock_acquire+0x797/0x1570 [ 189.115876][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.116040][ C1] _raw_read_lock_bh+0x44/0x80 [ 189.116211][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 189.116382][ C1] inet6_fill_link_af+0x5e/0xe0 [ 189.116564][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 189.116728][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 189.116895][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 189.117090][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 189.117255][ C1] register_netdevice+0x1177/0x1690 [ 189.117430][ C1] register_netdev+0x20/0x40 [ 189.117603][ C1] sit_init_net+0x250/0x4f0 [ 189.117770][ C1] ops_init+0x9b/0x560 [ 189.117904][ C1] register_pernet_operations+0x2db/0x710 [ 189.118112][ C1] register_pernet_device+0x2a/0x60 [ 189.118274][ C1] sit_init+0x23/0xe0 [ 189.118408][ C1] do_one_initcall+0x8d/0x1e0 [ 189.118603][ C1] do_initcalls+0x1b2/0x3e0 [ 189.118768][ C1] kernel_init_freeable+0x232/0x310 [ 189.118932][ C1] kernel_init+0x20/0x200 [ 189.119102][ C1] ret_from_fork+0x31/0x70 [ 189.119271][ C1] ret_from_fork_asm+0x1a/0x30 [ 189.119447][ C1] IN-SOFTIRQ-W at: [ 189.119558][ C1] __lock_acquire+0x797/0x1570 [ 189.119728][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.119896][ C1] _raw_write_lock+0x30/0x40 [ 189.120059][ C1] addrconf_rs_timer+0xa9/0x730 [ 189.120234][ C1] call_timer_fn+0x13b/0x230 [ 189.120402][ C1] __run_timers+0x545/0x810 [ 189.120608][ C1] run_timer_softirq+0xe8/0x1b0 [ 189.120780][ C1] __do_softirq+0x1f8/0x5df [ 189.120945][ C1] irq_exit_rcu+0x97/0xc0 [ 189.121118][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 189.121324][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 189.121534][ C1] default_idle+0xf/0x20 [ 189.121699][ C1] default_idle_call+0x6d/0xb0 [ 189.121864][ C1] cpuidle_idle_call+0x1f4/0x280 [ 189.122033][ C1] do_idle+0xf9/0x160 [ 189.122173][ C1] cpu_startup_entry+0x54/0x60 [ 189.122342][ C1] start_secondary+0x21c/0x2b0 [ 189.122518][ C1] common_startup_64+0x12c/0x138 [ 189.122685][ C1] INITIAL USE at: [ 189.122788][ C1] __lock_acquire+0x797/0x1570 [ 189.122956][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.123133][ C1] _raw_write_lock_bh+0x38/0x50 [ 189.123306][ C1] addrconf_permanent_addr+0x6e/0x670 [ 189.123494][ C1] addrconf_notify+0x749/0xd60 [ 189.123660][ C1] notifier_call_chain+0xcd/0x150 [ 189.123826][ C1] __dev_notify_flags+0xe6/0x250 [ 189.123997][ C1] dev_change_flags+0xec/0x160 [ 189.124169][ C1] do_setlink+0x7d6/0x21e0 [ 189.124337][ C1] __rtnl_newlink+0xaa7/0xd80 [ 189.124514][ C1] rtnl_newlink+0x63/0xa0 [ 189.124677][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 189.124844][ C1] netlink_rcv_skb+0x130/0x360 [ 189.125009][ C1] netlink_unicast+0x449/0x710 [ 189.125181][ C1] netlink_sendmsg+0x723/0xbe0 [ 189.125348][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 189.125528][ C1] ___sys_sendmsg+0xee/0x170 [ 189.125694][ C1] __sys_sendmsg+0xcd/0x170 [ 189.125860][ C1] do_syscall_64+0xc6/0x1e0 [ 189.126027][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 189.126230][ C1] INITIAL READ USE at: [ 189.126338][ C1] __lock_acquire+0x797/0x1570 [ 189.126517][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.126681][ C1] _raw_read_lock_bh+0x44/0x80 [ 189.126850][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 189.127047][ C1] inet6_fill_link_af+0x5e/0xe0 [ 189.127217][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 189.127392][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 189.127596][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 189.127796][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 189.128045][ C1] register_netdevice+0x1177/0x1690 [ 189.128255][ C1] register_netdev+0x20/0x40 [ 189.128428][ C1] sit_init_net+0x250/0x4f0 [ 189.128701][ C1] ops_init+0x9b/0x560 [ 189.128867][ C1] register_pernet_operations+0x2db/0x710 [ 189.129062][ C1] register_pernet_device+0x2a/0x60 [ 189.129343][ C1] sit_init+0x23/0xe0 [ 189.129529][ C1] do_one_initcall+0x8d/0x1e0 [ 189.129695][ C1] do_initcalls+0x1b2/0x3e0 [ 189.129864][ C1] kernel_init_freeable+0x232/0x310 [ 189.130145][ C1] kernel_init+0x20/0x200 [ 189.130313][ C1] ret_from_fork+0x31/0x70 [ 189.130488][ C1] ret_from_fork_asm+0x1a/0x30 [ 189.130727][ C1] } [ 189.130822][ C1] ... key at: [] __key.37+0x0/0x40 [ 189.131022][ C1] ... acquired at: [ 189.131121][ C1] mark_lock+0x28d/0x3e0 [ 189.131347][ C1] mark_usage+0xd9/0x2a0 [ 189.131483][ C1] __lock_acquire+0x797/0x1570 [ 189.131619][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.131755][ C1] _raw_write_lock+0x30/0x40 [ 189.131905][ C1] addrconf_rs_timer+0xa9/0x730 [ 189.132183][ C1] call_timer_fn+0x13b/0x230 [ 189.132316][ C1] __run_timers+0x545/0x810 [ 189.132465][ C1] run_timer_softirq+0xe8/0x1b0 [ 189.132623][ C1] __do_softirq+0x1f8/0x5df [ 189.132843][ C1] irq_exit_rcu+0x97/0xc0 [ 189.132979][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 189.133142][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 189.133307][ C1] default_idle+0xf/0x20 [ 189.133511][ C1] default_idle_call+0x6d/0xb0 [ 189.133643][ C1] cpuidle_idle_call+0x1f4/0x280 [ 189.133773][ C1] do_idle+0xf9/0x160 [ 189.133878][ C1] cpu_startup_entry+0x54/0x60 [ 189.134084][ C1] start_secondary+0x21c/0x2b0 [ 189.134218][ C1] common_startup_64+0x12c/0x138 [ 189.134352][ C1] [ 189.134418][ C1] [ 189.134418][ C1] stack backtrace: [ 189.134584][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 189.134858][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 189.135153][ C1] Call Trace: [ 189.135330][ C1] [ 189.135403][ C1] dump_stack_lvl+0x82/0xd0 [ 189.135539][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 189.135704][ C1] ? kernel_text_address+0x17/0xe0 [ 189.135838][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 189.136078][ C1] ? __pfx_usage_skip+0x10/0x10 [ 189.136208][ C1] ? __pfx_usage_match+0x10/0x10 [ 189.136351][ C1] ? arch_stack_walk+0x8c/0xf0 [ 189.136509][ C1] mark_lock_irq+0x4cd/0xa10 [ 189.136719][ C1] ? common_startup_64+0x12c/0x138 [ 189.136850][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 189.136984][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 189.137122][ C1] ? save_trace+0x8f/0x5b0 [ 189.137330][ C1] mark_lock+0x28d/0x3e0 [ 189.137431][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 189.137573][ C1] mark_usage+0xd9/0x2a0 [ 189.137672][ C1] __lock_acquire+0x797/0x1570 [ 189.137803][ C1] ? __pfx_validate_chain+0x10/0x10 [ 189.138010][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 189.138140][ C1] lock_acquire.part.0+0xeb/0x330 [ 189.138274][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 189.138409][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 189.138623][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 189.138760][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 189.138894][ C1] ? lock_acquire+0x32/0xc0 [ 189.139033][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 189.139239][ C1] _raw_write_lock+0x30/0x40 [ 189.139381][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 189.139512][ C1] addrconf_rs_timer+0xa9/0x730 [ 189.139644][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 189.139780][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 189.139991][ C1] ? call_timer_fn+0xe8/0x230 [ 189.140123][ C1] ? lock_acquire+0x32/0xc0 [ 189.140255][ C1] ? call_timer_fn+0xe8/0x230 [ 189.140394][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 189.140633][ C1] call_timer_fn+0x13b/0x230 [ 189.140772][ C1] ? call_timer_fn+0xe8/0x230 [ 189.140909][ C1] ? call_timer_fn+0xe8/0x230 [ 189.141055][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 189.141271][ C1] ? mark_lock+0x38/0x3e0 [ 189.141380][ C1] __run_timers+0x545/0x810 [ 189.141510][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 189.141643][ C1] ? __pfx___run_timers+0x10/0x10 [ 189.141780][ C1] ? do_raw_spin_lock+0x131/0x270 [ 189.141985][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 189.142119][ C1] ? lock_acquire+0x32/0xc0 [ 189.142249][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 189.142381][ C1] run_timer_softirq+0xe8/0x1b0 [ 189.142667][ C1] __do_softirq+0x1f8/0x5df [ 189.142807][ C1] irq_exit_rcu+0x97/0xc0 [ 189.142908][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 189.143038][ C1] [ 189.143111][ C1] [ 189.143260][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 189.143428][ C1] RIP: 0010:default_idle+0xf/0x20 [ 189.143568][ 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 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 [ 189.144129][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 189.144301][ C1] RAX: 00000000001a65cd RBX: 1ffff92000029fc1 RCX: ffffffffa970e9d5 [ 189.144596][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa70aa4a4 [ 189.144795][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f1709c [ 189.144997][ C1] R10: ffff88802f8b84e3 R11: ffff88802f8ad9b0 R12: 0000000000000000 [ 189.145270][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 189.145478][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 189.145612][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 189.145744][ C1] default_idle_call+0x6d/0xb0 [ 189.145950][ C1] cpuidle_idle_call+0x1f4/0x280 [ 189.146083][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 189.146220][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 189.146355][ C1] do_idle+0xf9/0x160 [ 189.146531][ C1] cpu_startup_entry+0x54/0x60 [ 189.146668][ C1] start_secondary+0x21c/0x2b0 [ 189.146799][ C1] ? __pfx_start_secondary+0x10/0x10 [ 189.146933][ C1] common_startup_64+0x12c/0x138 [ 189.147068][ C1]