[ 32.099095][ C2] [ 32.099195][ C2] ======================================================== [ 32.099398][ C2] WARNING: possible irq lock inversion dependency detected [ 32.099600][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 32.099740][ C2] -------------------------------------------------------- [ 32.099942][ C2] swapper/2/0 just changed the state of lock: [ 32.100115][ C2] ffff8880062a2580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 32.100366][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 32.100564][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 32.100568][ C2] [ 32.100568][ C2] [ 32.100568][ C2] and interrupts could create inverse lock ordering between them. [ 32.100568][ C2] [ 32.101060][ C2] [ 32.101060][ C2] other info that might help us debug this: [ 32.101255][ C2] Possible interrupt unsafe locking scenario: [ 32.101255][ C2] [ 32.101455][ C2] CPU0 CPU1 [ 32.101587][ C2] ---- ---- [ 32.101720][ C2] lock(&p->alloc_lock); [ 32.101824][ C2] local_irq_disable(); [ 32.101990][ C2] lock(&ndev->lock); [ 32.102158][ C2] lock(&p->alloc_lock); [ 32.102324][ C2] [ 32.102428][ C2] lock(&ndev->lock); [ 32.102534][ C2] [ 32.102534][ C2] *** DEADLOCK *** [ 32.102534][ C2] [ 32.102731][ C2] 1 lock held by swapper/2/0: [ 32.102865][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 32.103110][ C2] [ 32.103110][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 32.103340][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 32.103479][ C2] HARDIRQ-ON-W at: [ 32.103587][ C2] __lock_acquire+0x797/0x1570 [ 32.103759][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.103929][ C2] _raw_spin_lock+0x30/0x40 [ 32.104099][ C2] set_mems_allowed+0x1d/0x210 [ 32.104270][ C2] kernel_init_freeable+0x72/0x310 [ 32.104440][ C2] kernel_init+0x20/0x200 [ 32.104612][ C2] ret_from_fork+0x31/0x70 [ 32.104785][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.104955][ C2] SOFTIRQ-ON-W at: [ 32.105057][ C2] __lock_acquire+0x797/0x1570 [ 32.105225][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.105396][ C2] _raw_spin_lock+0x30/0x40 [ 32.105564][ C2] set_mems_allowed+0x1d/0x210 [ 32.105736][ C2] kernel_init_freeable+0x72/0x310 [ 32.105907][ C2] kernel_init+0x20/0x200 [ 32.106076][ C2] ret_from_fork+0x31/0x70 [ 32.106244][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.106413][ C2] INITIAL USE at: [ 32.106516][ C2] __lock_acquire+0x797/0x1570 [ 32.106688][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.106857][ C2] _raw_spin_lock+0x30/0x40 [ 32.107026][ C2] set_mems_allowed+0x1d/0x210 [ 32.107195][ C2] kernel_init_freeable+0x72/0x310 [ 32.107362][ C2] kernel_init+0x20/0x200 [ 32.107530][ C2] ret_from_fork+0x31/0x70 [ 32.107703][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.107872][ C2] } [ 32.107941][ C2] ... key at: [] __key.387+0x0/0x40 [ 32.108141][ C2] ... acquired at: [ 32.108243][ C2] __lock_acquire+0xaf0/0x1570 [ 32.108384][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.108519][ C2] _raw_spin_lock+0x30/0x40 [ 32.108656][ C2] __get_task_comm+0x27/0x70 [ 32.108797][ C2] ref_tracker_alloc+0x2ee/0x490 [ 32.108933][ C2] netdev_get_by_index+0x5e/0x80 [ 32.109070][ C2] fib6_nh_init+0x3d8/0x15b0 [ 32.109206][ C2] ip6_route_info_create+0xf18/0x17d0 [ 32.109343][ C2] ip6_route_add+0x1c/0x140 [ 32.109478][ C2] addrconf_prefix_route+0x1cc/0x2b0 [ 32.109614][ C2] addrconf_permanent_addr+0x32f/0x670 [ 32.109749][ C2] addrconf_notify+0x749/0xd60 [ 32.109897][ C2] notifier_call_chain+0xcd/0x150 [ 32.110035][ C2] __dev_notify_flags+0xe6/0x250 [ 32.110172][ C2] dev_change_flags+0xec/0x160 [ 32.110308][ C2] do_setlink+0x7d6/0x21e0 [ 32.110444][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.110579][ C2] rtnl_newlink+0x63/0xa0 [ 32.110714][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.110848][ C2] netlink_rcv_skb+0x130/0x360 [ 32.110987][ C2] netlink_unicast+0x449/0x710 [ 32.111123][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.111256][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.111391][ C2] ___sys_sendmsg+0xee/0x170 [ 32.111526][ C2] __sys_sendmsg+0xcd/0x170 [ 32.111661][ C2] do_syscall_64+0xc6/0x1e0 [ 32.111800][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.111971][ C2] [ 32.112041][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 32.112183][ C2] HARDIRQ-ON-W at: [ 32.112365][ C2] __lock_acquire+0x797/0x1570 [ 32.112536][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.112706][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.112875][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.113122][ C2] addrconf_notify+0x749/0xd60 [ 32.113291][ C2] notifier_call_chain+0xcd/0x150 [ 32.113461][ C2] __dev_notify_flags+0xe6/0x250 [ 32.113708][ C2] dev_change_flags+0xec/0x160 [ 32.113878][ C2] do_setlink+0x7d6/0x21e0 [ 32.114048][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.114219][ C2] rtnl_newlink+0x63/0xa0 [ 32.114467][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.114638][ C2] netlink_rcv_skb+0x130/0x360 [ 32.114808][ C2] netlink_unicast+0x449/0x710 [ 32.115057][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.115226][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.115394][ C2] ___sys_sendmsg+0xee/0x170 [ 32.115642][ C2] __sys_sendmsg+0xcd/0x170 [ 32.115814][ C2] do_syscall_64+0xc6/0x1e0 [ 32.115985][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.116187][ C2] HARDIRQ-ON-R at: [ 32.116445][ C2] __lock_acquire+0x797/0x1570 [ 32.116612][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.116782][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.117028][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.117198][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.117368][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.117536][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.117785][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.117986][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.118154][ C2] register_netdevice+0x1177/0x1690 [ 32.118411][ C2] register_netdev+0x20/0x40 [ 32.118582][ C2] sit_init_net+0x250/0x4f0 [ 32.118750][ C2] ops_init+0x9b/0x560 [ 32.118887][ C2] register_pernet_operations+0x2db/0x710 [ 32.119168][ C2] register_pernet_device+0x2a/0x60 [ 32.119336][ C2] sit_init+0x23/0xe0 [ 32.119474][ C2] do_one_initcall+0x8d/0x1e0 [ 32.119726][ C2] do_initcalls+0x1b2/0x3e0 [ 32.119895][ C2] kernel_init_freeable+0x232/0x310 [ 32.120064][ C2] kernel_init+0x20/0x200 [ 32.120311][ C2] ret_from_fork+0x31/0x70 [ 32.120481][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.120650][ C2] IN-SOFTIRQ-W at: [ 32.120751][ C2] __lock_acquire+0x797/0x1570 [ 32.121010][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.121178][ C2] _raw_write_lock+0x30/0x40 [ 32.121347][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.121515][ C2] call_timer_fn+0x13b/0x230 [ 32.121764][ C2] __run_timers+0x545/0x810 [ 32.121932][ C2] timer_expire_remote+0x9b/0xe0 [ 32.122111][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.122359][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.122528][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.122697][ C2] __do_softirq+0x1f8/0x5df [ 32.122945][ C2] irq_exit_rcu+0x97/0xc0 [ 32.123114][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.123318][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.123600][ C2] default_idle+0xf/0x20 [ 32.123770][ C2] default_idle_call+0x6d/0xb0 [ 32.123938][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.124107][ C2] do_idle+0xf9/0x160 [ 32.124322][ C2] cpu_startup_entry+0x54/0x60 [ 32.124490][ C2] start_secondary+0x21c/0x2b0 [ 32.124662][ C2] common_startup_64+0x12c/0x138 [ 32.124910][ C2] INITIAL USE at: [ 32.125011][ C2] __lock_acquire+0x797/0x1570 [ 32.125179][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.125348][ C2] _raw_write_lock_bh+0x38/0x50 [ 32.125598][ C2] addrconf_permanent_addr+0x6e/0x670 [ 32.125768][ C2] addrconf_notify+0x749/0xd60 [ 32.125935][ C2] notifier_call_chain+0xcd/0x150 [ 32.126104][ C2] __dev_notify_flags+0xe6/0x250 [ 32.126350][ C2] dev_change_flags+0xec/0x160 [ 32.126518][ C2] do_setlink+0x7d6/0x21e0 [ 32.126687][ C2] __rtnl_newlink+0xaa7/0xd80 [ 32.127012][ C2] rtnl_newlink+0x63/0xa0 [ 32.127184][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 32.127353][ C2] netlink_rcv_skb+0x130/0x360 [ 32.127601][ C2] netlink_unicast+0x449/0x710 [ 32.127770][ C2] netlink_sendmsg+0x723/0xbe0 [ 32.127937][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 32.128106][ C2] ___sys_sendmsg+0xee/0x170 [ 32.128362][ C2] __sys_sendmsg+0xcd/0x170 [ 32.128531][ C2] do_syscall_64+0xc6/0x1e0 [ 32.128701][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 32.128980][ C2] INITIAL READ USE at: [ 32.129081][ C2] __lock_acquire+0x797/0x1570 [ 32.129250][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.129419][ C2] _raw_read_lock_bh+0x44/0x80 [ 32.129668][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 32.129870][ C2] inet6_fill_link_af+0x5e/0xe0 [ 32.130038][ C2] rtnl_fill_ifinfo+0x1612/0x29e0 [ 32.130287][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 32.130489][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 32.130694][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 32.130942][ C2] register_netdevice+0x1177/0x1690 [ 32.131143][ C2] register_netdev+0x20/0x40 [ 32.131311][ C2] sit_init_net+0x250/0x4f0 [ 32.131557][ C2] ops_init+0x9b/0x560 [ 32.131726][ C2] register_pernet_operations+0x2db/0x710 [ 32.131932][ C2] register_pernet_device+0x2a/0x60 [ 32.132213][ C2] sit_init+0x23/0xe0 [ 32.132381][ C2] do_one_initcall+0x8d/0x1e0 [ 32.132551][ C2] do_initcalls+0x1b2/0x3e0 [ 32.132720][ C2] kernel_init_freeable+0x232/0x310 [ 32.133000][ C2] kernel_init+0x20/0x200 [ 32.133172][ C2] ret_from_fork+0x31/0x70 [ 32.133343][ C2] ret_from_fork_asm+0x1a/0x30 [ 32.133594][ C2] } [ 32.133664][ C2] ... key at: [] __key.36+0x0/0x40 [ 32.133865][ C2] ... acquired at: [ 32.133966][ C2] mark_lock+0x28d/0x3e0 [ 32.134179][ C2] mark_usage+0xd9/0x2a0 [ 32.134315][ C2] __lock_acquire+0x797/0x1570 [ 32.134452][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.134586][ C2] _raw_write_lock+0x30/0x40 [ 32.134797][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.134931][ C2] call_timer_fn+0x13b/0x230 [ 32.135065][ C2] __run_timers+0x545/0x810 [ 32.135200][ C2] timer_expire_remote+0x9b/0xe0 [ 32.135334][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.135545][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.135680][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.135814][ C2] __do_softirq+0x1f8/0x5df [ 32.135948][ C2] irq_exit_rcu+0x97/0xc0 [ 32.136166][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.136332][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.136500][ C2] default_idle+0xf/0x20 [ 32.136635][ C2] default_idle_call+0x6d/0xb0 [ 32.136769][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.136907][ C2] do_idle+0xf9/0x160 [ 32.137009][ C2] cpu_startup_entry+0x54/0x60 [ 32.137144][ C2] start_secondary+0x21c/0x2b0 [ 32.137434][ C2] common_startup_64+0x12c/0x138 [ 32.137569][ C2] [ 32.137636][ C2] [ 32.137636][ C2] stack backtrace: [ 32.137800][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 32.138087][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 32.138394][ C2] Call Trace: [ 32.138504][ C2] [ 32.138575][ C2] dump_stack_lvl+0x82/0xd0 [ 32.138716][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 32.138883][ C2] ? kernel_text_address+0x17/0xe0 [ 32.139021][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 32.139187][ C2] ? __pfx_usage_skip+0x10/0x10 [ 32.139324][ C2] ? __pfx_usage_match+0x10/0x10 [ 32.139459][ C2] ? arch_stack_walk+0x8c/0xf0 [ 32.139596][ C2] mark_lock_irq+0x4cd/0xa10 [ 32.139730][ C2] ? common_startup_64+0x12c/0x138 [ 32.139946][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 32.140086][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.140225][ C2] ? save_trace+0x8f/0x5b0 [ 32.140360][ C2] mark_lock+0x28d/0x3e0 [ 32.140540][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 32.140678][ C2] mark_usage+0xd9/0x2a0 [ 32.140780][ C2] __lock_acquire+0x797/0x1570 [ 32.140916][ C2] ? __pfx_validate_chain+0x10/0x10 [ 32.141052][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.141264][ C2] lock_acquire.part.0+0xeb/0x330 [ 32.141399][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.141533][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.141668][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 32.141882][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.142014][ C2] ? lock_acquire+0x32/0xc0 [ 32.142151][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.142285][ C2] _raw_write_lock+0x30/0x40 [ 32.142497][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 32.142630][ C2] addrconf_rs_timer+0xa9/0x730 [ 32.142763][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 32.142898][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.143035][ C2] ? call_timer_fn+0xe8/0x230 [ 32.143247][ C2] ? lock_acquire+0x32/0xc0 [ 32.143380][ C2] ? call_timer_fn+0xe8/0x230 [ 32.143514][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.143648][ C2] call_timer_fn+0x13b/0x230 [ 32.143859][ C2] ? call_timer_fn+0xe8/0x230 [ 32.143991][ C2] ? call_timer_fn+0xe8/0x230 [ 32.144126][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 32.144260][ C2] ? mark_lock+0x38/0x3e0 [ 32.144445][ C2] __run_timers+0x545/0x810 [ 32.144581][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 32.144717][ C2] ? __pfx___run_timers+0x10/0x10 [ 32.144851][ C2] ? __lock_release+0x103/0x460 [ 32.144986][ C2] ? do_raw_spin_lock+0x131/0x270 [ 32.145203][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 32.145336][ C2] ? lock_acquire+0x32/0xc0 [ 32.145474][ C2] ? timer_expire_remote+0x93/0xe0 [ 32.145612][ C2] timer_expire_remote+0x9b/0xe0 [ 32.145747][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 32.145881][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 32.146049][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 32.146184][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 32.146396][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 32.146532][ C2] __do_softirq+0x1f8/0x5df [ 32.146668][ C2] irq_exit_rcu+0x97/0xc0 [ 32.146773][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 32.146985][ C2] [ 32.147055][ C2] [ 32.147124][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 32.147291][ C2] RIP: 0010:default_idle+0xf/0x20 [ 32.147431][ 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 c3 d1 2b 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 32.148079][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 32.148249][ C2] RAX: 00000000000f0f03 RBX: 1ffff9200002bfc1 RCX: ffffffffb91a48b5 [ 32.148539][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb6aaa4a4 [ 32.148741][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 32.148940][ C2] R10: ffff8880361384e3 R11: 1ffff110003a928c R12: 0000000000000000 [ 32.149226][ C2] R13: ffff888001b845c0 R14: dffffc0000000000 R15: 0000000000000000 [ 32.149429][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 32.149566][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 32.149704][ C2] default_idle_call+0x6d/0xb0 [ 32.149837][ C2] cpuidle_idle_call+0x1f4/0x280 [ 32.149972][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 32.150107][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 32.150325][ C2] do_idle+0xf9/0x160 [ 32.150427][ C2] cpu_startup_entry+0x54/0x60 [ 32.150561][ C2] start_secondary+0x21c/0x2b0 [ 32.150695][ C2] ? __pfx_start_secondary+0x10/0x10 [ 32.150831][ C2] common_startup_64+0x12c/0x138 [ 32.151046][ C2]