[ 12.581422][ C1] [ 12.581547][ C1] ================================ [ 12.581723][ C1] WARNING: inconsistent lock state [ 12.581897][ C1] 6.15.0-virtme #1 Not tainted [ 12.582076][ C1] -------------------------------- [ 12.582250][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.582465][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.582679][ C1] ffffffff9bdc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.582992][ C1] {SOFTIRQ-ON-W} state was registered at: [ 12.583164][ C1] __lock_acquire+0x20b/0x7e0 [ 12.583339][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.583512][ C1] _raw_spin_lock+0x33/0x40 [ 12.583686][ C1] simple_pin_fs+0x24/0x150 [ 12.583856][ C1] start_creating.part.0+0x52/0x310 [ 12.584028][ C1] debugfs_create_dir+0x6a/0x540 [ 12.584199][ C1] component_debug_init+0x17/0x30 [ 12.584370][ C1] do_one_initcall+0x8f/0x1e0 [ 12.584541][ C1] do_initcalls+0x176/0x280 [ 12.584715][ C1] kernel_init_freeable+0x22d/0x300 [ 12.584897][ C1] kernel_init+0x20/0x200 [ 12.585068][ C1] ret_from_fork+0x240/0x320 [ 12.585241][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.585411][ C1] irq event stamp: 227308 [ 12.585542][ C1] hardirqs last enabled at (227308): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.585884][ C1] hardirqs last disabled at (227307): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.586221][ C1] softirqs last enabled at (227270): [] handle_softirqs+0x358/0x620 [ 12.586521][ C1] softirqs last disabled at (227273): [] run_ksoftirqd+0x3f/0x70 [ 12.586821][ C1] [ 12.586821][ C1] other info that might help us debug this: [ 12.587070][ C1] Possible unsafe locking scenario: [ 12.587070][ C1] [ 12.587318][ C1] CPU0 [ 12.587449][ C1] ---- [ 12.587577][ C1] lock(pin_fs_lock); [ 12.587710][ C1] [ 12.587839][ C1] lock(pin_fs_lock); [ 12.587971][ C1] [ 12.587971][ C1] *** DEADLOCK *** [ 12.587971][ C1] [ 12.588228][ C1] 1 lock held by ksoftirqd/1/22: [ 12.588401][ C1] #0: ffffffff9bb774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.588710][ C1] [ 12.588710][ C1] stack backtrace: [ 12.588926][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.588930][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.588933][ C1] Call Trace: [ 12.588934][ C1] [ 12.588937][ C1] dump_stack_lvl+0x82/0xd0 [ 12.588942][ C1] print_usage_bug.part.0+0x25f/0x360 [ 12.588947][ C1] mark_lock_irq+0x343/0x400 [ 12.588952][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.588957][ C1] ? save_trace+0x52/0x170 [ 12.588961][ C1] mark_lock+0x174/0x2f0 [ 12.588965][ C1] mark_usage+0x46/0x150 [ 12.588969][ C1] __lock_acquire+0x20b/0x7e0 [ 12.588972][ C1] ? __lock_acquire+0x44d/0x7e0 [ 12.588976][ C1] lock_acquire.part.0+0xb6/0x240 [ 12.588980][ C1] ? simple_pin_fs+0x24/0x150 [ 12.588983][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.588989][ C1] ? lock_acquire+0x10c/0x170 [ 12.588991][ C1] ? simple_pin_fs+0x24/0x150 [ 12.588995][ C1] _raw_spin_lock+0x33/0x40 [ 12.588998][ C1] ? simple_pin_fs+0x24/0x150 [ 12.589001][ C1] simple_pin_fs+0x24/0x150 [ 12.589004][ C1] debugfs_remove+0x35/0x70 [ 12.589007][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.589012][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.589015][ C1] ? __sk_destruct+0x383/0x780 [ 12.589020][ C1] ? rcu_do_batch+0x34c/0xf20 [ 12.589023][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.589026][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 12.589029][ C1] ? kthread+0x37e/0x600 [ 12.589032][ C1] ? ret_from_fork+0x240/0x320 [ 12.589035][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 12.589037][ C1] ? migrate_enable+0x1f2/0x270 [ 12.589041][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 12.589047][ C1] __put_net+0x19/0x60 [ 12.589051][ C1] __sk_destruct+0x58a/0x780 [ 12.589055][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.589058][ C1] rcu_do_batch+0x34c/0xf20 [ 12.589061][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.589067][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.589071][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.589074][ C1] ? note_gp_changes+0x182/0x1e0 [ 12.589077][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.589082][ C1] rcu_core+0x2bb/0x500 [ 12.589087][ C1] handle_softirqs+0x218/0x620 [ 12.589091][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.589095][ C1] run_ksoftirqd+0x3f/0x70 [ 12.589098][ C1] smpboot_thread_fn+0x30a/0x960 [ 12.589101][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.589104][ C1] kthread+0x37e/0x600 [ 12.589107][ C1] ? __pfx_kthread+0x10/0x10 [ 12.589110][ C1] ? ret_from_fork+0x1b/0x320 [ 12.589113][ C1] ? __lock_release+0x5d/0x170 [ 12.589116][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.589120][ C1] ? __pfx_kthread+0x10/0x10 [ 12.589123][ C1] ret_from_fork+0x240/0x320 [ 12.589126][ C1] ? __pfx_kthread+0x10/0x10 [ 12.589128][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.589135][ C1] [ 12.598918][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.599200][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 12.599471][ C1] preempt_count: 100, expected: 0 [ 12.599639][ C1] RCU nest depth: 0, expected: 0 [ 12.599797][ C1] INFO: lockdep is turned off. [ 12.599956][ C1] Preemption disabled at: [ 12.599958][ C1] [] handle_softirqs+0xe5/0x620 [ 12.600285][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.600290][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.600292][ C1] Call Trace: [ 12.600293][ C1] [ 12.600296][ C1] dump_stack_lvl+0xb0/0xd0 [ 12.600302][ C1] __might_resched+0x360/0x5a0 [ 12.600309][ C1] down_write+0x72/0x210 [ 12.600312][ C1] ? __pfx_down_write+0x10/0x10 [ 12.600315][ C1] ? simple_recursive_removal+0x33/0x610 [ 12.600319][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.600323][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.600327][ C1] simple_recursive_removal+0x6a/0x610 [ 12.600330][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 12.600332][ C1] ? __pfx_remove_one+0x10/0x10 [ 12.600338][ C1] debugfs_remove+0x44/0x70 [ 12.600341][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 12.600344][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.600347][ C1] ? __sk_destruct+0x383/0x780 [ 12.600351][ C1] ? rcu_do_batch+0x34c/0xf20 [ 12.600354][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.600356][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 12.600359][ C1] ? kthread+0x37e/0x600 [ 12.600362][ C1] ? ret_from_fork+0x240/0x320 [ 12.600365][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 12.600368][ C1] ? migrate_enable+0x1f2/0x270 [ 12.600372][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 12.600377][ C1] __put_net+0x19/0x60 [ 12.600381][ C1] __sk_destruct+0x58a/0x780 [ 12.600385][ C1] ? rcu_do_batch+0x34a/0xf20 [ 12.600388][ C1] rcu_do_batch+0x34c/0xf20 [ 12.600391][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.600396][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.600399][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.600403][ C1] ? note_gp_changes+0x182/0x1e0 [ 12.600406][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.600410][ C1] rcu_core+0x2bb/0x500 [ 12.600415][ C1] handle_softirqs+0x218/0x620 [ 12.600419][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 12.600423][ C1] run_ksoftirqd+0x3f/0x70 [ 12.600426][ C1] smpboot_thread_fn+0x30a/0x960 [ 12.600429][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 12.600433][ C1] kthread+0x37e/0x600 [ 12.600436][ C1] ? __pfx_kthread+0x10/0x10 [ 12.600438][ C1] ? ret_from_fork+0x1b/0x320 [ 12.600441][ C1] ? __lock_release+0x5d/0x170 [ 12.600446][ C1] ? rcu_is_watching+0x12/0xc0 [ 12.600449][ C1] ? __pfx_kthread+0x10/0x10 [ 12.600453][ C1] ret_from_fork+0x240/0x320 [ 12.600456][ C1] ? __pfx_kthread+0x10/0x10 [ 12.600458][ C1] ret_from_fork_asm+0x1a/0x30 [ 12.600465][ C1]