[ 13.162959][ C1] [ 13.163092][ C1] ================================ [ 13.163276][ C1] WARNING: inconsistent lock state [ 13.163454][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 13.163634][ C1] -------------------------------- [ 13.163809][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.164033][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.164252][ C1] ffffffff925bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.164570][ C1] {SOFTIRQ-ON-W} state was registered at: [ 13.164749][ C1] __lock_acquire+0x3eb/0x9d0 [ 13.164931][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.165109][ C1] _raw_spin_lock+0x33/0x40 [ 13.165293][ C1] simple_pin_fs+0x24/0x150 [ 13.165468][ C1] start_creating.part.0+0x3f/0x2f0 [ 13.165646][ C1] debugfs_create_dir+0x6a/0x540 [ 13.165825][ C1] component_debug_init+0x17/0x30 [ 13.166005][ C1] do_one_initcall+0x8f/0x1e0 [ 13.166187][ C1] do_initcalls+0x176/0x280 [ 13.166370][ C1] kernel_init_freeable+0x22d/0x300 [ 13.166548][ C1] kernel_init+0x20/0x200 [ 13.166727][ C1] ret_from_fork+0x31/0x70 [ 13.166917][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.167095][ C1] irq event stamp: 242190 [ 13.167229][ C1] hardirqs last enabled at (242190): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.167599][ C1] hardirqs last disabled at (242189): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.167954][ C1] softirqs last enabled at (241818): [] handle_softirqs+0x358/0x620 [ 13.168268][ C1] softirqs last disabled at (241823): [] run_ksoftirqd+0x3f/0x70 [ 13.168575][ C1] [ 13.168575][ C1] other info that might help us debug this: [ 13.168836][ C1] Possible unsafe locking scenario: [ 13.168836][ C1] [ 13.169096][ C1] CPU0 [ 13.169230][ C1] ---- [ 13.169360][ C1] lock(pin_fs_lock); [ 13.169496][ C1] [ 13.169629][ C1] lock(pin_fs_lock); [ 13.169764][ C1] [ 13.169764][ C1] *** DEADLOCK *** [ 13.169764][ C1] [ 13.170035][ C1] 1 lock held by ksoftirqd/1/22: [ 13.170216][ C1] #0: ffffffff923749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.170537][ C1] [ 13.170537][ C1] stack backtrace: [ 13.170758][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.170762][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.170765][ C1] Call Trace: [ 13.170766][ C1] [ 13.170769][ C1] dump_stack_lvl+0x82/0xd0 [ 13.170776][ C1] print_usage_bug.part.0+0x25f/0x360 [ 13.170781][ C1] mark_lock_irq+0x343/0x400 [ 13.170785][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.170791][ C1] ? save_trace+0x52/0x170 [ 13.170798][ C1] mark_lock+0x174/0x2f0 [ 13.170801][ C1] mark_usage+0x46/0x150 [ 13.170804][ C1] __lock_acquire+0x3eb/0x9d0 [ 13.170809][ C1] lock_acquire.part.0+0xb6/0x240 [ 13.170812][ C1] ? simple_pin_fs+0x24/0x150 [ 13.170816][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.170819][ C1] ? lock_acquire+0x10c/0x170 [ 13.170821][ C1] ? simple_pin_fs+0x24/0x150 [ 13.170825][ C1] _raw_spin_lock+0x33/0x40 [ 13.170828][ C1] ? simple_pin_fs+0x24/0x150 [ 13.170831][ C1] simple_pin_fs+0x24/0x150 [ 13.170834][ C1] debugfs_remove+0x35/0x70 [ 13.170838][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.170846][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.170849][ C1] ? __sk_destruct+0x383/0x780 [ 13.170856][ C1] ? rcu_do_batch+0x34f/0xf20 [ 13.170859][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.170863][ C1] ? smpboot_thread_fn+0x307/0x960 [ 13.170870][ C1] ? kthread+0x37b/0x600 [ 13.170876][ C1] ? ret_from_fork+0x31/0x70 [ 13.170878][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.170882][ C1] ? migrate_enable+0x1f2/0x270 [ 13.170886][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.170891][ C1] __put_net+0x19/0x60 [ 13.170896][ C1] __sk_destruct+0x58a/0x780 [ 13.170900][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.170904][ C1] rcu_do_batch+0x34f/0xf20 [ 13.170910][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.170914][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.170917][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.170919][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.170925][ C1] rcu_core+0x2bb/0x500 [ 13.170930][ C1] handle_softirqs+0x218/0x620 [ 13.170934][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.170938][ C1] run_ksoftirqd+0x3f/0x70 [ 13.170940][ C1] smpboot_thread_fn+0x307/0x960 [ 13.170944][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.170948][ C1] kthread+0x37b/0x600 [ 13.170952][ C1] ? __pfx_kthread+0x10/0x10 [ 13.170955][ C1] ? ret_from_fork+0x1b/0x70 [ 13.170957][ C1] ? __lock_release+0x5d/0x170 [ 13.170960][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.170963][ C1] ? __pfx_kthread+0x10/0x10 [ 13.170967][ C1] ret_from_fork+0x31/0x70 [ 13.170969][ C1] ? __pfx_kthread+0x10/0x10 [ 13.170973][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.170980][ C1] [ 13.180732][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.181028][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 13.181312][ C1] preempt_count: 100, expected: 0 [ 13.181475][ C1] RCU nest depth: 0, expected: 0 [ 13.181639][ C1] INFO: lockdep is turned off. [ 13.181808][ C1] Preemption disabled at: [ 13.181809][ C1] [] handle_softirqs+0xe5/0x620 [ 13.182154][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.182158][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.182159][ C1] Call Trace: [ 13.182161][ C1] [ 13.182163][ C1] dump_stack_lvl+0xb0/0xd0 [ 13.182168][ C1] __might_resched+0x360/0x5a0 [ 13.182176][ C1] down_write+0x72/0x210 [ 13.182179][ C1] ? __pfx_down_write+0x10/0x10 [ 13.182182][ C1] ? simple_recursive_removal+0x3a/0x860 [ 13.182186][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.182190][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.182195][ C1] simple_recursive_removal+0x166/0x860 [ 13.182198][ C1] ? __pfx_remove_one+0x10/0x10 [ 13.182202][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 13.182207][ C1] debugfs_remove+0x44/0x70 [ 13.182210][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 13.182215][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.182219][ C1] ? __sk_destruct+0x383/0x780 [ 13.182223][ C1] ? rcu_do_batch+0x34f/0xf20 [ 13.182227][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.182230][ C1] ? smpboot_thread_fn+0x307/0x960 [ 13.182234][ C1] ? kthread+0x37b/0x600 [ 13.182238][ C1] ? ret_from_fork+0x31/0x70 [ 13.182241][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 13.182245][ C1] ? migrate_enable+0x1f2/0x270 [ 13.182248][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 13.182254][ C1] __put_net+0x19/0x60 [ 13.182257][ C1] __sk_destruct+0x58a/0x780 [ 13.182260][ C1] ? rcu_do_batch+0x34a/0xf20 [ 13.182264][ C1] rcu_do_batch+0x34f/0xf20 [ 13.182269][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.182274][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.182276][ C1] ? note_gp_changes+0x182/0x1e0 [ 13.182279][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.182284][ C1] rcu_core+0x2bb/0x500 [ 13.182288][ C1] handle_softirqs+0x218/0x620 [ 13.182292][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 13.182295][ C1] run_ksoftirqd+0x3f/0x70 [ 13.182298][ C1] smpboot_thread_fn+0x307/0x960 [ 13.182302][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 13.182305][ C1] kthread+0x37b/0x600 [ 13.182309][ C1] ? __pfx_kthread+0x10/0x10 [ 13.182312][ C1] ? ret_from_fork+0x1b/0x70 [ 13.182314][ C1] ? __lock_release+0x5d/0x170 [ 13.182318][ C1] ? rcu_is_watching+0x12/0xc0 [ 13.182320][ C1] ? __pfx_kthread+0x10/0x10 [ 13.182324][ C1] ret_from_fork+0x31/0x70 [ 13.182327][ C1] ? __pfx_kthread+0x10/0x10 [ 13.182330][ C1] ret_from_fork_asm+0x1a/0x30 [ 13.182337][ C1]