[ 12.563373][ C3] [ 12.563495][ C3] ================================ [ 12.563667][ C3] WARNING: inconsistent lock state [ 12.563841][ C3] 6.15.0-virtme #1 Not tainted [ 12.564013][ C3] -------------------------------- [ 12.564183][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.564398][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.564610][ C3] ffffffffa85c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.564915][ C3] {SOFTIRQ-ON-W} state was registered at: [ 12.565084][ C3] __lock_acquire+0x20b/0x7e0 [ 12.565259][ C3] lock_acquire.part.0+0xb6/0x240 [ 12.565433][ C3] _raw_spin_lock+0x33/0x40 [ 12.565606][ C3] simple_pin_fs+0x24/0x150 [ 12.565773][ C3] start_creating.part.0+0x52/0x310 [ 12.565948][ C3] debugfs_create_dir+0x6a/0x540 [ 12.566116][ C3] component_debug_init+0x17/0x30 [ 12.566286][ C3] do_one_initcall+0x8f/0x1e0 [ 12.566468][ C3] do_initcalls+0x176/0x280 [ 12.566640][ C3] kernel_init_freeable+0x22d/0x300 [ 12.566814][ C3] kernel_init+0x20/0x200 [ 12.566985][ C3] ret_from_fork+0x240/0x320 [ 12.567157][ C3] ret_from_fork_asm+0x1a/0x30 [ 12.567325][ C3] irq event stamp: 216202 [ 12.567456][ C3] hardirqs last enabled at (216202): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.567798][ C3] hardirqs last disabled at (216201): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.568140][ C3] softirqs last enabled at (216152): [] handle_softirqs+0x358/0x620 [ 12.568439][ C3] softirqs last disabled at (216157): [] run_ksoftirqd+0x3f/0x70 [ 12.568742][ C3] [ 12.568742][ C3] other info that might help us debug this: [ 12.568989][ C3] Possible unsafe locking scenario: [ 12.568989][ C3] [ 12.569239][ C3] CPU0 [ 12.569365][ C3] ---- [ 12.569492][ C3] lock(pin_fs_lock); [ 12.569625][ C3] [ 12.569754][ C3] lock(pin_fs_lock); [ 12.569887][ C3] [ 12.569887][ C3] *** DEADLOCK *** [ 12.569887][ C3] [ 12.570136][ C3] 1 lock held by ksoftirqd/3/32: [ 12.570309][ C3] #0: ffffffffa83774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.570616][ C3] [ 12.570616][ C3] stack backtrace: [ 12.570828][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.570832][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.570834][ C3] Call Trace: [ 12.570836][ C3] [ 12.570839][ C3] dump_stack_lvl+0x82/0xd0 [ 12.570845][ C3] print_usage_bug.part.0+0x25f/0x360 [ 12.570849][ C3] mark_lock_irq+0x343/0x400 [ 12.570854][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.570859][ C3] ? save_trace+0x52/0x170 [ 12.570863][ C3] mark_lock+0x174/0x2f0 [ 12.570867][ C3] mark_usage+0x46/0x150 [ 12.570870][ C3] __lock_acquire+0x20b/0x7e0 [ 12.570874][ C3] ? __lock_acquire+0x44d/0x7e0 [ 12.570878][ C3] lock_acquire.part.0+0xb6/0x240 [ 12.570881][ C3] ? simple_pin_fs+0x24/0x150 [ 12.570885][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.570889][ C3] ? lock_acquire+0x10c/0x170 [ 12.570892][ C3] ? simple_pin_fs+0x24/0x150 [ 12.570896][ C3] _raw_spin_lock+0x33/0x40 [ 12.570899][ C3] ? simple_pin_fs+0x24/0x150 [ 12.570901][ C3] simple_pin_fs+0x24/0x150 [ 12.570905][ C3] debugfs_remove+0x35/0x70 [ 12.570908][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 12.570913][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.570915][ C3] ? __sk_destruct+0x383/0x780 [ 12.570921][ C3] ? rcu_do_batch+0x34c/0xf20 [ 12.570924][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.570927][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 12.570930][ C3] ? kthread+0x37e/0x600 [ 12.570933][ C3] ? ret_from_fork+0x240/0x320 [ 12.570937][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 12.570939][ C3] ? migrate_enable+0x1f2/0x270 [ 12.570943][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 12.570949][ C3] __put_net+0x19/0x60 [ 12.570953][ C3] __sk_destruct+0x58a/0x780 [ 12.570957][ C3] ? rcu_do_batch+0x34a/0xf20 [ 12.570960][ C3] rcu_do_batch+0x34c/0xf20 [ 12.570963][ C3] ? __schedule+0x87b/0x1b00 [ 12.570968][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.570972][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.570975][ C3] ? note_gp_changes+0x182/0x1e0 [ 12.570978][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.570984][ C3] rcu_core+0x2bb/0x500 [ 12.570989][ C3] handle_softirqs+0x218/0x620 [ 12.570993][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.570997][ C3] run_ksoftirqd+0x3f/0x70 [ 12.571000][ C3] smpboot_thread_fn+0x30a/0x960 [ 12.571003][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.571006][ C3] kthread+0x37e/0x600 [ 12.571009][ C3] ? __pfx_kthread+0x10/0x10 [ 12.571011][ C3] ? ret_from_fork+0x1b/0x320 [ 12.571014][ C3] ? __lock_release+0x5d/0x170 [ 12.571018][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.571021][ C3] ? __pfx_kthread+0x10/0x10 [ 12.571025][ C3] ret_from_fork+0x240/0x320 [ 12.571028][ C3] ? __pfx_kthread+0x10/0x10 [ 12.571031][ C3] ret_from_fork_asm+0x1a/0x30 [ 12.571037][ C3] [ 12.580999][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.581286][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 12.581555][ C3] preempt_count: 100, expected: 0 [ 12.581710][ C3] RCU nest depth: 0, expected: 0 [ 12.581869][ C3] INFO: lockdep is turned off. [ 12.582024][ C3] Preemption disabled at: [ 12.582026][ C3] [] handle_softirqs+0xe5/0x620 [ 12.582357][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.582361][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.582363][ C3] Call Trace: [ 12.582365][ C3] [ 12.582367][ C3] dump_stack_lvl+0xb0/0xd0 [ 12.582374][ C3] __might_resched+0x360/0x5a0 [ 12.582381][ C3] down_write+0x72/0x210 [ 12.582385][ C3] ? __pfx_down_write+0x10/0x10 [ 12.582388][ C3] ? simple_recursive_removal+0x33/0x610 [ 12.582393][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.582399][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 12.582403][ C3] simple_recursive_removal+0x6a/0x610 [ 12.582406][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 12.582408][ C3] ? __pfx_remove_one+0x10/0x10 [ 12.582414][ C3] debugfs_remove+0x44/0x70 [ 12.582418][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 12.582422][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.582425][ C3] ? __sk_destruct+0x383/0x780 [ 12.582430][ C3] ? rcu_do_batch+0x34c/0xf20 [ 12.582434][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.582437][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 12.582440][ C3] ? kthread+0x37e/0x600 [ 12.582443][ C3] ? ret_from_fork+0x240/0x320 [ 12.582447][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 12.582451][ C3] ? migrate_enable+0x1f2/0x270 [ 12.582455][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 12.582461][ C3] __put_net+0x19/0x60 [ 12.582465][ C3] __sk_destruct+0x58a/0x780 [ 12.582469][ C3] ? rcu_do_batch+0x34a/0xf20 [ 12.582472][ C3] rcu_do_batch+0x34c/0xf20 [ 12.582475][ C3] ? __schedule+0x87b/0x1b00 [ 12.582481][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.582484][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.582487][ C3] ? note_gp_changes+0x182/0x1e0 [ 12.582490][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.582496][ C3] rcu_core+0x2bb/0x500 [ 12.582500][ C3] handle_softirqs+0x218/0x620 [ 12.582505][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.582509][ C3] run_ksoftirqd+0x3f/0x70 [ 12.582512][ C3] smpboot_thread_fn+0x30a/0x960 [ 12.582515][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.582518][ C3] kthread+0x37e/0x600 [ 12.582521][ C3] ? __pfx_kthread+0x10/0x10 [ 12.582523][ C3] ? ret_from_fork+0x1b/0x320 [ 12.582526][ C3] ? __lock_release+0x5d/0x170 [ 12.582531][ C3] ? rcu_is_watching+0x12/0xc0 [ 12.582535][ C3] ? __pfx_kthread+0x10/0x10 [ 12.582538][ C3] ret_from_fork+0x240/0x320 [ 12.582541][ C3] ? __pfx_kthread+0x10/0x10 [ 12.582544][ C3] ret_from_fork_asm+0x1a/0x30 [ 12.582550][ C3]