[ 24.331415][ T262] veth0: renamed from veth-rt-1 [ 25.720491][ T271] veth0: renamed from veth-rt-2 [ 34.025826][ C2] [ 34.025936][ C2] ======================================================== [ 34.026134][ C2] WARNING: possible irq lock inversion dependency detected [ 34.026332][ C2] 6.9.0-rc1-virtme #1 Not tainted [ 34.026466][ C2] -------------------------------------------------------- [ 34.026659][ C2] swapper/2/0 just changed the state of lock: [ 34.026825][ C2] ffff8880090c5580 (&ndev->lock){++-.}-{2:2}, at: addrconf_rs_timer+0xa9/0x730 [ 34.027077][ C2] but this lock took another, SOFTIRQ-unsafe lock in the past: [ 34.027303][ C2] (&p->alloc_lock){+.+.}-{2:2} [ 34.027308][ C2] [ 34.027308][ C2] [ 34.027308][ C2] and interrupts could create inverse lock ordering between them. [ 34.027308][ C2] [ 34.027812][ C2] [ 34.027812][ C2] other info that might help us debug this: [ 34.028009][ C2] Possible interrupt unsafe locking scenario: [ 34.028009][ C2] [ 34.028205][ C2] CPU0 CPU1 [ 34.028341][ C2] ---- ---- [ 34.028476][ C2] lock(&p->alloc_lock); [ 34.028582][ C2] local_irq_disable(); [ 34.028748][ C2] lock(&ndev->lock); [ 34.028918][ C2] lock(&p->alloc_lock); [ 34.029084][ C2] [ 34.029184][ C2] lock(&ndev->lock); [ 34.029290][ C2] [ 34.029290][ C2] *** DEADLOCK *** [ 34.029290][ C2] [ 34.029487][ C2] 1 lock held by swapper/2/0: [ 34.029631][ C2] #0: ffffc90000230b68 ((&ndev->rs_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230 [ 34.029881][ C2] [ 34.029881][ C2] the shortest dependencies between 2nd lock and 1st lock: [ 34.030109][ C2] -> (&p->alloc_lock){+.+.}-{2:2} { [ 34.030247][ C2] HARDIRQ-ON-W at: [ 34.030352][ C2] __lock_acquire+0x797/0x1570 [ 34.030524][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.030696][ C2] _raw_spin_lock+0x30/0x40 [ 34.030868][ C2] set_mems_allowed+0x1d/0x210 [ 34.031039][ C2] kernel_init_freeable+0x72/0x310 [ 34.031212][ C2] kernel_init+0x20/0x200 [ 34.031380][ C2] ret_from_fork+0x31/0x70 [ 34.031551][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.031721][ C2] SOFTIRQ-ON-W at: [ 34.031824][ C2] __lock_acquire+0x797/0x1570 [ 34.031993][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.032166][ C2] _raw_spin_lock+0x30/0x40 [ 34.032333][ C2] set_mems_allowed+0x1d/0x210 [ 34.032501][ C2] kernel_init_freeable+0x72/0x310 [ 34.032673][ C2] kernel_init+0x20/0x200 [ 34.032844][ C2] ret_from_fork+0x31/0x70 [ 34.033011][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.033180][ C2] INITIAL USE at: [ 34.033282][ C2] __lock_acquire+0x797/0x1570 [ 34.033450][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.033623][ C2] _raw_spin_lock+0x30/0x40 [ 34.033791][ C2] set_mems_allowed+0x1d/0x210 [ 34.033962][ C2] kernel_init_freeable+0x72/0x310 [ 34.034131][ C2] kernel_init+0x20/0x200 [ 34.034303][ C2] ret_from_fork+0x31/0x70 [ 34.034473][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.034641][ C2] } [ 34.034710][ C2] ... key at: [] __key.388+0x0/0x40 [ 34.034915][ C2] ... acquired at: [ 34.035017][ C2] __lock_acquire+0xaf0/0x1570 [ 34.035153][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.035289][ C2] _raw_spin_lock+0x30/0x40 [ 34.035423][ C2] __get_task_comm+0x27/0x70 [ 34.035576][ C2] ref_tracker_alloc+0x2ee/0x490 [ 34.035714][ C2] netdev_get_by_index+0x5e/0x80 [ 34.035852][ C2] fib6_nh_init+0x3d8/0x1580 [ 34.035999][ C2] ip6_route_info_create+0xf18/0x17d0 [ 34.036134][ C2] ip6_route_add+0x1c/0x140 [ 34.036269][ C2] addrconf_prefix_route+0x2a6/0x430 [ 34.036406][ C2] addrconf_permanent_addr+0x32f/0x670 [ 34.036541][ C2] addrconf_notify+0x749/0xd60 [ 34.036674][ C2] notifier_call_chain+0xcd/0x150 [ 34.036812][ C2] __dev_notify_flags+0xe6/0x250 [ 34.036948][ C2] dev_change_flags+0xec/0x160 [ 34.037084][ C2] do_setlink+0x7d6/0x21e0 [ 34.037221][ C2] __rtnl_newlink+0xaa7/0xd80 [ 34.037357][ C2] rtnl_newlink+0x63/0xa0 [ 34.037490][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.037623][ C2] netlink_rcv_skb+0x130/0x360 [ 34.037758][ C2] netlink_unicast+0x449/0x710 [ 34.037892][ C2] netlink_sendmsg+0x723/0xbe0 [ 34.038030][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 34.038166][ C2] ___sys_sendmsg+0xee/0x170 [ 34.038304][ C2] __sys_sendmsg+0xcd/0x170 [ 34.038439][ C2] do_syscall_64+0xc6/0x1e0 [ 34.038576][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.038749][ C2] [ 34.038817][ C2] -> (&ndev->lock){++-.}-{2:2} { [ 34.038957][ C2] HARDIRQ-ON-W at: [ 34.039059][ C2] __lock_acquire+0x797/0x1570 [ 34.039235][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.039407][ C2] _raw_write_lock_bh+0x38/0x50 [ 34.039576][ C2] addrconf_permanent_addr+0x6e/0x670 [ 34.039747][ C2] addrconf_notify+0x749/0xd60 [ 34.039920][ C2] notifier_call_chain+0xcd/0x150 [ 34.040088][ C2] __dev_notify_flags+0xe6/0x250 [ 34.040258][ C2] dev_change_flags+0xec/0x160 [ 34.040433][ C2] do_setlink+0x7d6/0x21e0 [ 34.040601][ C2] __rtnl_newlink+0xaa7/0xd80 [ 34.040769][ C2] rtnl_newlink+0x63/0xa0 [ 34.040940][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.041109][ C2] netlink_rcv_skb+0x130/0x360 [ 34.041276][ C2] netlink_unicast+0x449/0x710 [ 34.041444][ C2] netlink_sendmsg+0x723/0xbe0 [ 34.041620][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 34.041792][ C2] ___sys_sendmsg+0xee/0x170 [ 34.041960][ C2] __sys_sendmsg+0xcd/0x170 [ 34.042129][ C2] do_syscall_64+0xc6/0x1e0 [ 34.042297][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.042498][ C2] HARDIRQ-ON-R at: [ 34.042600][ C2] __lock_acquire+0x797/0x1570 [ 34.042772][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.042940][ C2] _raw_read_lock_bh+0x44/0x80 [ 34.043108][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.043277][ C2] inet6_fill_link_af+0x5e/0xe0 [ 34.043446][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 34.043613][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.043786][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.043987][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 34.044155][ C2] register_netdevice+0x1177/0x1690 [ 34.044338][ C2] register_netdev+0x20/0x40 [ 34.044505][ C2] vti6_init_net+0x25d/0x380 [ 34.044680][ C2] ops_init+0x9b/0x560 [ 34.044817][ C2] register_pernet_operations+0x2db/0x710 [ 34.045017][ C2] register_pernet_device+0x2a/0x60 [ 34.045184][ C2] vti6_tunnel_init+0x18/0x110 [ 34.045355][ C2] do_one_initcall+0x8d/0x1e0 [ 34.045531][ C2] do_initcalls+0x1b2/0x3e0 [ 34.045701][ C2] kernel_init_freeable+0x232/0x310 [ 34.045868][ C2] kernel_init+0x20/0x200 [ 34.046054][ C2] ret_from_fork+0x31/0x70 [ 34.046222][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.046389][ C2] IN-SOFTIRQ-W at: [ 34.046490][ C2] __lock_acquire+0x797/0x1570 [ 34.046661][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.046830][ C2] _raw_write_lock+0x30/0x40 [ 34.046997][ C2] addrconf_rs_timer+0xa9/0x730 [ 34.047172][ C2] call_timer_fn+0x13b/0x230 [ 34.047351][ C2] __run_timers+0x545/0x810 [ 34.047521][ C2] timer_expire_remote+0x9b/0xe0 [ 34.047691][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 34.047868][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 34.048036][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 34.048205][ C2] __do_softirq+0x1f8/0x5df [ 34.048381][ C2] irq_exit_rcu+0x97/0xc0 [ 34.048551][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.048756][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.048971][ C2] default_idle+0xf/0x20 [ 34.049139][ C2] default_idle_call+0x6d/0xb0 [ 34.049313][ C2] cpuidle_idle_call+0x1f4/0x280 [ 34.049482][ C2] do_idle+0xf9/0x160 [ 34.049618][ C2] cpu_startup_entry+0x54/0x60 [ 34.049791][ C2] start_secondary+0x21c/0x2b0 [ 34.049961][ C2] common_startup_64+0x12c/0x138 [ 34.050130][ C2] INITIAL USE at: [ 34.050314][ C2] __lock_acquire+0x797/0x1570 [ 34.050486][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.050655][ C2] _raw_write_lock_bh+0x38/0x50 [ 34.050909][ C2] addrconf_permanent_addr+0x6e/0x670 [ 34.051078][ C2] addrconf_notify+0x749/0xd60 [ 34.051249][ C2] notifier_call_chain+0xcd/0x150 [ 34.051417][ C2] __dev_notify_flags+0xe6/0x250 [ 34.051670][ C2] dev_change_flags+0xec/0x160 [ 34.051847][ C2] do_setlink+0x7d6/0x21e0 [ 34.052014][ C2] __rtnl_newlink+0xaa7/0xd80 [ 34.052262][ C2] rtnl_newlink+0x63/0xa0 [ 34.052430][ C2] rtnetlink_rcv_msg+0x2fb/0xbf0 [ 34.052596][ C2] netlink_rcv_skb+0x130/0x360 [ 34.052771][ C2] netlink_unicast+0x449/0x710 [ 34.053019][ C2] netlink_sendmsg+0x723/0xbe0 [ 34.053192][ C2] ____sys_sendmsg+0x7b2/0xa10 [ 34.053360][ C2] ___sys_sendmsg+0xee/0x170 [ 34.053620][ C2] __sys_sendmsg+0xcd/0x170 [ 34.053790][ C2] do_syscall_64+0xc6/0x1e0 [ 34.053958][ C2] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 34.054243][ C2] INITIAL READ USE at: [ 34.054344][ C2] __lock_acquire+0x797/0x1570 [ 34.054513][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.054682][ C2] _raw_read_lock_bh+0x44/0x80 [ 34.054935][ C2] inet6_fill_ifla6_attrs+0x516/0x740 [ 34.055136][ C2] inet6_fill_link_af+0x5e/0xe0 [ 34.055307][ C2] rtnl_fill_ifinfo+0x1615/0x2a90 [ 34.055490][ C2] rtmsg_ifinfo_build_skb+0x13c/0x240 [ 34.055697][ C2] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 34.055897][ C2] rtmsg_ifinfo+0x5b/0xa0 [ 34.056145][ C2] register_netdevice+0x1177/0x1690 [ 34.056346][ C2] register_netdev+0x20/0x40 [ 34.056514][ C2] vti6_init_net+0x25d/0x380 [ 34.056766][ C2] ops_init+0x9b/0x560 [ 34.056935][ C2] register_pernet_operations+0x2db/0x710 [ 34.057134][ C2] register_pernet_device+0x2a/0x60 [ 34.057349][ C2] vti6_tunnel_init+0x18/0x110 [ 34.057517][ C2] do_one_initcall+0x8d/0x1e0 [ 34.057688][ C2] do_initcalls+0x1b2/0x3e0 [ 34.057862][ C2] kernel_init_freeable+0x232/0x310 [ 34.058143][ C2] kernel_init+0x20/0x200 [ 34.058312][ C2] ret_from_fork+0x31/0x70 [ 34.058485][ C2] ret_from_fork_asm+0x1a/0x30 [ 34.058813][ C2] } [ 34.058882][ C2] ... key at: [] __key.37+0x0/0x40 [ 34.059086][ C2] ... acquired at: [ 34.059184][ C2] mark_lock+0x28d/0x3e0 [ 34.059398][ C2] mark_usage+0xd9/0x2a0 [ 34.059533][ C2] __lock_acquire+0x797/0x1570 [ 34.059665][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.059800][ C2] _raw_write_lock+0x30/0x40 [ 34.059939][ C2] addrconf_rs_timer+0xa9/0x730 [ 34.060152][ C2] call_timer_fn+0x13b/0x230 [ 34.060289][ C2] __run_timers+0x545/0x810 [ 34.060424][ C2] timer_expire_remote+0x9b/0xe0 [ 34.060559][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 34.060770][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 34.060907][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 34.061039][ C2] __do_softirq+0x1f8/0x5df [ 34.061173][ C2] irq_exit_rcu+0x97/0xc0 [ 34.061384][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.061553][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.061718][ C2] default_idle+0xf/0x20 [ 34.061851][ C2] default_idle_call+0x6d/0xb0 [ 34.062064][ C2] cpuidle_idle_call+0x1f4/0x280 [ 34.062197][ C2] do_idle+0xf9/0x160 [ 34.062298][ C2] cpu_startup_entry+0x54/0x60 [ 34.062432][ C2] start_secondary+0x21c/0x2b0 [ 34.062644][ C2] common_startup_64+0x12c/0x138 [ 34.062781][ C2] [ 34.062849][ C2] [ 34.062849][ C2] stack backtrace: [ 34.063013][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.9.0-rc1-virtme #1 [ 34.063288][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 34.063579][ C2] Call Trace: [ 34.063685][ C2] [ 34.063757][ C2] dump_stack_lvl+0x82/0xd0 [ 34.063977][ C2] print_irq_inversion_bug.part.0+0x3d9/0x570 [ 34.064143][ C2] ? kernel_text_address+0x17/0xe0 [ 34.064277][ C2] ? __pfx_print_irq_inversion_bug.part.0+0x10/0x10 [ 34.064441][ C2] ? __pfx_usage_skip+0x10/0x10 [ 34.064656][ C2] ? __pfx_usage_match+0x10/0x10 [ 34.064789][ C2] ? arch_stack_walk+0x8c/0xf0 [ 34.064924][ C2] mark_lock_irq+0x4cd/0xa10 [ 34.065057][ C2] ? common_startup_64+0x12c/0x138 [ 34.065274][ C2] ? __pfx_mark_lock_irq+0x10/0x10 [ 34.065407][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 34.065552][ C2] ? save_trace+0x8f/0x5b0 [ 34.065695][ C2] mark_lock+0x28d/0x3e0 [ 34.065801][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 34.066012][ C2] mark_usage+0xd9/0x2a0 [ 34.066114][ C2] __lock_acquire+0x797/0x1570 [ 34.066249][ C2] ? __pfx_validate_chain+0x10/0x10 [ 34.066387][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.066597][ C2] lock_acquire.part.0+0xeb/0x330 [ 34.066731][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.066863][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.066998][ C2] ? trace_lock_acquire+0x135/0x1c0 [ 34.067207][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.067339][ C2] ? lock_acquire+0x32/0xc0 [ 34.067471][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.067607][ C2] _raw_write_lock+0x30/0x40 [ 34.067738][ C2] ? addrconf_rs_timer+0xa9/0x730 [ 34.067953][ C2] addrconf_rs_timer+0xa9/0x730 [ 34.068084][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 34.068222][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.068355][ C2] ? call_timer_fn+0xe8/0x230 [ 34.068487][ C2] ? lock_acquire+0x32/0xc0 [ 34.068619][ C2] ? call_timer_fn+0xe8/0x230 [ 34.068754][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.068892][ C2] call_timer_fn+0x13b/0x230 [ 34.069181][ C2] ? call_timer_fn+0xe8/0x230 [ 34.069315][ C2] ? call_timer_fn+0xe8/0x230 [ 34.069447][ C2] ? __pfx_call_timer_fn+0x10/0x10 [ 34.069580][ C2] ? mark_lock+0x38/0x3e0 [ 34.069685][ C2] __run_timers+0x545/0x810 [ 34.069898][ C2] ? __pfx_addrconf_rs_timer+0x10/0x10 [ 34.070030][ C2] ? __pfx___run_timers+0x10/0x10 [ 34.070164][ C2] ? __lock_release+0x103/0x460 [ 34.070303][ C2] ? do_raw_spin_lock+0x131/0x270 [ 34.070436][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 34.070568][ C2] ? lock_acquire+0x32/0xc0 [ 34.070700][ C2] ? timer_expire_remote+0x93/0xe0 [ 34.070838][ C2] timer_expire_remote+0x9b/0xe0 [ 34.071048][ C2] tmigr_handle_remote_cpu+0x270/0x430 [ 34.071182][ C2] ? __pfx_tmigr_handle_remote_cpu+0x10/0x10 [ 34.071354][ C2] tmigr_handle_remote_up+0x19f/0x2e0 [ 34.071487][ C2] tmigr_handle_remote+0x21d/0x3a0 [ 34.071696][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 34.071836][ C2] __do_softirq+0x1f8/0x5df [ 34.071972][ C2] irq_exit_rcu+0x97/0xc0 [ 34.072073][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 34.072206][ C2] [ 34.072353][ C2] [ 34.072421][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 34.072591][ C2] RIP: 0010:default_idle+0xf/0x20 [ 34.072736][ 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 d3 fb 32 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.073285][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 34.073460][ C2] RAX: 00000000000fe44d RBX: 1ffff9200002bfc1 RCX: ffffffffa2b31ea5 [ 34.073742][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa02ac1d4 [ 34.073942][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 34.074141][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 34.074420][ C2] R13: ffff888001b8c5c0 R14: dffffc0000000000 R15: 0000000000000000 [ 34.074620][ C2] ? ct_kernel_exit.constprop.0+0xc5/0xf0 [ 34.074756][ C2] ? cpuidle_idle_call+0x1f4/0x280 [ 34.074968][ C2] default_idle_call+0x6d/0xb0 [ 34.075101][ C2] cpuidle_idle_call+0x1f4/0x280 [ 34.075232][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 34.075365][ C2] ? tsc_verify_tsc_adjust+0x5e/0x2b0 [ 34.075592][ C2] do_idle+0xf9/0x160 [ 34.075694][ C2] cpu_startup_entry+0x54/0x60 [ 34.075826][ C2] start_secondary+0x21c/0x2b0 [ 34.075961][ C2] ? __pfx_start_secondary+0x10/0x10 [ 34.076094][ C2] common_startup_64+0x12c/0x138 [ 34.076307][ C2]