[ 26.930391][ T271] 8021q: 802.1Q VLAN Support v1.8 [ 35.125109][ C1] [ 35.125263][ C1] ======================================================== [ 35.125480][ C1] WARNING: possible irq lock inversion dependency detected [ 35.125692][ C1] 6.9.0-rc1-virtme #1 Not tainted [ 35.125849][ C1] -------------------------------------------------------- [ 35.126067][ C1] swapper/1/0 just changed the state of lock: [ 35.126244][ C1] ffff8880044d0d80 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 35.126514][ C1] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 35.126729][ C1] (&p->alloc_lock){+.+.}-{2:2} [ 35.126733][ C1] [ 35.126733][ C1] [ 35.126733][ C1] and interrupts could create inverse lock ordering between them. [ 35.126733][ C1] [ 35.127276][ C1] [ 35.127276][ C1] other info that might help us debug this: [ 35.127493][ C1] Possible interrupt unsafe locking scenario: [ 35.127493][ C1] [ 35.127717][ C1] CPU0 CPU1 [ 35.127874][ C1] ---- ---- [ 35.128016][ C1] lock(&p->alloc_lock); [ 35.128126][ C1] local_irq_disable(); [ 35.128304][ C1] lock(&ndev->lock); [ 35.128482][ C1] lock(&p->alloc_lock); [ 35.128664][ C1] [ 35.128778][ C1] lock(&ndev->lock); [ 35.128898][ C1] [ 35.128898][ C1] *** DEADLOCK *** [ 35.128898][ C1] [ 35.129108][ C1] 1 lock held by swapper/1/0: [ 35.129254][ C1] #0: ffffc900001d8d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 35.129517][ C1] [ 35.129517][ C1] the shortest dependencies between 2nd lock and 1st lock: [ 35.129776][ C1] -> (&p->alloc_lock){+.+.}-{2:2} { [ 35.129930][ C1] HARDIRQ-ON-W at: [ 35.130039][ C1] __lock_acquire+0x797/0x1570 [ 35.130229][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.130410][ C1] _raw_spin_lock+0x30/0x40 [ 35.130593][ C1] set_mems_allowed+0x1d/0x210 [ 35.130783][ C1] kernel_init_freeable+0x72/0x310 [ 35.130974][ C1] kernel_init+0x20/0x200 [ 35.131156][ C1] ret_from_fork+0x31/0x70 [ 35.131339][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.131520][ C1] SOFTIRQ-ON-W at: [ 35.131628][ C1] __lock_acquire+0x797/0x1570 [ 35.131816][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.132004][ C1] _raw_spin_lock+0x30/0x40 [ 35.132184][ C1] set_mems_allowed+0x1d/0x210 [ 35.132364][ C1] kernel_init_freeable+0x72/0x310 [ 35.132544][ C1] kernel_init+0x20/0x200 [ 35.132727][ C1] ret_from_fork+0x31/0x70 [ 35.132916][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.133100][ C1] INITIAL USE at: [ 35.133207][ C1] __lock_acquire+0x797/0x1570 [ 35.133404][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.133584][ C1] _raw_spin_lock+0x30/0x40 [ 35.133773][ C1] set_mems_allowed+0x1d/0x210 [ 35.133970][ C1] kernel_init_freeable+0x72/0x310 [ 35.134155][ C1] kernel_init+0x20/0x200 [ 35.134336][ C1] ret_from_fork+0x31/0x70 [ 35.134521][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.134699][ C1] } [ 35.134774][ C1] ... key at: [] __key.387+0x0/0x40 [ 35.134993][ C1] ... acquired at: [ 35.135104][ C1] __lock_acquire+0xaf0/0x1570 [ 35.135252][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.135402][ C1] _raw_spin_lock+0x30/0x40 [ 35.135548][ C1] __get_task_comm+0x27/0x70 [ 35.135695][ C1] ref_tracker_alloc+0x2ee/0x490 [ 35.135842][ C1] netdev_get_by_index+0x5e/0x80 [ 35.135987][ C1] fib6_nh_init+0x3d8/0x15b0 [ 35.136133][ C1] ip6_route_info_create+0xf18/0x17d0 [ 35.136278][ C1] addrconf_f6i_alloc+0x265/0x560 [ 35.136424][ C1] __ipv6_dev_ac_inc+0x25f/0xb10 [ 35.136576][ C1] addrconf_join_anycast+0x1c0/0x220 [ 35.136722][ C1] dev_forward_change+0x2a6/0x7b0 [ 35.136867][ C1] addrconf_fixup_forwarding+0x23f/0x460 [ 35.137049][ C1] addrconf_sysctl_forward+0x212/0x2b0 [ 35.137193][ C1] proc_sys_call_handler+0x403/0x5e0 [ 35.137338][ C1] vfs_write+0x9e5/0x10a0 [ 35.137481][ C1] ksys_write+0xf5/0x1e0 [ 35.137631][ C1] do_syscall_64+0xc6/0x1e0 [ 35.137776][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.137955][ C1] [ 35.138029][ C1] -> (&ndev->lock){++-.}-{2:2} { [ 35.138179][ C1] HARDIRQ-ON-W at: [ 35.138291][ C1] __lock_acquire+0x797/0x1570 [ 35.138474][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.138665][ C1] _raw_write_lock_bh+0x38/0x50 [ 35.138928][ C1] addrconf_permanent_addr+0x6e/0x670 [ 35.139199][ C1] addrconf_notify+0x749/0xd60 [ 35.139472][ C1] notifier_call_chain+0xcd/0x150 [ 35.139744][ C1] __dev_notify_flags+0xe6/0x250 [ 35.140023][ C1] dev_change_flags+0xec/0x160 [ 35.140297][ C1] do_setlink+0x7d6/0x21e0 [ 35.140578][ C1] __rtnl_newlink+0xaa7/0xd80 [ 35.140849][ C1] rtnl_newlink+0x63/0xa0 [ 35.141121][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.141393][ C1] netlink_rcv_skb+0x130/0x360 [ 35.141669][ C1] netlink_unicast+0x449/0x710 [ 35.141944][ C1] netlink_sendmsg+0x723/0xbe0 [ 35.142214][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 35.142493][ C1] ___sys_sendmsg+0xee/0x170 [ 35.142768][ C1] __sys_sendmsg+0xcd/0x170 [ 35.143040][ C1] do_syscall_64+0xc6/0x1e0 [ 35.143323][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.143650][ C1] HARDIRQ-ON-R at: [ 35.143816][ C1] __lock_acquire+0x797/0x1570 [ 35.144096][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.144384][ C1] _raw_read_lock_bh+0x44/0x80 [ 35.144670][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.144952][ C1] inet6_fill_link_af+0x5e/0xe0 [ 35.145235][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.145517][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.145799][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.146141][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 35.146420][ C1] register_netdevice+0x1177/0x1690 [ 35.146702][ C1] register_netdev+0x20/0x40 [ 35.146985][ C1] sit_init_net+0x250/0x4f0 [ 35.147267][ C1] ops_init+0x9b/0x560 [ 35.147496][ C1] register_pernet_operations+0x2db/0x710 [ 35.147844][ C1] register_pernet_device+0x2a/0x60 [ 35.148123][ C1] sit_init+0x23/0xe0 [ 35.148349][ C1] do_one_initcall+0x8d/0x1e0 [ 35.148633][ C1] do_initcalls+0x1b2/0x3e0 [ 35.148917][ C1] kernel_init_freeable+0x232/0x310 [ 35.149197][ C1] kernel_init+0x20/0x200 [ 35.149486][ C1] ret_from_fork+0x31/0x70 [ 35.149770][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.150051][ C1] IN-SOFTIRQ-W at: [ 35.150222][ C1] __lock_acquire+0x797/0x1570 [ 35.150507][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.150792][ C1] _raw_write_lock+0x30/0x40 [ 35.151075][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.151363][ C1] call_timer_fn+0x13b/0x230 [ 35.151645][ C1] __run_timers+0x545/0x810 [ 35.151929][ C1] run_timer_softirq+0xe8/0x1b0 [ 35.152212][ C1] __do_softirq+0x1f8/0x5df [ 35.152495][ C1] irq_exit_rcu+0x97/0xc0 [ 35.152778][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.153108][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.153462][ C1] default_idle+0xf/0x20 [ 35.153740][ C1] default_idle_call+0x6d/0xb0 [ 35.154017][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.154302][ C1] do_idle+0xf9/0x160 [ 35.154529][ C1] cpu_startup_entry+0x54/0x60 [ 35.154810][ C1] start_secondary+0x21c/0x2b0 [ 35.155098][ C1] common_startup_64+0x12c/0x138 [ 35.155380][ C1] INITIAL USE at: [ 35.155551][ C1] __lock_acquire+0x797/0x1570 [ 35.155834][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.156115][ C1] _raw_write_lock_bh+0x38/0x50 [ 35.156398][ C1] addrconf_permanent_addr+0x6e/0x670 [ 35.156677][ C1] addrconf_notify+0x749/0xd60 [ 35.156965][ C1] notifier_call_chain+0xcd/0x150 [ 35.157249][ C1] __dev_notify_flags+0xe6/0x250 [ 35.157533][ C1] dev_change_flags+0xec/0x160 [ 35.157812][ C1] do_setlink+0x7d6/0x21e0 [ 35.158096][ C1] __rtnl_newlink+0xaa7/0xd80 [ 35.158376][ C1] rtnl_newlink+0x63/0xa0 [ 35.158662][ C1] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 35.158944][ C1] netlink_rcv_skb+0x130/0x360 [ 35.159228][ C1] netlink_unicast+0x449/0x710 [ 35.159509][ C1] netlink_sendmsg+0x723/0xbe0 [ 35.159785][ C1] ____sys_sendmsg+0x7b2/0xa10 [ 35.160064][ C1] ___sys_sendmsg+0xee/0x170 [ 35.160335][ C1] __sys_sendmsg+0xcd/0x170 [ 35.160613][ C1] do_syscall_64+0xc6/0x1e0 [ 35.160885][ C1] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 35.161215][ C1] INITIAL READ USE at: [ 35.161381][ C1] __lock_acquire+0x797/0x1570 [ 35.161653][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.161939][ C1] _raw_read_lock_bh+0x44/0x80 [ 35.162243][ C1] inet6_fill_ifla6_attrs+0x516/0x740 [ 35.162572][ C1] inet6_fill_link_af+0x5e/0xe0 [ 35.162837][ C1] rtnl_fill_ifinfo+0x1612/0x29e0 [ 35.163110][ C1] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 35.163443][ C1] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 35.163769][ C1] rtmsg_ifinfo+0x5b/0xa0 [ 35.164048][ C1] register_netdevice+0x1177/0x1690 [ 35.164373][ C1] register_netdev+0x20/0x40 [ 35.164640][ C1] sit_init_net+0x250/0x4f0 [ 35.164918][ C1] ops_init+0x9b/0x560 [ 35.165199][ C1] register_pernet_operations+0x2db/0x710 [ 35.165532][ C1] register_pernet_device+0x2a/0x60 [ 35.165872][ C1] sit_init+0x23/0xe0 [ 35.166151][ C1] do_one_initcall+0x8d/0x1e0 [ 35.166432][ C1] do_initcalls+0x1b2/0x3e0 [ 35.166710][ C1] kernel_init_freeable+0x232/0x310 [ 35.167049][ C1] kernel_init+0x20/0x200 [ 35.167332][ C1] ret_from_fork+0x31/0x70 [ 35.167624][ C1] ret_from_fork_asm+0x1a/0x30 [ 35.167903][ C1] } [ 35.168018][ C1] ... key at: [] __key.37+0x0/0x40 [ 35.168354][ C1] ... acquired at: [ 35.168522][ C1] mark_lock+0x28d/0x3e0 [ 35.168750][ C1] mark_usage+0xd9/0x2a0 [ 35.168970][ C1] __lock_acquire+0x797/0x1570 [ 35.169192][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.169426][ C1] _raw_write_lock+0x30/0x40 [ 35.169653][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.169881][ C1] call_timer_fn+0x13b/0x230 [ 35.170110][ C1] __run_timers+0x545/0x810 [ 35.170339][ C1] run_timer_softirq+0xe8/0x1b0 [ 35.170567][ C1] __do_softirq+0x1f8/0x5df [ 35.170795][ C1] irq_exit_rcu+0x97/0xc0 [ 35.171025][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.171309][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.171597][ C1] default_idle+0xf/0x20 [ 35.171818][ C1] default_idle_call+0x6d/0xb0 [ 35.172044][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.172269][ C1] do_idle+0xf9/0x160 [ 35.172439][ C1] cpu_startup_entry+0x54/0x60 [ 35.172659][ C1] start_secondary+0x21c/0x2b0 [ 35.172886][ C1] common_startup_64+0x12c/0x138 [ 35.173110][ C1] [ 35.173232][ C1] [ 35.173232][ C1] stack backtrace: [ 35.173451][ C1] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.9.0-rc1-virtme #1 [ 35.173671][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 35.173993][ C1] Call Trace: [ 35.174101][ C1] [ 35.174180][ C1] dump_stack_lvl+0x82/0xd0 [ 35.174331][ C1] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 35.174517][ C1] ? kernel_text_address+0x17/0xe0 [ 35.174669][ C1] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 35.174851][ C1] ? __pfx_usage_skip+0x10/0x10 [ 35.174996][ C1] ? __pfx_usage_match+0x10/0x10 [ 35.175140][ C1] ? arch_stack_walk+0x8c/0xf0 [ 35.175290][ C1] mark_lock_irq+0x4cd/0xa10 [ 35.175436][ C1] ? common_startup_64+0x12c/0x138 [ 35.175582][ C1] ? __pfx_mark_lock_irq+0x10/0x10 [ 35.175732][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 35.175880][ C1] ? save_trace+0x8f/0x5b0 [ 35.176024][ C1] mark_lock+0x28d/0x3e0 [ 35.176134][ C1] ? __pfx_stack_trace_save+0x10/0x10 [ 35.176277][ C1] mark_usage+0xd9/0x2a0 [ 35.176387][ C1] __lock_acquire+0x797/0x1570 [ 35.176534][ C1] ? __pfx_validate_chain+0x10/0x10 [ 35.176680][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.176827][ C1] lock_acquire.part.0+0xeb/0x330 [ 35.176979][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.177126][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.177271][ C1] ? trace_lock_acquire+0x135/0x1c0 [ 35.177414][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.177556][ C1] ? lock_acquire+0x32/0xc0 [ 35.177702][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.177846][ C1] _raw_write_lock+0x30/0x40 [ 35.177998][ C1] ? addrconf_rs_timer+0xa9/0x730 [ 35.178141][ C1] addrconf_rs_timer+0xa9/0x730 [ 35.178287][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 35.178433][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.178577][ C1] ? call_timer_fn+0xe8/0x230 [ 35.178721][ C1] ? lock_acquire+0x32/0xc0 [ 35.178870][ C1] ? call_timer_fn+0xe8/0x230 [ 35.179015][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.179159][ C1] call_timer_fn+0x13b/0x230 [ 35.179307][ C1] ? call_timer_fn+0xe8/0x230 [ 35.179451][ C1] ? call_timer_fn+0xe8/0x230 [ 35.179596][ C1] ? __pfx_call_timer_fn+0x10/0x10 [ 35.179739][ C1] ? mark_lock+0x38/0x3e0 [ 35.179851][ C1] __run_timers+0x545/0x810 [ 35.179993][ C1] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 35.180139][ C1] ? __pfx___run_timers+0x10/0x10 [ 35.180285][ C1] ? do_raw_spin_lock+0x131/0x270 [ 35.180430][ C1] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 35.180575][ C1] ? lock_acquire+0x32/0xc0 [ 35.180723][ C1] ? run_timer_softirq+0xe0/0x1b0 [ 35.180871][ C1] run_timer_softirq+0xe8/0x1b0 [ 35.181015][ C1] __do_softirq+0x1f8/0x5df [ 35.181160][ C1] irq_exit_rcu+0x97/0xc0 [ 35.181270][ C1] sysvec_apic_timer_interrupt+0x75/0x80 [ 35.181415][ C1] [ 35.181488][ C1] [ 35.181561][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 35.181741][ C1] RIP: 0010:default_idle+0xf/0x20 [ 35.181892][ 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 [ 35.182402][ C1] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 35.182583][ C1] RAX: 000000000006a28f RBX: 1ffff92000029fc1 RCX: ffffffff98d0e9d5 [ 35.182805][ C1] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff966aa4a4 [ 35.183020][ C1] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005f1709c [ 35.183234][ C1] R10: ffff88802f8b84e3 R11: ffff88802f8ad9b0 R12: 0000000000000000 [ 35.183469][ C1] R13: ffff888001b7a300 R14: dffffc0000000000 R15: 0000000000000000 [ 35.183687][ C1] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 35.183833][ C1] ? cpuidle_idle_call+0x1f4/0x280 [ 35.183979][ C1] default_idle_call+0x6d/0xb0 [ 35.184121][ C1] cpuidle_idle_call+0x1f4/0x280 [ 35.184265][ C1] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 35.184409][ C1] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 35.184555][ C1] do_idle+0xf9/0x160 [ 35.184664][ C1] cpu_startup_entry+0x54/0x60 [ 35.184808][ C1] start_secondary+0x21c/0x2b0 [ 35.184956][ C1] ? __pfx_start_secondary+0x10/0x10 [ 35.185101][ C1] common_startup_64+0x12c/0x138 [ 35.185248][ C1]