[ 15.435502][ C3] [ 15.435640][ C3] ================================ [ 15.435817][ C3] WARNING: inconsistent lock state [ 15.436041][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 15.436221][ C3] -------------------------------- [ 15.436413][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.436631][ C3] ksoftirqd/3/32 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.436887][ C3] ffffffff8b1bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.437248][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.437438][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.437631][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.437822][ C3] _raw_spin_lock+0x33/0x40 [ 15.438048][ C3] simple_pin_fs+0x24/0x150 [ 15.438260][ C3] start_creating.part.0+0x3f/0x2f0 [ 15.438451][ C3] debugfs_create_dir+0x6a/0x540 [ 15.438642][ C3] component_debug_init+0x17/0x30 [ 15.438837][ C3] do_one_initcall+0x8f/0x1e0 [ 15.439042][ C3] do_initcalls+0x176/0x280 [ 15.439234][ C3] kernel_init_freeable+0x22d/0x300 [ 15.439426][ C3] kernel_init+0x20/0x200 [ 15.439615][ C3] ret_from_fork+0x31/0x70 [ 15.439859][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.440067][ C3] irq event stamp: 202500 [ 15.440214][ C3] hardirqs last enabled at (202500): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.440595][ C3] hardirqs last disabled at (202499): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.441022][ C3] softirqs last enabled at (201948): [] handle_softirqs+0x358/0x620 [ 15.441366][ C3] softirqs last disabled at (201953): [] run_ksoftirqd+0x3f/0x70 [ 15.441749][ C3] [ 15.441749][ C3] other info that might help us debug this: [ 15.442036][ C3] Possible unsafe locking scenario: [ 15.442036][ C3] [ 15.442319][ C3] CPU0 [ 15.442461][ C3] ---- [ 15.442637][ C3] lock(pin_fs_lock); [ 15.442797][ C3] [ 15.442941][ C3] lock(pin_fs_lock); [ 15.443128][ C3] [ 15.443128][ C3] *** DEADLOCK *** [ 15.443128][ C3] [ 15.443411][ C3] 1 lock held by ksoftirqd/3/32: [ 15.443633][ C3] #0: ffffffff8af749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.443983][ C3] [ 15.443983][ C3] stack backtrace: [ 15.444272][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.444278][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.444280][ C3] Call Trace: [ 15.444282][ C3] [ 15.444285][ C3] dump_stack_lvl+0x82/0xd0 [ 15.444292][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.444298][ C3] mark_lock_irq+0x343/0x400 [ 15.444302][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.444307][ C3] ? save_trace+0x52/0x170 [ 15.444313][ C3] mark_lock+0x174/0x2f0 [ 15.444317][ C3] mark_usage+0x46/0x150 [ 15.444319][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.444324][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.444327][ C3] ? simple_pin_fs+0x24/0x150 [ 15.444332][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.444336][ C3] ? lock_acquire+0x10c/0x170 [ 15.444338][ C3] ? simple_pin_fs+0x24/0x150 [ 15.444342][ C3] _raw_spin_lock+0x33/0x40 [ 15.444345][ C3] ? simple_pin_fs+0x24/0x150 [ 15.444348][ C3] simple_pin_fs+0x24/0x150 [ 15.444351][ C3] debugfs_remove+0x35/0x70 [ 15.444355][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.444361][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.444364][ C3] ? __sk_destruct+0x383/0x780 [ 15.444370][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.444374][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.444377][ C3] ? smpboot_thread_fn+0x307/0x960 [ 15.444382][ C3] ? kthread+0x37b/0x600 [ 15.444386][ C3] ? ret_from_fork+0x31/0x70 [ 15.444390][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 15.444394][ C3] ? migrate_enable+0x1f2/0x270 [ 15.444398][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 15.444403][ C3] __put_net+0x19/0x60 [ 15.444408][ C3] __sk_destruct+0x58a/0x780 [ 15.444414][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.444419][ C3] rcu_do_batch+0x34f/0xf20 [ 15.444428][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.444435][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.444440][ C3] ? note_gp_changes+0x182/0x1e0 [ 15.444444][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.444453][ C3] rcu_core+0x2bb/0x500 [ 15.444459][ C3] handle_softirqs+0x218/0x620 [ 15.444466][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.444473][ C3] run_ksoftirqd+0x3f/0x70 [ 15.444478][ C3] smpboot_thread_fn+0x307/0x960 [ 15.444484][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.444491][ C3] kthread+0x37b/0x600 [ 15.444496][ C3] ? __pfx_kthread+0x10/0x10 [ 15.444499][ C3] ? ret_from_fork+0x1b/0x70 [ 15.444502][ C3] ? __lock_release+0x5d/0x170 [ 15.444505][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.444508][ C3] ? __pfx_kthread+0x10/0x10 [ 15.444512][ C3] ret_from_fork+0x31/0x70 [ 15.444514][ C3] ? __pfx_kthread+0x10/0x10 [ 15.444518][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.444525][ C3] [ 15.455178][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.455490][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 15.455795][ C3] preempt_count: 100, expected: 0 [ 15.455970][ C3] RCU nest depth: 0, expected: 0 [ 15.456167][ C3] INFO: lockdep is turned off. [ 15.456341][ C3] Preemption disabled at: [ 15.456351][ C3] [] handle_softirqs+0xe5/0x620 [ 15.456719][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.456724][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.456727][ C3] Call Trace: [ 15.456728][ C3] [ 15.456731][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.456738][ C3] __might_resched+0x360/0x5a0 [ 15.456744][ C3] down_write+0x72/0x210 [ 15.456747][ C3] ? __pfx_down_write+0x10/0x10 [ 15.456750][ C3] ? simple_recursive_removal+0x3a/0x860 [ 15.456755][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.456759][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.456764][ C3] simple_recursive_removal+0x166/0x860 [ 15.456768][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.456772][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.456777][ C3] debugfs_remove+0x44/0x70 [ 15.456780][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.456786][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.456790][ C3] ? __sk_destruct+0x383/0x780 [ 15.456795][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.456799][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.456803][ C3] ? smpboot_thread_fn+0x307/0x960 [ 15.456807][ C3] ? kthread+0x37b/0x600 [ 15.456812][ C3] ? ret_from_fork+0x31/0x70 [ 15.456816][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 15.456820][ C3] ? migrate_enable+0x1f2/0x270 [ 15.456823][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 15.456828][ C3] __put_net+0x19/0x60 [ 15.456832][ C3] __sk_destruct+0x58a/0x780 [ 15.456837][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.456840][ C3] rcu_do_batch+0x34f/0xf20 [ 15.456845][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.456850][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.456852][ C3] ? note_gp_changes+0x182/0x1e0 [ 15.456855][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.456860][ C3] rcu_core+0x2bb/0x500 [ 15.456864][ C3] handle_softirqs+0x218/0x620 [ 15.456868][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.456872][ C3] run_ksoftirqd+0x3f/0x70 [ 15.456874][ C3] smpboot_thread_fn+0x307/0x960 [ 15.456878][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.456882][ C3] kthread+0x37b/0x600 [ 15.456885][ C3] ? __pfx_kthread+0x10/0x10 [ 15.456889][ C3] ? ret_from_fork+0x1b/0x70 [ 15.456891][ C3] ? __lock_release+0x5d/0x170 [ 15.456894][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.456897][ C3] ? __pfx_kthread+0x10/0x10 [ 15.456901][ C3] ret_from_fork+0x31/0x70 [ 15.456904][ C3] ? __pfx_kthread+0x10/0x10 [ 15.456907][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.456914][ C3]