[ 12.941556][ C3] [ 12.941750][ C3] ================================ [ 12.941923][ C3] WARNING: inconsistent lock state [ 12.942096][ C3] 6.15.0-virtme #1 Not tainted [ 12.942278][ C3] -------------------------------- [ 12.942447][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.942666][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.942880][ C3] ffffffff905c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.943187][ C3] {SOFTIRQ-ON-W} state was registered at: [ 12.943358][ C3] __lock_acquire+0x20b/0x7e0 [ 12.943537][ C3] lock_acquire.part.0+0xb6/0x240 [ 12.943711][ C3] _raw_spin_lock+0x33/0x40 [ 12.943890][ C3] simple_pin_fs+0x24/0x150 [ 12.944063][ C3] start_creating.part.0+0x52/0x310 [ 12.944238][ C3] debugfs_create_dir+0x6a/0x540 [ 12.944412][ C3] component_debug_init+0x17/0x30 [ 12.944586][ C3] do_one_initcall+0x8f/0x1e0 [ 12.944762][ C3] do_initcalls+0x176/0x280 [ 12.944939][ C3] kernel_init_freeable+0x22d/0x300 [ 12.945115][ C3] kernel_init+0x20/0x200 [ 12.945287][ C3] ret_from_fork+0x240/0x320 [ 12.945461][ C3] ret_from_fork_asm+0x1a/0x30 [ 12.945634][ C3] irq event stamp: 172480 [ 12.945767][ C3] hardirqs last enabled at (172480): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.946115][ C3] hardirqs last disabled at (172479): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.946474][ C3] softirqs last enabled at (172256): [] handle_softirqs+0x358/0x620 [ 12.946782][ C3] softirqs last disabled at (172261): [] run_ksoftirqd+0x3f/0x70 [ 12.947084][ C3] [ 12.947084][ C3] other info that might help us debug this: [ 12.947342][ C3] Possible unsafe locking scenario: [ 12.947342][ C3] [ 12.947596][ C3] CPU0 [ 12.947724][ C3] ---- [ 12.947854][ C3] lock(pin_fs_lock); [ 12.947992][ C3] [ 12.948125][ C3] lock(pin_fs_lock); [ 12.948259][ C3] [ 12.948259][ C3] *** DEADLOCK *** [ 12.948259][ C3] [ 12.948514][ C3] 1 lock held by ksoftirqd/3/32: [ 12.948688][ C3] #0: ffffffff903774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.949009][ C3] [ 12.949009][ C3] stack backtrace: [ 12.949224][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.949229][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.949231][ C3] Call Trace: [ 12.949232][ C3] [ 12.949235][ C3] dump_stack_lvl+0x82/0xd0 [ 12.949241][ C3] print_usage_bug.part.0+0x25f/0x360 [ 12.949245][ C3] mark_lock_irq+0x343/0x400 [ 12.949250][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.949255][ C3] ? save_trace+0x52/0x170 [ 12.949259][ C3] mark_lock+0x174/0x2f0 [ 12.949263][ C3] mark_usage+0x46/0x150 [ 12.949267][ C3] __lock_acquire+0x20b/0x7e0 [ 12.949270][ C3] ? __lock_acquire+0x44d/0x7e0 [ 12.949275][ C3] lock_acquire.part.0+0xb6/0x240 [ 12.949278][ C3] ? simple_pin_fs+0x24/0x150 [ 12.949281][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.949287][ C3] ? lock_acquire+0x10c/0x170 [ 12.949289][ C3] ? simple_pin_fs+0x24/0x150 [ 12.949293][ C3] _raw_spin_lock+0x33/0x40 [ 12.949296][ C3] ? simple_pin_fs+0x24/0x150 [ 12.949299][ C3] simple_pin_fs+0x24/0x150 [ 12.949302][ C3] debugfs_remove+0x35/0x70 [ 12.949305][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 12.949310][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.949312][ C3] ? __sk_destruct+0x383/0x780 [ 12.949317][ C3] ? rcu_do_batch+0x34c/0xf20 [ 12.949320][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.949323][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 12.949326][ C3] ? kthread+0x37e/0x600 [ 12.949329][ C3] ? ret_from_fork+0x240/0x320 [ 12.949332][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 12.949335][ C3] ? migrate_enable+0x1f2/0x270 [ 12.949339][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 12.949344][ C3] __put_net+0x19/0x60 [ 12.949349][ C3] __sk_destruct+0x58a/0x780 [ 12.949353][ C3] ? rcu_do_batch+0x34a/0xf20 [ 12.949356][ C3] rcu_do_batch+0x34c/0xf20 [ 12.949361][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.949365][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.949368][ C3] ? note_gp_changes+0x182/0x1e0 [ 12.949371][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.949377][ C3] rcu_core+0x2bb/0x500 [ 12.949382][ C3] handle_softirqs+0x218/0x620 [ 12.949386][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.949390][ C3] run_ksoftirqd+0x3f/0x70 [ 12.949393][ C3] smpboot_thread_fn+0x30a/0x960 [ 12.949396][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.949399][ C3] kthread+0x37e/0x600 [ 12.949402][ C3] ? __pfx_kthread+0x10/0x10 [ 12.949405][ C3] ? ret_from_fork+0x1b/0x320 [ 12.949407][ C3] ? __lock_release+0x5d/0x170 [ 12.949411][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.949414][ C3] ? __pfx_kthread+0x10/0x10 [ 12.949418][ C3] ret_from_fork+0x240/0x320 [ 12.949420][ C3] ? __pfx_kthread+0x10/0x10 [ 12.949423][ C3] ret_from_fork_asm+0x1a/0x30 [ 12.949429][ C3] [ 12.959184][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.959464][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 12.959739][ C3] preempt_count: 100, expected: 0 [ 12.959900][ C3] RCU nest depth: 0, expected: 0 [ 12.960058][ C3] INFO: lockdep is turned off. [ 12.960216][ C3] Preemption disabled at: [ 12.960218][ C3] [] handle_softirqs+0xe5/0x620 [ 12.960546][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.960551][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.960552][ C3] Call Trace: [ 12.960554][ C3] [ 12.960556][ C3] dump_stack_lvl+0xb0/0xd0 [ 12.960561][ C3] __might_resched+0x360/0x5a0 [ 12.960568][ C3] down_write+0x72/0x210 [ 12.960571][ C3] ? __pfx_down_write+0x10/0x10 [ 12.960574][ C3] ? simple_recursive_removal+0x33/0x610 [ 12.960578][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.960582][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 12.960586][ C3] simple_recursive_removal+0x6a/0x610 [ 12.960589][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 12.960591][ C3] ? __pfx_remove_one+0x10/0x10 [ 12.960597][ C3] debugfs_remove+0x44/0x70 [ 12.960600][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 12.960604][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.960606][ C3] ? __sk_destruct+0x383/0x780 [ 12.960611][ C3] ? rcu_do_batch+0x34c/0xf20 [ 12.960614][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.960617][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 12.960619][ C3] ? kthread+0x37e/0x600 [ 12.960621][ C3] ? ret_from_fork+0x240/0x320 [ 12.960625][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 12.960628][ C3] ? migrate_enable+0x1f2/0x270 [ 12.960632][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 12.960638][ C3] __put_net+0x19/0x60 [ 12.960641][ C3] __sk_destruct+0x58a/0x780 [ 12.960645][ C3] ? rcu_do_batch+0x34a/0xf20 [ 12.960648][ C3] rcu_do_batch+0x34c/0xf20 [ 12.960653][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.960657][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.960660][ C3] ? note_gp_changes+0x182/0x1e0 [ 12.960663][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.960668][ C3] rcu_core+0x2bb/0x500 [ 12.960673][ C3] handle_softirqs+0x218/0x620 [ 12.960677][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.960681][ C3] run_ksoftirqd+0x3f/0x70 [ 12.960684][ C3] smpboot_thread_fn+0x30a/0x960 [ 12.960687][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.960690][ C3] kthread+0x37e/0x600 [ 12.960693][ C3] ? __pfx_kthread+0x10/0x10 [ 12.960696][ C3] ? ret_from_fork+0x1b/0x320 [ 12.960699][ C3] ? __lock_release+0x5d/0x170 [ 12.960703][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.960706][ C3] ? __pfx_kthread+0x10/0x10 [ 12.960709][ C3] ret_from_fork+0x240/0x320 [ 12.960712][ C3] ? __pfx_kthread+0x10/0x10 [ 12.960715][ C3] ret_from_fork_asm+0x1a/0x30 [ 12.960721][ C3]