[ 14.461089][ C2] [ 14.461239][ C2] ================================ [ 14.461444][ C2] WARNING: inconsistent lock state [ 14.461653][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 14.461867][ C2] -------------------------------- [ 14.462069][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.462331][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.462583][ C2] ffffffff941bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.462941][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.463148][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.463356][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.463562][ C2] _raw_spin_lock+0x33/0x40 [ 14.463772][ C2] simple_pin_fs+0x24/0x150 [ 14.463978][ C2] start_creating.part.0+0x3f/0x2f0 [ 14.464188][ C2] debugfs_create_dir+0x6a/0x540 [ 14.464391][ C2] component_debug_init+0x17/0x30 [ 14.464594][ C2] do_one_initcall+0x8c/0x1e0 [ 14.464802][ C2] do_initcalls+0x176/0x280 [ 14.465011][ C2] kernel_init_freeable+0x22d/0x300 [ 14.465214][ C2] kernel_init+0x20/0x200 [ 14.465418][ C2] ret_from_fork+0x31/0x70 [ 14.465626][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.465834][ C2] irq event stamp: 290406 [ 14.465993][ C2] hardirqs last enabled at (290406): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.466402][ C2] hardirqs last disabled at (290405): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.466810][ C2] softirqs last enabled at (289818): [] handle_softirqs+0x358/0x620 [ 14.467168][ C2] softirqs last disabled at (289825): [] __irq_exit_rcu+0xfa/0x160 [ 14.467526][ C2] [ 14.467526][ C2] other info that might help us debug this: [ 14.467829][ C2] Possible unsafe locking scenario: [ 14.467829][ C2] [ 14.468137][ C2] CPU0 [ 14.468294][ C2] ---- [ 14.468447][ C2] lock(pin_fs_lock); [ 14.468603][ C2] [ 14.468754][ C2] lock(pin_fs_lock); [ 14.468908][ C2] [ 14.468908][ C2] *** DEADLOCK *** [ 14.468908][ C2] [ 14.469224][ C2] 1 lock held by swapper/2/0: [ 14.469430][ C2] #0: ffffffff93f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.469811][ C2] [ 14.469811][ C2] stack backtrace: [ 14.470061][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.470065][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.470067][ C2] Call Trace: [ 14.470069][ C2] [ 14.470071][ C2] dump_stack_lvl+0x82/0xd0 [ 14.470076][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.470082][ C2] mark_lock_irq+0x343/0x400 [ 14.470087][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.470092][ C2] ? save_trace+0x52/0x170 [ 14.470096][ C2] mark_lock+0x174/0x2f0 [ 14.470100][ C2] mark_usage+0x46/0x150 [ 14.470103][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.470109][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.470112][ C2] ? simple_pin_fs+0x24/0x150 [ 14.470117][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.470122][ C2] ? lock_acquire+0x10c/0x170 [ 14.470125][ C2] ? simple_pin_fs+0x24/0x150 [ 14.470129][ C2] _raw_spin_lock+0x33/0x40 [ 14.470132][ C2] ? simple_pin_fs+0x24/0x150 [ 14.470136][ C2] simple_pin_fs+0x24/0x150 [ 14.470139][ C2] debugfs_remove+0x35/0x70 [ 14.470143][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.470148][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.470151][ C2] ? __sk_destruct+0x383/0x780 [ 14.470155][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.470158][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.470161][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.470163][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.470167][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.470170][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.470173][ C2] ? default_idle+0x9/0x10 [ 14.470175][ C2] ? default_idle_call+0x6d/0xb0 [ 14.470177][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.470180][ C2] ? do_idle+0xf6/0x160 [ 14.470183][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.470186][ C2] ? start_secondary+0x213/0x2a0 [ 14.470190][ C2] ? common_startup_64+0x13e/0x148 [ 14.470196][ C2] __put_net+0x19/0x60 [ 14.470200][ C2] __sk_destruct+0x58a/0x780 [ 14.470203][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.470206][ C2] rcu_do_batch+0x34c/0xf20 [ 14.470210][ C2] ? find_held_lock+0x2b/0x80 [ 14.470214][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.470217][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.470220][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.470224][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.470228][ C2] rcu_core+0x2bb/0x500 [ 14.470232][ C2] handle_softirqs+0x218/0x620 [ 14.470236][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.470238][ C2] irq_exit_rcu+0xe/0x30 [ 14.470240][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.470244][ C2] [ 14.470245][ C2] [ 14.470246][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.470249][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.470253][ C2] Code: b0 b8 00 c3 cc cc cc cc 0f 1f 00 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 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.470255][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.470259][ C2] RAX: 0000000000046c1f RBX: 1ffff92000028fc1 RCX: ffffffff92f55a19 [ 14.470261][ C2] RDX: 0000000000000000 RSI: ffffffff93a85f31 RDI: ffffffff93250ce0 [ 14.470263][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.470265][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.470266][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.470270][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.470275][ C2] default_idle+0x9/0x10 [ 14.470277][ C2] default_idle_call+0x6d/0xb0 [ 14.470280][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.470283][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.470287][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.470292][ C2] do_idle+0xf6/0x160 [ 14.470295][ C2] cpu_startup_entry+0x54/0x60 [ 14.470299][ C2] start_secondary+0x213/0x2a0 [ 14.470302][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.470307][ C2] common_startup_64+0x13e/0x148 [ 14.470313][ C2] [ 14.486766][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.487107][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 14.487448][ C2] preempt_count: 101, expected: 0 [ 14.487660][ C2] RCU nest depth: 0, expected: 0 [ 14.487860][ C2] INFO: lockdep is turned off. [ 14.488060][ C2] Preemption disabled at: [ 14.488061][ C2] [<0000000000000000>] 0x0 [ 14.488445][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.488449][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.488450][ C2] Call Trace: [ 14.488452][ C2] [ 14.488454][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.488460][ C2] __might_resched+0x360/0x5a0 [ 14.488466][ C2] down_write+0x72/0x210 [ 14.488469][ C2] ? __pfx_down_write+0x10/0x10 [ 14.488472][ C2] ? simple_recursive_removal+0x3a/0x860 [ 14.488476][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.488481][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.488485][ C2] simple_recursive_removal+0x166/0x860 [ 14.488488][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.488492][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.488496][ C2] debugfs_remove+0x44/0x70 [ 14.488499][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.488503][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.488506][ C2] ? __sk_destruct+0x383/0x780 [ 14.488511][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.488514][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.488517][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.488521][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.488525][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.488528][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.488531][ C2] ? default_idle+0x9/0x10 [ 14.488533][ C2] ? default_idle_call+0x6d/0xb0 [ 14.488536][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.488541][ C2] ? do_idle+0xf6/0x160 [ 14.488544][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.488547][ C2] ? start_secondary+0x213/0x2a0 [ 14.488551][ C2] ? common_startup_64+0x13e/0x148 [ 14.488557][ C2] __put_net+0x19/0x60 [ 14.488560][ C2] __sk_destruct+0x58a/0x780 [ 14.488567][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.488570][ C2] rcu_do_batch+0x34c/0xf20 [ 14.488574][ C2] ? find_held_lock+0x2b/0x80 [ 14.488578][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.488582][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.488586][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.488590][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.488594][ C2] rcu_core+0x2bb/0x500 [ 14.488597][ C2] handle_softirqs+0x218/0x620 [ 14.488602][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.488604][ C2] irq_exit_rcu+0xe/0x30 [ 14.488607][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.488610][ C2] [ 14.488611][ C2] [ 14.488613][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.488615][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.488619][ C2] Code: b0 b8 00 c3 cc cc cc cc 0f 1f 00 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 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.488621][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.488625][ C2] RAX: 0000000000046c1f RBX: 1ffff92000028fc1 RCX: ffffffff92f55a19 [ 14.488627][ C2] RDX: 0000000000000000 RSI: ffffffff93a85f31 RDI: ffffffff93250ce0 [ 14.488629][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.488630][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.488632][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.488636][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.488641][ C2] default_idle+0x9/0x10 [ 14.488643][ C2] default_idle_call+0x6d/0xb0 [ 14.488646][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.488649][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.488653][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.488658][ C2] do_idle+0xf6/0x160 [ 14.488662][ C2] cpu_startup_entry+0x54/0x60 [ 14.488665][ C2] start_secondary+0x213/0x2a0 [ 14.488669][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.488674][ C2] common_startup_64+0x13e/0x148 [ 14.488680][ C2] [ 16.138719][ T261] packetdrill (261) used greatest stack depth: 24600 bytes left [ 16.152839][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.153230][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 16.153580][ C0] preempt_count: 101, expected: 0 [ 16.153789][ C0] RCU nest depth: 0, expected: 0 [ 16.153995][ C0] INFO: lockdep is turned off. [ 16.154207][ C0] Preemption disabled at: [ 16.154209][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 16.154676][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.154682][ C0] Tainted: [W]=WARN [ 16.154683][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.154685][ C0] Call Trace: [ 16.154687][ C0] [ 16.154688][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.154694][ C0] __might_resched+0x360/0x5a0 [ 16.154700][ C0] down_write+0x72/0x210 [ 16.154704][ C0] ? __pfx_down_write+0x10/0x10 [ 16.154707][ C0] ? simple_recursive_removal+0x3a/0x860 [ 16.154711][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.154717][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.154722][ C0] simple_recursive_removal+0x166/0x860 [ 16.154724][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.154729][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.154733][ C0] debugfs_remove+0x44/0x70 [ 16.154736][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.154741][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.154744][ C0] ? __sk_destruct+0x383/0x780 [ 16.154749][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.154753][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.154756][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.154760][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.154764][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.154768][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.154771][ C0] ? default_idle+0x9/0x10 [ 16.154773][ C0] ? default_idle_call+0x6d/0xb0 [ 16.154775][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.154780][ C0] ? do_idle+0xf6/0x160 [ 16.154783][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.154786][ C0] ? rest_init+0x14b/0x260 [ 16.154788][ C0] ? start_kernel+0x350/0x410 [ 16.154793][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.154797][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.154802][ C0] __put_net+0x19/0x60 [ 16.154805][ C0] __sk_destruct+0x58a/0x780 [ 16.154809][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.154812][ C0] rcu_do_batch+0x34c/0xf20 [ 16.154817][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.154821][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.154825][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.154831][ C0] rcu_core+0x2bb/0x500 [ 16.154834][ C0] handle_softirqs+0x218/0x620 [ 16.154839][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.154841][ C0] irq_exit_rcu+0xe/0x30 [ 16.154843][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.154847][ C0] [ 16.154848][ C0] [ 16.154849][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.154852][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.154856][ C0] Code: b0 b8 00 c3 cc cc cc cc 0f 1f 00 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 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.154859][ C0] RSP: 0018:ffffffff93c07df8 EFLAGS: 00000246 [ 16.154863][ C0] RAX: 0000000000000000 RBX: 1ffffffff2780fc3 RCX: ffffffff92f55a19 [ 16.154865][ C0] RDX: ffffed1006c0667b RSI: ffffffff93250c60 RDI: ffffffff90784d8f [ 16.154867][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 16.154868][ C0] R10: ffff8880360333d3 R11: ffff88800a4dcb58 R12: 0000000000000000 [ 16.154870][ C0] R13: ffffffff93c1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.154874][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.154878][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.154883][ C0] default_idle+0x9/0x10 [ 16.154885][ C0] default_idle_call+0x6d/0xb0 [ 16.154887][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.154891][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.154895][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.154901][ C0] do_idle+0xf6/0x160 [ 16.154905][ C0] cpu_startup_entry+0x54/0x60 [ 16.154909][ C0] rest_init+0x14b/0x260 [ 16.154912][ C0] start_kernel+0x350/0x410 [ 16.154916][ C0] x86_64_start_reservations+0x18/0x30 [ 16.154920][ C0] x86_64_start_kernel+0xba/0x110 [ 16.154924][ C0] common_startup_64+0x13e/0x148 [ 16.154932][ C0]