[ 26.559441][ T272] 8021q: 802.1Q VLAN Support v1.8 [ 34.612123][ C0] [ 34.612315][ C0] ======================================================== [ 34.612545][ C0] WARNING: possible irq lock inversion dependency detected [ 34.612763][ C0] 6.9.0-rc1-virtme #1 Not tainted [ 34.612914][ C0] -------------------------------------------------------- [ 34.613129][ C0] swapper/0/0 just changed the state of lock: [ 34.613314][ C0] ffff888006b4a580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 34.613585][ C0] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 34.613799][ C0] (&p->alloc_lock){+.+.}-{2:2} [ 34.613803][ C0] [ 34.613803][ C0] [ 34.613803][ C0] and interrupts could create inverse lock ordering between them. [ 34.613803][ C0] [ 34.614340][ C0] [ 34.614340][ C0] other info that might help us debug this: [ 34.614553][ C0] Possible interrupt unsafe locking scenario: [ 34.614553][ C0] [ 34.614784][ C0] CPU0 CPU1 [ 34.614929][ C0] ---- ---- [ 34.615085][ C0] lock(&p->alloc_lock); [ 34.615209][ C0] local_irq_disable(); [ 34.615392][ C0] lock(&ndev->lock); [ 34.615580][ C0] lock(&p->alloc_lock); [ 34.615765][ C0] [ 34.615875][ C0] lock(&ndev->lock); [ 34.615996][ C0] [ 34.615996][ C0] *** DEADLOCK *** [ 34.615996][ C0] [ 34.616212][ C0] 1 lock held by swapper/0/0: [ 34.616365][ C0] #0: ffffc90000007d68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 34.616639][ C0] [ 34.616639][ C0] the shortest dependencies between 2nd lock and 1st lock: [ 34.616888][ C0] -> (&p->alloc_lock){+.+.}-{2:2} { [ 34.617039][ C0] HARDIRQ-ON-W at: [ 34.617152][ C0] __lock_acquire+0x797/0x1570 [ 34.617344][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.617529][ C0] _raw_spin_lock+0x30/0x40 [ 34.617712][ C0] set_mems_allowed+0x1d/0x210 [ 34.617899][ C0] kernel_init_freeable+0x72/0x310 [ 34.618084][ C0] kernel_init+0x20/0x200 [ 34.618267][ C0] ret_from_fork+0x31/0x70 [ 34.618454][ C0] ret_from_fork_asm+0x1a/0x30 [ 34.618638][ C0] SOFTIRQ-ON-W at: [ 34.618749][ C0] __lock_acquire+0x797/0x1570 [ 34.618931][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.619114][ C0] _raw_spin_lock+0x30/0x40 [ 34.619295][ C0] set_mems_allowed+0x1d/0x210 [ 34.619475][ C0] kernel_init_freeable+0x72/0x310 [ 34.619658][ C0] kernel_init+0x20/0x200 [ 34.619845][ C0] ret_from_fork+0x31/0x70 [ 34.620026][ C0] ret_from_fork_asm+0x1a/0x30 [ 34.620206][ C0] INITIAL USE at: [ 34.620316][ C0] __lock_acquire+0x797/0x1570 [ 34.620499][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.620678][ C0] _raw_spin_lock+0x30/0x40 [ 34.620862][ C0] set_mems_allowed+0x1d/0x210 [ 34.621047][ C0] kernel_init_freeable+0x72/0x310 [ 34.621229][ C0] kernel_init+0x20/0x200 [ 34.621410][ C0] ret_from_fork+0x31/0x70 [ 34.621595][ C0] ret_from_fork_asm+0x1a/0x30 [ 34.621787][ C0] } [ 34.621873][ C0] ... key at: [] __key.387+0x0/0x40 [ 34.622098][ C0] ... acquired at: [ 34.622207][ C0] __lock_acquire+0xaf0/0x1570 [ 34.622356][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.622501][ C0] _raw_spin_lock+0x30/0x40 [ 34.622647][ C0] __get_task_comm+0x27/0x70 [ 34.622796][ C0] ref_tracker_alloc+0x2ee/0x490 [ 34.622946][ C0] netdev_get_by_index+0x5e/0x80 [ 34.623093][ C0] fib6_nh_init+0x3d8/0x15b0 [ 34.623241][ C0] ip6_route_info_create+0xf18/0x17d0 [ 34.623385][ C0] addrconf_f6i_alloc+0x265/0x560 [ 34.623534][ C0] __ipv6_dev_ac_inc+0x25f/0xb10 [ 34.623682][ C0] addrconf_join_anycast+0x1c0/0x220 [ 34.623826][ C0] dev_forward_change+0x2a6/0x7b0 [ 34.623972][ C0] addrconf_fixup_forwarding+0x23f/0x460 [ 34.624156][ C0] addrconf_sysctl_forward+0x212/0x2b0 [ 34.624305][ C0] proc_sys_call_handler+0x403/0x5e0 [ 34.624451][ C0] vfs_write+0x9e5/0x10a0 [ 34.624599][ C0] ksys_write+0xf5/0x1e0 [ 34.624747][ C0] do_syscall_64+0xc6/0x1e0 [ 34.624894][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.625079][ C0] [ 34.625162][ C0] -> (&ndev->lock){++-.}-{2:2} { [ 34.625309][ C0] HARDIRQ-ON-W at: [ 34.625421][ C0] __lock_acquire+0x797/0x1570 [ 34.625608][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.625792][ C0] _raw_write_lock_bh+0x38/0x50 [ 34.625973][ C0] addrconf_permanent_addr+0x6e/0x670 [ 34.626157][ C0] addrconf_notify+0x749/0xd60 [ 34.626340][ C0] notifier_call_chain+0xcd/0x150 [ 34.626521][ C0] __dev_notify_flags+0xe6/0x250 [ 34.626707][ C0] dev_change_flags+0xec/0x160 [ 34.626889][ C0] do_setlink+0x7d6/0x21e0 [ 34.627072][ C0] __rtnl_newlink+0xaa7/0xd80 [ 34.627260][ C0] rtnl_newlink+0x63/0xa0 [ 34.627443][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.627626][ C0] netlink_rcv_skb+0x130/0x360 [ 34.627817][ C0] netlink_unicast+0x449/0x710 [ 34.628002][ C0] netlink_sendmsg+0x723/0xbe0 [ 34.628182][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 34.628365][ C0] ___sys_sendmsg+0xee/0x170 [ 34.628549][ C0] __sys_sendmsg+0xcd/0x170 [ 34.628731][ C0] do_syscall_64+0xc6/0x1e0 [ 34.628912][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.629137][ C0] HARDIRQ-ON-R at: [ 34.629247][ C0] __lock_acquire+0x797/0x1570 [ 34.629429][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.629611][ C0] _raw_read_lock_bh+0x44/0x80 [ 34.629798][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.629981][ C0] inet6_fill_link_af+0x5e/0xe0 [ 34.630162][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.630350][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.630534][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.630754][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 34.630938][ C0] register_netdevice+0x1177/0x1690 [ 34.631123][ C0] register_netdev+0x20/0x40 [ 34.631304][ C0] sit_init_net+0x250/0x4f0 [ 34.631492][ C0] ops_init+0x9b/0x560 [ 34.631639][ C0] register_pernet_operations+0x2db/0x710 [ 34.631865][ C0] register_pernet_device+0x2a/0x60 [ 34.632048][ C0] sit_init+0x23/0xe0 [ 34.632196][ C0] do_one_initcall+0x8d/0x1e0 [ 34.632383][ C0] do_initcalls+0x1b2/0x3e0 [ 34.632571][ C0] kernel_init_freeable+0x232/0x310 [ 34.632752][ C0] kernel_init+0x20/0x200 [ 34.632939][ C0] ret_from_fork+0x31/0x70 [ 34.633123][ C0] ret_from_fork_asm+0x1a/0x30 [ 34.633305][ C0] IN-SOFTIRQ-W at: [ 34.633414][ C0] __lock_acquire+0x797/0x1570 [ 34.633599][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.633787][ C0] _raw_write_lock+0x30/0x40 [ 34.633972][ C0] addrconf_rs_timer+0xa9/0x730 [ 34.634154][ C0] call_timer_fn+0x13b/0x230 [ 34.634337][ C0] __run_timers+0x545/0x810 [ 34.634518][ C0] run_timer_softirq+0xe8/0x1b0 [ 34.634699][ C0] __do_softirq+0x1f8/0x5df [ 34.634896][ C0] irq_exit_rcu+0x97/0xc0 [ 34.635079][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.635295][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.635513][ C0] default_idle+0xf/0x20 [ 34.635692][ C0] default_idle_call+0x6d/0xb0 [ 34.635875][ C0] cpuidle_idle_call+0x1f4/0x280 [ 34.636060][ C0] do_idle+0xf9/0x160 [ 34.636208][ C0] cpu_startup_entry+0x54/0x60 [ 34.636389][ C0] rest_init+0x14f/0x260 [ 34.636571][ C0] start_kernel+0x318/0x3d0 [ 34.636754][ C0] x86_64_start_reservations+0x18/0x30 [ 34.636935][ C0] x86_64_start_kernel+0xba/0x110 [ 34.637115][ C0] common_startup_64+0x12c/0x138 [ 34.637302][ C0] INITIAL USE at: [ 34.637409][ C0] __lock_acquire+0x797/0x1570 [ 34.637591][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.637772][ C0] _raw_write_lock_bh+0x38/0x50 [ 34.637957][ C0] addrconf_permanent_addr+0x6e/0x670 [ 34.638134][ C0] addrconf_notify+0x749/0xd60 [ 34.638315][ C0] notifier_call_chain+0xcd/0x150 [ 34.638502][ C0] __dev_notify_flags+0xe6/0x250 [ 34.638684][ C0] dev_change_flags+0xec/0x160 [ 34.638865][ C0] do_setlink+0x7d6/0x21e0 [ 34.639049][ C0] __rtnl_newlink+0xaa7/0xd80 [ 34.639234][ C0] rtnl_newlink+0x63/0xa0 [ 34.639415][ C0] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.639599][ C0] netlink_rcv_skb+0x130/0x360 [ 34.639786][ C0] netlink_unicast+0x449/0x710 [ 34.639969][ C0] netlink_sendmsg+0x723/0xbe0 [ 34.640154][ C0] ____sys_sendmsg+0x7b2/0xa10 [ 34.640337][ C0] ___sys_sendmsg+0xee/0x170 [ 34.640520][ C0] __sys_sendmsg+0xcd/0x170 [ 34.640701][ C0] do_syscall_64+0xc6/0x1e0 [ 34.640887][ C0] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.641106][ C0] INITIAL READ USE at: [ 34.641216][ C0] __lock_acquire+0x797/0x1570 [ 34.641399][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.641580][ C0] _raw_read_lock_bh+0x44/0x80 [ 34.641764][ C0] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.641993][ C0] inet6_fill_link_af+0x5e/0xe0 [ 34.642172][ C0] rtnl_fill_ifinfo+0x1612/0x29e0 [ 34.642355][ C0] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.642571][ C0] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.642788][ C0] rtmsg_ifinfo+0x5b/0xa0 [ 34.642972][ C0] register_netdevice+0x1177/0x1690 [ 34.643196][ C0] register_netdev+0x20/0x40 [ 34.643377][ C0] sit_init_net+0x250/0x4f0 [ 34.643562][ C0] ops_init+0x9b/0x560 [ 34.643750][ C0] register_pernet_operations+0x2db/0x710 [ 34.643966][ C0] register_pernet_device+0x2a/0x60 [ 34.644187][ C0] sit_init+0x23/0xe0 [ 34.644374][ C0] do_one_initcall+0x8d/0x1e0 [ 34.644556][ C0] do_initcalls+0x1b2/0x3e0 [ 34.644741][ C0] kernel_init_freeable+0x232/0x310 [ 34.644959][ C0] kernel_init+0x20/0x200 [ 34.645148][ C0] ret_from_fork+0x31/0x70 [ 34.645346][ C0] ret_from_fork_asm+0x1a/0x30 [ 34.645535][ C0] } [ 34.645610][ C0] ... key at: [] __key.37+0x0/0x40 [ 34.645828][ C0] ... acquired at: [ 34.645937][ C0] mark_lock+0x28d/0x3e0 [ 34.646088][ C0] mark_usage+0xd9/0x2a0 [ 34.646233][ C0] __lock_acquire+0x797/0x1570 [ 34.646377][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.646523][ C0] _raw_write_lock+0x30/0x40 [ 34.646676][ C0] addrconf_rs_timer+0xa9/0x730 [ 34.646821][ C0] call_timer_fn+0x13b/0x230 [ 34.646967][ C0] __run_timers+0x545/0x810 [ 34.647112][ C0] run_timer_softirq+0xe8/0x1b0 [ 34.647258][ C0] __do_softirq+0x1f8/0x5df [ 34.647403][ C0] irq_exit_rcu+0x97/0xc0 [ 34.647549][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.647729][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.648007][ C0] default_idle+0xf/0x20 [ 34.648157][ C0] default_idle_call+0x6d/0xb0 [ 34.648302][ C0] cpuidle_idle_call+0x1f4/0x280 [ 34.648446][ C0] do_idle+0xf9/0x160 [ 34.648555][ C0] cpu_startup_entry+0x54/0x60 [ 34.648702][ C0] rest_init+0x14f/0x260 [ 34.648847][ C0] start_kernel+0x318/0x3d0 [ 34.648995][ C0] x86_64_start_reservations+0x18/0x30 [ 34.649140][ C0] x86_64_start_kernel+0xba/0x110 [ 34.649379][ C0] common_startup_64+0x12c/0x138 [ 34.649523][ C0] [ 34.649597][ C0] [ 34.649597][ C0] stack backtrace: [ 34.649778][ C0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.9.0-rc1-virtme #1 [ 34.650095][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 34.650416][ C0] Call Trace: [ 34.650527][ C0] [ 34.650610][ C0] dump_stack_lvl+0x82/0xd0 [ 34.650765][ C0] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 34.650948][ C0] ? kernel_text_address+0x17/0xe0 [ 34.651105][ C0] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 34.651290][ C0] ? __pfx_usage_skip+0x10/0x10 [ 34.651538][ C0] ? __pfx_usage_match+0x10/0x10 [ 34.651686][ C0] ? arch_stack_walk+0x8c/0xf0 [ 34.651845][ C0] mark_lock_irq+0x4cd/0xa10 [ 34.652000][ C0] ? common_startup_64+0x12c/0x138 [ 34.652238][ C0] ? __pfx_mark_lock_irq+0x10/0x10 [ 34.652387][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 34.652536][ C0] ? save_trace+0x8f/0x5b0 [ 34.652682][ C0] mark_lock+0x28d/0x3e0 [ 34.652884][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 34.653031][ C0] mark_usage+0xd9/0x2a0 [ 34.653144][ C0] __lock_acquire+0x797/0x1570 [ 34.653296][ C0] ? __pfx_validate_chain+0x10/0x10 [ 34.653443][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.653679][ C0] lock_acquire.part.0+0xeb/0x330 [ 34.653823][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 34.653972][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.654116][ C0] ? trace_lock_acquire+0x135/0x1c0 [ 34.654349][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 34.654497][ C0] ? lock_acquire+0x32/0xc0 [ 34.654646][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 34.654790][ C0] _raw_write_lock+0x30/0x40 [ 34.655033][ C0] ? addrconf_rs_timer+0xa9/0x730 [ 34.655177][ C0] addrconf_rs_timer+0xa9/0x730 [ 34.655322][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.655467][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.655611][ C0] ? call_timer_fn+0xe8/0x230 [ 34.655754][ C0] ? lock_acquire+0x32/0xc0 [ 34.655899][ C0] ? call_timer_fn+0xe8/0x230 [ 34.656051][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.656196][ C0] call_timer_fn+0x13b/0x230 [ 34.656432][ C0] ? call_timer_fn+0xe8/0x230 [ 34.656578][ C0] ? call_timer_fn+0xe8/0x230 [ 34.656724][ C0] ? __pfx_call_timer_fn+0x10/0x10 [ 34.656870][ C0] ? mark_lock+0x38/0x3e0 [ 34.657081][ C0] __run_timers+0x545/0x810 [ 34.657225][ C0] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.657373][ C0] ? __pfx___run_timers+0x10/0x10 [ 34.657518][ C0] ? do_raw_spin_lock+0x131/0x270 [ 34.657665][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 34.657807][ C0] ? lock_acquire+0x32/0xc0 [ 34.657950][ C0] ? run_timer_softirq+0xe0/0x1b0 [ 34.658098][ C0] run_timer_softirq+0xe8/0x1b0 [ 34.658242][ C0] __do_softirq+0x1f8/0x5df [ 34.658392][ C0] irq_exit_rcu+0x97/0xc0 [ 34.658503][ C0] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.658654][ C0] [ 34.658729][ C0] [ 34.658802][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.659085][ C0] RIP: 0010:default_idle+0xf/0x20 [ 34.659237][ C0] 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.659755][ C0] RSP: 0018:ffffffffbb207e00 EFLAGS: 00000242 [ 34.659946][ C0] RAX: 00000000000a1bad RBX: 1ffffffff7640fc2 RCX: ffffffffba30e9d5 [ 34.660166][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb7caa4a4 [ 34.660473][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0709c [ 34.660699][ C0] R10: ffff8880360384e3 R11: ffff88803602d9b0 R12: 0000000000000000 [ 34.660920][ C0] R13: ffffffffbb21d000 R14: dffffc0000000000 R15: 0000000000014770 [ 34.661239][ C0] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 34.661385][ C0] ? cpuidle_idle_call+0x1f4/0x280 [ 34.661531][ C0] default_idle_call+0x6d/0xb0 [ 34.661675][ C0] cpuidle_idle_call+0x1f4/0x280 [ 34.661923][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 34.662069][ C0] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 34.662216][ C0] do_idle+0xf9/0x160 [ 34.662333][ C0] cpu_startup_entry+0x54/0x60 [ 34.662568][ C0] rest_init+0x14f/0x260 [ 34.662679][ C0] start_kernel+0x318/0x3d0 [ 34.662825][ C0] x86_64_start_reservations+0x18/0x30 [ 34.662971][ C0] x86_64_start_kernel+0xba/0x110 [ 34.663115][ C0] common_startup_64+0x12c/0x138 [ 34.663351][ C0]