[ 15.953448][ C0] [ 15.953650][ C0] ================================ [ 15.953837][ C0] WARNING: inconsistent lock state [ 15.954023][ C0] 6.15.0-virtme #1 Not tainted [ 15.954209][ C0] -------------------------------- [ 15.954391][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.954621][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.954851][ C0] ffffffffb13c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.955178][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.955362][ C0] __lock_acquire+0x20b/0x7e0 [ 15.955565][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.955754][ C0] _raw_spin_lock+0x33/0x40 [ 15.955943][ C0] simple_pin_fs+0x24/0x150 [ 15.956128][ C0] start_creating.part.0+0x52/0x310 [ 15.956319][ C0] debugfs_create_dir+0x6a/0x540 [ 15.956501][ C0] component_debug_init+0x17/0x30 [ 15.956686][ C0] do_one_initcall+0x8f/0x1e0 [ 15.956877][ C0] do_initcalls+0x176/0x280 [ 15.957064][ C0] kernel_init_freeable+0x22d/0x300 [ 15.957249][ C0] kernel_init+0x20/0x200 [ 15.957438][ C0] ret_from_fork+0x240/0x320 [ 15.957624][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.957810][ C0] irq event stamp: 200036 [ 15.957952][ C0] hardirqs last enabled at (200036): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.958315][ C0] hardirqs last disabled at (200035): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.958677][ C0] softirqs last enabled at (199046): [] handle_softirqs+0x358/0x620 [ 15.959002][ C0] softirqs last disabled at (199049): [] run_ksoftirqd+0x3f/0x70 [ 15.959328][ C0] [ 15.959328][ C0] other info that might help us debug this: [ 15.959599][ C0] Possible unsafe locking scenario: [ 15.959599][ C0] [ 15.959868][ C0] CPU0 [ 15.960010][ C0] ---- [ 15.960148][ C0] lock(pin_fs_lock); [ 15.960292][ C0] [ 15.960431][ C0] lock(pin_fs_lock); [ 15.960571][ C0] [ 15.960571][ C0] *** DEADLOCK *** [ 15.960571][ C0] [ 15.960842][ C0] 1 lock held by ksoftirqd/0/14: [ 15.961028][ C0] #0: ffffffffb11774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.961357][ C0] [ 15.961357][ C0] stack backtrace: [ 15.961586][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.961590][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.961592][ C0] Call Trace: [ 15.961594][ C0] [ 15.961597][ C0] dump_stack_lvl+0x82/0xd0 [ 15.961603][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.961608][ C0] mark_lock_irq+0x343/0x400 [ 15.961612][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.961617][ C0] ? save_trace+0x52/0x170 [ 15.961623][ C0] mark_lock+0x174/0x2f0 [ 15.961626][ C0] mark_usage+0x46/0x150 [ 15.961629][ C0] __lock_acquire+0x20b/0x7e0 [ 15.961633][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.961637][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.961640][ C0] ? simple_pin_fs+0x24/0x150 [ 15.961644][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.961648][ C0] ? lock_acquire+0x10c/0x170 [ 15.961650][ C0] ? simple_pin_fs+0x24/0x150 [ 15.961655][ C0] _raw_spin_lock+0x33/0x40 [ 15.961658][ C0] ? simple_pin_fs+0x24/0x150 [ 15.961661][ C0] simple_pin_fs+0x24/0x150 [ 15.961665][ C0] debugfs_remove+0x35/0x70 [ 15.961668][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.961674][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.961678][ C0] ? __sk_destruct+0x383/0x780 [ 15.961683][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.961686][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.961689][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 15.961694][ C0] ? kthread+0x37e/0x600 [ 15.961696][ C0] ? ret_from_fork+0x240/0x320 [ 15.961699][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 15.961702][ C0] ? migrate_enable+0x1f2/0x270 [ 15.961706][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 15.961712][ C0] __put_net+0x19/0x60 [ 15.961715][ C0] __sk_destruct+0x58a/0x780 [ 15.961719][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.961722][ C0] rcu_do_batch+0x34c/0xf20 [ 15.961725][ C0] ? sched_balance_domains+0x273/0xc80 [ 15.961730][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.961733][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.961736][ C0] ? note_gp_changes+0x182/0x1e0 [ 15.961739][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.961743][ C0] rcu_core+0x2bb/0x500 [ 15.961748][ C0] handle_softirqs+0x218/0x620 [ 15.961752][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.961755][ C0] run_ksoftirqd+0x3f/0x70 [ 15.961758][ C0] smpboot_thread_fn+0x30a/0x960 [ 15.961762][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.961766][ C0] kthread+0x37e/0x600 [ 15.961769][ C0] ? __pfx_kthread+0x10/0x10 [ 15.961771][ C0] ? ret_from_fork+0x1b/0x320 [ 15.961773][ C0] ? __lock_release+0x5d/0x170 [ 15.961777][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.961780][ C0] ? __pfx_kthread+0x10/0x10 [ 15.961783][ C0] ret_from_fork+0x240/0x320 [ 15.961785][ C0] ? __pfx_kthread+0x10/0x10 [ 15.961788][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.961795][ C0] [ 15.971656][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.971937][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 15.972210][ C0] preempt_count: 100, expected: 0 [ 15.972367][ C0] RCU nest depth: 0, expected: 0 [ 15.972530][ C0] INFO: lockdep is turned off. [ 15.972688][ C0] Preemption disabled at: [ 15.972689][ C0] [] handle_softirqs+0xe5/0x620 [ 15.973012][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.973016][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.973018][ C0] Call Trace: [ 15.973020][ C0] [ 15.973021][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.973027][ C0] __might_resched+0x360/0x5a0 [ 15.973033][ C0] down_write+0x72/0x210 [ 15.973036][ C0] ? __pfx_down_write+0x10/0x10 [ 15.973039][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.973043][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.973047][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.973052][ C0] simple_recursive_removal+0x6a/0x610 [ 15.973055][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.973058][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.973063][ C0] debugfs_remove+0x44/0x70 [ 15.973066][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.973071][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.973074][ C0] ? __sk_destruct+0x383/0x780 [ 15.973078][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.973081][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.973084][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 15.973088][ C0] ? kthread+0x37e/0x600 [ 15.973091][ C0] ? ret_from_fork+0x240/0x320 [ 15.973094][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 15.973098][ C0] ? migrate_enable+0x1f2/0x270 [ 15.973101][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 15.973107][ C0] __put_net+0x19/0x60 [ 15.973110][ C0] __sk_destruct+0x58a/0x780 [ 15.973114][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.973117][ C0] rcu_do_batch+0x34c/0xf20 [ 15.973120][ C0] ? sched_balance_domains+0x273/0xc80 [ 15.973124][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.973128][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.973130][ C0] ? note_gp_changes+0x182/0x1e0 [ 15.973133][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.973138][ C0] rcu_core+0x2bb/0x500 [ 15.973141][ C0] handle_softirqs+0x218/0x620 [ 15.973145][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.973149][ C0] run_ksoftirqd+0x3f/0x70 [ 15.973152][ C0] smpboot_thread_fn+0x30a/0x960 [ 15.973156][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.973160][ C0] kthread+0x37e/0x600 [ 15.973163][ C0] ? __pfx_kthread+0x10/0x10 [ 15.973165][ C0] ? ret_from_fork+0x1b/0x320 [ 15.973167][ C0] ? __lock_release+0x5d/0x170 [ 15.973171][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.973174][ C0] ? __pfx_kthread+0x10/0x10 [ 15.973177][ C0] ret_from_fork+0x240/0x320 [ 15.973179][ C0] ? __pfx_kthread+0x10/0x10 [ 15.973182][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.973189][ C0] [ 18.229351][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.229824][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 18.230143][ C2] preempt_count: 101, expected: 0 [ 18.230330][ C2] RCU nest depth: 0, expected: 0 [ 18.230521][ C2] INFO: lockdep is turned off. [ 18.230709][ C2] Preemption disabled at: [ 18.230710][ C2] [<0000000000000000>] 0x0 [ 18.231042][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 18.231048][ C2] Tainted: [W]=WARN [ 18.231050][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.231052][ C2] Call Trace: [ 18.231054][ C2] [ 18.231056][ C2] dump_stack_lvl+0xb0/0xd0 [ 18.231064][ C2] __might_resched+0x360/0x5a0 [ 18.231071][ C2] down_write+0x72/0x210 [ 18.231076][ C2] ? __pfx_down_write+0x10/0x10 [ 18.231079][ C2] ? simple_recursive_removal+0x33/0x610 [ 18.231083][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.231088][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.231094][ C2] simple_recursive_removal+0x6a/0x610 [ 18.231097][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.231101][ C2] ? __pfx_remove_one+0x10/0x10 [ 18.231106][ C2] debugfs_remove+0x44/0x70 [ 18.231109][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 18.231116][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.231119][ C2] ? __sk_destruct+0x383/0x780 [ 18.231124][ C2] ? rcu_do_batch+0x34c/0xf20 [ 18.231128][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.231131][ C2] ? irq_exit_rcu+0xe/0x30 [ 18.231136][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.231142][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.231146][ C2] ? pv_native_safe_halt+0xf/0x20 [ 18.231149][ C2] ? default_idle+0x9/0x10 [ 18.231152][ C2] ? default_idle_call+0x6d/0xb0 [ 18.231154][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.231158][ C2] ? do_idle+0xf6/0x160 [ 18.231160][ C2] ? cpu_startup_entry+0x54/0x60 [ 18.231162][ C2] ? start_secondary+0x213/0x2a0 [ 18.231166][ C2] ? common_startup_64+0x13e/0x148 [ 18.231172][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.231176][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.231180][ C2] __put_net+0x19/0x60 [ 18.231184][ C2] __sk_destruct+0x58a/0x780 [ 18.231188][ C2] ? rcu_do_batch+0x34a/0xf20 [ 18.231190][ C2] rcu_do_batch+0x34c/0xf20 [ 18.231195][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.231198][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.231204][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.231210][ C2] rcu_core+0x2bb/0x500 [ 18.231215][ C2] handle_softirqs+0x218/0x620 [ 18.231220][ C2] __irq_exit_rcu+0xfa/0x160 [ 18.231223][ C2] irq_exit_rcu+0xe/0x30 [ 18.231226][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.231230][ C2] [ 18.231231][ C2] [ 18.231232][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.231235][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.231239][ C2] Code: a2 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 47 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 [ 18.231242][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 18.231245][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffb018f5d9 [ 18.231248][ C2] RDX: ffffed1006c266fb RSI: ffffffffb0453b60 RDI: ffffffffad98d18f [ 18.231249][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 18.231251][ C2] R10: ffff8880361337d3 R11: ffff888001ee2818 R12: 0000000000000000 [ 18.231253][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 18.231257][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.231260][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.231263][ C2] default_idle+0x9/0x10 [ 18.231266][ C2] default_idle_call+0x6d/0xb0 [ 18.231269][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 18.231272][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.231275][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 18.231280][ C2] do_idle+0xf6/0x160 [ 18.231283][ C2] cpu_startup_entry+0x54/0x60 [ 18.231286][ C2] start_secondary+0x213/0x2a0 [ 18.231289][ C2] ? __pfx_start_secondary+0x10/0x10 [ 18.231293][ C2] common_startup_64+0x13e/0x148 [ 18.231300][ C2]