[ 15.086346][ C2] [ 15.086499][ C2] ================================ [ 15.086709][ C2] WARNING: inconsistent lock state [ 15.086911][ C2] 6.15.0-virtme #1 Not tainted [ 15.087115][ C2] -------------------------------- [ 15.087321][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.087574][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.087833][ C2] ffffffffb83c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.088197][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.088396][ C2] __lock_acquire+0x20b/0x7e0 [ 15.088601][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.088800][ C2] _raw_spin_lock+0x33/0x40 [ 15.089003][ C2] simple_pin_fs+0x24/0x150 [ 15.089211][ C2] start_creating.part.0+0x52/0x310 [ 15.089409][ C2] debugfs_create_dir+0x6a/0x540 [ 15.089608][ C2] component_debug_init+0x17/0x30 [ 15.089811][ C2] do_one_initcall+0x8f/0x1e0 [ 15.090015][ C2] do_initcalls+0x176/0x280 [ 15.090214][ C2] kernel_init_freeable+0x22d/0x300 [ 15.090412][ C2] kernel_init+0x20/0x200 [ 15.090614][ C2] ret_from_fork+0x240/0x320 [ 15.090815][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.091012][ C2] irq event stamp: 299728 [ 15.091163][ C2] hardirqs last enabled at (299728): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.091560][ C2] hardirqs last disabled at (299727): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.091953][ C2] softirqs last enabled at (297598): [] handle_softirqs+0x358/0x620 [ 15.092301][ C2] softirqs last disabled at (297611): [] __irq_exit_rcu+0xfa/0x160 [ 15.092649][ C2] [ 15.092649][ C2] other info that might help us debug this: [ 15.092940][ C2] Possible unsafe locking scenario: [ 15.092940][ C2] [ 15.093240][ C2] CPU0 [ 15.093387][ C2] ---- [ 15.093533][ C2] lock(pin_fs_lock); [ 15.093687][ C2] [ 15.093835][ C2] lock(pin_fs_lock); [ 15.093989][ C2] [ 15.093989][ C2] *** DEADLOCK *** [ 15.093989][ C2] [ 15.094282][ C2] 1 lock held by swapper/2/0: [ 15.094480][ C2] #0: ffffffffb81774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.094834][ C2] [ 15.094834][ C2] stack backtrace: [ 15.095078][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.095083][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.095086][ C2] Call Trace: [ 15.095088][ C2] [ 15.095091][ C2] dump_stack_lvl+0x82/0xd0 [ 15.095098][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.095103][ C2] mark_lock_irq+0x343/0x400 [ 15.095107][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.095113][ C2] ? save_trace+0x52/0x170 [ 15.095121][ C2] mark_lock+0x174/0x2f0 [ 15.095125][ C2] mark_usage+0x46/0x150 [ 15.095128][ C2] __lock_acquire+0x20b/0x7e0 [ 15.095131][ C2] ? __lock_acquire+0x44d/0x7e0 [ 15.095135][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.095138][ C2] ? simple_pin_fs+0x24/0x150 [ 15.095143][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.095148][ C2] ? lock_acquire+0x10c/0x170 [ 15.095150][ C2] ? simple_pin_fs+0x24/0x150 [ 15.095155][ C2] _raw_spin_lock+0x33/0x40 [ 15.095158][ C2] ? simple_pin_fs+0x24/0x150 [ 15.095162][ C2] simple_pin_fs+0x24/0x150 [ 15.095166][ C2] debugfs_remove+0x35/0x70 [ 15.095169][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.095177][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.095180][ C2] ? __sk_destruct+0x383/0x780 [ 15.095188][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.095191][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.095194][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.095197][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.095201][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.095205][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.095208][ C2] ? default_idle+0x9/0x10 [ 15.095210][ C2] ? default_idle_call+0x6d/0xb0 [ 15.095213][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.095218][ C2] ? do_idle+0xf6/0x160 [ 15.095220][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.095222][ C2] ? start_secondary+0x213/0x2a0 [ 15.095226][ C2] ? common_startup_64+0x13e/0x148 [ 15.095235][ C2] __put_net+0x19/0x60 [ 15.095240][ C2] __sk_destruct+0x58a/0x780 [ 15.095244][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.095246][ C2] rcu_do_batch+0x34c/0xf20 [ 15.095250][ C2] ? find_held_lock+0x2b/0x80 [ 15.095254][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.095257][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.095261][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.095264][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.095269][ C2] rcu_core+0x2bb/0x500 [ 15.095274][ C2] handle_softirqs+0x218/0x620 [ 15.095279][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.095282][ C2] irq_exit_rcu+0xe/0x30 [ 15.095285][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.095289][ C2] [ 15.095290][ C2] [ 15.095291][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.095294][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.095298][ C2] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.095302][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000242 [ 15.095305][ C2] RAX: 0000000000048a89 RBX: 1ffff92000028fc1 RCX: ffffffffb71905d9 [ 15.095307][ C2] RDX: 0000000000000000 RSI: ffffffffb7c8f4e4 RDI: ffffffffb7453be0 [ 15.095309][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.095310][ C2] R10: ffff8880361337d3 R11: ffffffffb7e11288 R12: 0000000000000000 [ 15.095312][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.095316][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.095321][ C2] default_idle+0x9/0x10 [ 15.095323][ C2] default_idle_call+0x6d/0xb0 [ 15.095326][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.095329][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.095333][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.095338][ C2] do_idle+0xf6/0x160 [ 15.095341][ C2] cpu_startup_entry+0x54/0x60 [ 15.095344][ C2] start_secondary+0x213/0x2a0 [ 15.095347][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.095352][ C2] common_startup_64+0x13e/0x148 [ 15.095359][ C2] [ 15.111093][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.111439][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.111776][ C2] preempt_count: 101, expected: 0 [ 15.111971][ C2] RCU nest depth: 0, expected: 0 [ 15.112172][ C2] INFO: lockdep is turned off. [ 15.112369][ C2] Preemption disabled at: [ 15.112371][ C2] [<0000000000000000>] 0x0 [ 15.112731][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.112736][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.112738][ C2] Call Trace: [ 15.112739][ C2] [ 15.112741][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.112750][ C2] __might_resched+0x360/0x5a0 [ 15.112757][ C2] down_write+0x72/0x210 [ 15.112762][ C2] ? __pfx_down_write+0x10/0x10 [ 15.112765][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.112770][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.112775][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.112782][ C2] simple_recursive_removal+0x6a/0x610 [ 15.112785][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.112788][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.112794][ C2] debugfs_remove+0x44/0x70 [ 15.112797][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.112804][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.112808][ C2] ? __sk_destruct+0x383/0x780 [ 15.112814][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.112817][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.112821][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.112826][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.112831][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.112835][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.112838][ C2] ? default_idle+0x9/0x10 [ 15.112841][ C2] ? default_idle_call+0x6d/0xb0 [ 15.112843][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.112847][ C2] ? do_idle+0xf6/0x160 [ 15.112849][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.112852][ C2] ? start_secondary+0x213/0x2a0 [ 15.112855][ C2] ? common_startup_64+0x13e/0x148 [ 15.112864][ C2] __put_net+0x19/0x60 [ 15.112869][ C2] __sk_destruct+0x58a/0x780 [ 15.112873][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.112876][ C2] rcu_do_batch+0x34c/0xf20 [ 15.112879][ C2] ? find_held_lock+0x2b/0x80 [ 15.112885][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.112888][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.112894][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.112897][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.112902][ C2] rcu_core+0x2bb/0x500 [ 15.112907][ C2] handle_softirqs+0x218/0x620 [ 15.112912][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.112915][ C2] irq_exit_rcu+0xe/0x30 [ 15.112918][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.112921][ C2] [ 15.112922][ C2] [ 15.112924][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.112927][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.112931][ C2] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.112933][ C2] RSP: 0000:ffffc90000147de8 EFLAGS: 00000242 [ 15.112936][ C2] RAX: 0000000000048a89 RBX: 1ffff92000028fc1 RCX: ffffffffb71905d9 [ 15.112938][ C2] RDX: 0000000000000000 RSI: ffffffffb7c8f4e4 RDI: ffffffffb7453be0 [ 15.112940][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.112942][ C2] R10: ffff8880361337d3 R11: ffffffffb7e11288 R12: 0000000000000000 [ 15.112943][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.112947][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.112952][ C2] default_idle+0x9/0x10 [ 15.112954][ C2] default_idle_call+0x6d/0xb0 [ 15.112957][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.112960][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.112970][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.112974][ C2] do_idle+0xf6/0x160 [ 15.112977][ C2] cpu_startup_entry+0x54/0x60 [ 15.112980][ C2] start_secondary+0x213/0x2a0 [ 15.112983][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.112988][ C2] common_startup_64+0x13e/0x148 [ 15.112995][ C2] [ 16.777580][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.777967][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 16.778308][ C0] preempt_count: 101, expected: 0 [ 16.778517][ C0] RCU nest depth: 0, expected: 0 [ 16.778714][ C0] INFO: lockdep is turned off. [ 16.778913][ C0] Preemption disabled at: [ 16.778915][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 16.779364][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.779369][ C0] Tainted: [W]=WARN [ 16.779371][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.779372][ C0] Call Trace: [ 16.779375][ C0] [ 16.779377][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.779385][ C0] __might_resched+0x360/0x5a0 [ 16.779398][ C0] down_write+0x72/0x210 [ 16.779403][ C0] ? __pfx_down_write+0x10/0x10 [ 16.779406][ C0] ? simple_recursive_removal+0x33/0x610 [ 16.779413][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.779419][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.779428][ C0] simple_recursive_removal+0x6a/0x610 [ 16.779430][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.779434][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.779441][ C0] debugfs_remove+0x44/0x70 [ 16.779444][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.779453][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.779456][ C0] ? __sk_destruct+0x383/0x780 [ 16.779464][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.779468][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.779471][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.779477][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.779484][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.779489][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.779492][ C0] ? default_idle+0x9/0x10 [ 16.779495][ C0] ? default_idle_call+0x6d/0xb0 [ 16.779498][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.779502][ C0] ? do_idle+0xf6/0x160 [ 16.779505][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.779507][ C0] ? rest_init+0x14b/0x260 [ 16.779510][ C0] ? start_kernel+0x350/0x410 [ 16.779518][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.779523][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.779528][ C0] __put_net+0x19/0x60 [ 16.779533][ C0] __sk_destruct+0x58a/0x780 [ 16.779537][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.779539][ C0] rcu_do_batch+0x34c/0xf20 [ 16.779544][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.779547][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.779553][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.779561][ C0] rcu_core+0x2bb/0x500 [ 16.779567][ C0] handle_softirqs+0x218/0x620 [ 16.779572][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.779575][ C0] irq_exit_rcu+0xe/0x30 [ 16.779578][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.779582][ C0] [ 16.779583][ C0] [ 16.779585][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.779587][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.779591][ C0] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.779594][ C0] RSP: 0018:ffffffffb7e07df8 EFLAGS: 00000246 [ 16.779598][ C0] RAX: 0000000000000000 RBX: 1ffffffff6fc0fc3 RCX: ffffffffb71905d9 [ 16.779600][ C0] RDX: ffffed1006c066fb RSI: ffffffffb7453b60 RDI: ffffffffb498d18f [ 16.779602][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c066fa [ 16.779604][ C0] R10: ffff8880360337d3 R11: ffff888001becad8 R12: 0000000000000000 [ 16.779606][ C0] R13: ffffffffb7e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.779610][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.779613][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.779617][ C0] default_idle+0x9/0x10 [ 16.779619][ C0] default_idle_call+0x6d/0xb0 [ 16.779622][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.779625][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.779629][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.779636][ C0] do_idle+0xf6/0x160 [ 16.779639][ C0] cpu_startup_entry+0x54/0x60 [ 16.779642][ C0] rest_init+0x14b/0x260 [ 16.779645][ C0] start_kernel+0x350/0x410 [ 16.779649][ C0] x86_64_start_reservations+0x18/0x30 [ 16.779655][ C0] x86_64_start_kernel+0xf8/0x150 [ 16.779659][ C0] common_startup_64+0x13e/0x148 [ 16.779671][ C0]