[ 14.265815][ C2] [ 14.266022][ C2] ================================ [ 14.266218][ C2] WARNING: inconsistent lock state [ 14.266410][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 14.266601][ C2] -------------------------------- [ 14.266791][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.267024][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.267262][ C2] ffffffffa67bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.267609][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.267801][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.267997][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.268190][ C2] _raw_spin_lock+0x33/0x40 [ 14.268379][ C2] simple_pin_fs+0x24/0x150 [ 14.268568][ C2] start_creating.part.0+0x3f/0x2f0 [ 14.268758][ C2] debugfs_create_dir+0x6a/0x540 [ 14.268948][ C2] component_debug_init+0x17/0x30 [ 14.269142][ C2] do_one_initcall+0x8c/0x1e0 [ 14.269333][ C2] do_initcalls+0x176/0x280 [ 14.269522][ C2] kernel_init_freeable+0x22d/0x300 [ 14.269713][ C2] kernel_init+0x20/0x200 [ 14.269904][ C2] ret_from_fork+0x31/0x70 [ 14.270097][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.270286][ C2] irq event stamp: 267314 [ 14.270426][ C2] hardirqs last enabled at (267314): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.270805][ C2] hardirqs last disabled at (267313): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.271179][ C2] softirqs last enabled at (266780): [] handle_softirqs+0x358/0x620 [ 14.271511][ C2] softirqs last disabled at (266793): [] __irq_exit_rcu+0xfa/0x160 [ 14.271843][ C2] [ 14.271843][ C2] other info that might help us debug this: [ 14.272113][ C2] Possible unsafe locking scenario: [ 14.272113][ C2] [ 14.272398][ C2] CPU0 [ 14.272548][ C2] ---- [ 14.272688][ C2] lock(pin_fs_lock); [ 14.272834][ C2] [ 14.272974][ C2] lock(pin_fs_lock); [ 14.273128][ C2] [ 14.273128][ C2] *** DEADLOCK *** [ 14.273128][ C2] [ 14.273406][ C2] 1 lock held by swapper/2/0: [ 14.273601][ C2] #0: ffffffffa6574480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.273942][ C2] [ 14.273942][ C2] stack backtrace: [ 14.274181][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.274185][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.274187][ C2] Call Trace: [ 14.274188][ C2] [ 14.274190][ C2] dump_stack_lvl+0x82/0xd0 [ 14.274197][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.274201][ C2] mark_lock_irq+0x343/0x400 [ 14.274206][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.274212][ C2] ? save_trace+0x52/0x170 [ 14.274216][ C2] mark_lock+0x174/0x2f0 [ 14.274220][ C2] mark_usage+0x46/0x150 [ 14.274223][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.274229][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.274233][ C2] ? simple_pin_fs+0x24/0x150 [ 14.274236][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.274242][ C2] ? lock_acquire+0x10c/0x170 [ 14.274245][ C2] ? simple_pin_fs+0x24/0x150 [ 14.274249][ C2] _raw_spin_lock+0x33/0x40 [ 14.274252][ C2] ? simple_pin_fs+0x24/0x150 [ 14.274255][ C2] simple_pin_fs+0x24/0x150 [ 14.274259][ C2] debugfs_remove+0x35/0x70 [ 14.274262][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.274267][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.274270][ C2] ? __sk_destruct+0x383/0x780 [ 14.274275][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.274278][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.274281][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.274284][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.274288][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.274291][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.274294][ C2] ? default_idle+0x9/0x10 [ 14.274296][ C2] ? default_idle_call+0x6d/0xb0 [ 14.274299][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.274303][ C2] ? do_idle+0xf6/0x160 [ 14.274306][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.274309][ C2] ? start_secondary+0x213/0x2a0 [ 14.274313][ C2] ? common_startup_64+0x13e/0x148 [ 14.274319][ C2] __put_net+0x19/0x60 [ 14.274323][ C2] __sk_destruct+0x58a/0x780 [ 14.274327][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.274330][ C2] rcu_do_batch+0x34c/0xf20 [ 14.274333][ C2] ? find_held_lock+0x2b/0x80 [ 14.274337][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.274341][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.274344][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.274348][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.274352][ C2] rcu_core+0x2bb/0x500 [ 14.274355][ C2] handle_softirqs+0x218/0x620 [ 14.274360][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.274362][ C2] irq_exit_rcu+0xe/0x30 [ 14.274364][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.274368][ C2] [ 14.274369][ C2] [ 14.274370][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.274373][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.274377][ 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.274379][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 14.274382][ C2] RAX: 0000000000041227 RBX: 1ffff92000028fc1 RCX: ffffffffa5555a19 [ 14.274385][ C2] RDX: 0000000000000000 RSI: ffffffffa6085f31 RDI: ffffffffa5850ce0 [ 14.274387][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.274388][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.274390][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.274394][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.274399][ C2] default_idle+0x9/0x10 [ 14.274401][ C2] default_idle_call+0x6d/0xb0 [ 14.274403][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.274407][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.274411][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.274416][ C2] do_idle+0xf6/0x160 [ 14.274420][ C2] cpu_startup_entry+0x54/0x60 [ 14.274423][ C2] start_secondary+0x213/0x2a0 [ 14.274426][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.274431][ C2] common_startup_64+0x13e/0x148 [ 14.274437][ C2] [ 14.289421][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.289750][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 14.290172][ C2] preempt_count: 101, expected: 0 [ 14.290470][ C2] RCU nest depth: 0, expected: 0 [ 14.290661][ C2] INFO: lockdep is turned off. [ 14.290855][ C2] Preemption disabled at: [ 14.290856][ C2] [<0000000000000000>] 0x0 [ 14.291201][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.291205][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.291206][ C2] Call Trace: [ 14.291208][ C2] [ 14.291210][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.291216][ C2] __might_resched+0x360/0x5a0 [ 14.291222][ C2] down_write+0x72/0x210 [ 14.291225][ C2] ? __pfx_down_write+0x10/0x10 [ 14.291228][ C2] ? simple_recursive_removal+0x3a/0x860 [ 14.291232][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.291238][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.291242][ C2] simple_recursive_removal+0x166/0x860 [ 14.291245][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.291249][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.291253][ C2] debugfs_remove+0x44/0x70 [ 14.291256][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.291260][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.291263][ C2] ? __sk_destruct+0x383/0x780 [ 14.291267][ C2] ? rcu_do_batch+0x34c/0xf20 [ 14.291271][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.291274][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.291277][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.291280][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.291284][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.291287][ C2] ? default_idle+0x9/0x10 [ 14.291289][ C2] ? default_idle_call+0x6d/0xb0 [ 14.291291][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.291295][ C2] ? do_idle+0xf6/0x160 [ 14.291298][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.291301][ C2] ? start_secondary+0x213/0x2a0 [ 14.291305][ C2] ? common_startup_64+0x13e/0x148 [ 14.291311][ C2] __put_net+0x19/0x60 [ 14.291314][ C2] __sk_destruct+0x58a/0x780 [ 14.291318][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.291320][ C2] rcu_do_batch+0x34c/0xf20 [ 14.291324][ C2] ? find_held_lock+0x2b/0x80 [ 14.291328][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.291332][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.291335][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.291339][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.291343][ C2] rcu_core+0x2bb/0x500 [ 14.291346][ C2] handle_softirqs+0x218/0x620 [ 14.291353][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.291356][ C2] irq_exit_rcu+0xe/0x30 [ 14.291358][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.291361][ C2] [ 14.291362][ C2] [ 14.291364][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.291366][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.291370][ 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.291373][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 14.291376][ C2] RAX: 0000000000041227 RBX: 1ffff92000028fc1 RCX: ffffffffa5555a19 [ 14.291378][ C2] RDX: 0000000000000000 RSI: ffffffffa6085f31 RDI: ffffffffa5850ce0 [ 14.291379][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.291381][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.291383][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.291386][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.291392][ C2] default_idle+0x9/0x10 [ 14.291394][ C2] default_idle_call+0x6d/0xb0 [ 14.291396][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.291400][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.291404][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.291409][ C2] do_idle+0xf6/0x160 [ 14.291413][ C2] cpu_startup_entry+0x54/0x60 [ 14.291416][ C2] start_secondary+0x213/0x2a0 [ 14.291420][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.291424][ C2] common_startup_64+0x13e/0x148 [ 14.291431][ C2] [ 15.845674][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.846060][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.846407][ C0] preempt_count: 101, expected: 0 [ 15.846603][ C0] RCU nest depth: 0, expected: 0 [ 15.846804][ C0] INFO: lockdep is turned off. [ 15.847000][ C0] Preemption disabled at: [ 15.847001][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.847452][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.847457][ C0] Tainted: [W]=WARN [ 15.847458][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.847461][ C0] Call Trace: [ 15.847462][ C0] [ 15.847464][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.847470][ C0] __might_resched+0x360/0x5a0 [ 15.847476][ C0] down_write+0x72/0x210 [ 15.847479][ C0] ? __pfx_down_write+0x10/0x10 [ 15.847482][ C0] ? simple_recursive_removal+0x3a/0x860 [ 15.847487][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.847492][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.847497][ C0] simple_recursive_removal+0x166/0x860 [ 15.847500][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.847504][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.847508][ C0] debugfs_remove+0x44/0x70 [ 15.847511][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.847516][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.847519][ C0] ? __sk_destruct+0x383/0x780 [ 15.847524][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.847528][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.847531][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.847535][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.847539][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.847543][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.847546][ C0] ? default_idle+0x9/0x10 [ 15.847548][ C0] ? default_idle_call+0x6d/0xb0 [ 15.847551][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.847555][ C0] ? do_idle+0xf6/0x160 [ 15.847558][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.847561][ C0] ? rest_init+0x14b/0x260 [ 15.847564][ C0] ? start_kernel+0x350/0x410 [ 15.847569][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 15.847573][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.847578][ C0] __put_net+0x19/0x60 [ 15.847581][ C0] __sk_destruct+0x58a/0x780 [ 15.847584][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.847587][ C0] rcu_do_batch+0x34c/0xf20 [ 15.847592][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.847596][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 15.847601][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.847606][ C0] rcu_core+0x2bb/0x500 [ 15.847609][ C0] handle_softirqs+0x218/0x620 [ 15.847614][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.847617][ C0] irq_exit_rcu+0xe/0x30 [ 15.847619][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.847623][ C0] [ 15.847624][ C0] [ 15.847625][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.847628][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.847631][ 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 [ 15.847634][ C0] RSP: 0018:ffffffffa6207df8 EFLAGS: 00000246 [ 15.847638][ C0] RAX: 0000000000000000 RBX: 1ffffffff4c40fc3 RCX: ffffffffa5555a19 [ 15.847640][ C0] RDX: ffffed1006c0667b RSI: ffffffffa5850c60 RDI: ffffffffa2d84d8f [ 15.847641][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 15.847643][ C0] R10: ffff8880360333d3 R11: ffff88800aeb0558 R12: 0000000000000000 [ 15.847645][ C0] R13: ffffffffa621f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.847649][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.847653][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.847657][ C0] default_idle+0x9/0x10 [ 15.847659][ C0] default_idle_call+0x6d/0xb0 [ 15.847662][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.847665][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.847670][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.847677][ C0] do_idle+0xf6/0x160 [ 15.847681][ C0] cpu_startup_entry+0x54/0x60 [ 15.847684][ C0] rest_init+0x14b/0x260 [ 15.847687][ C0] start_kernel+0x350/0x410 [ 15.847691][ C0] x86_64_start_reservations+0x18/0x30 [ 15.847695][ C0] x86_64_start_kernel+0xba/0x110 [ 15.847699][ C0] common_startup_64+0x13e/0x148 [ 15.847707][ C0]