[ 13.302219][ C0] [ 13.302354][ C0] ================================ [ 13.302545][ C0] WARNING: inconsistent lock state [ 13.302735][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 13.302949][ C0] -------------------------------- [ 13.303139][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.303377][ C0] kworker/u20:0/231 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.303623][ C0] ffffffff89fbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.303971][ C0] {SOFTIRQ-ON-W} state was registered at: [ 13.304164][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.304361][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.304561][ C0] _raw_spin_lock+0x33/0x40 [ 13.304756][ C0] simple_pin_fs+0x24/0x150 [ 13.304948][ C0] start_creating.part.0+0x3f/0x2f0 [ 13.305143][ C0] debugfs_create_dir+0x6a/0x540 [ 13.305331][ C0] component_debug_init+0x17/0x30 [ 13.305528][ C0] do_one_initcall+0x8c/0x1e0 [ 13.305735][ C0] do_initcalls+0x176/0x280 [ 13.305931][ C0] kernel_init_freeable+0x22d/0x300 [ 13.306124][ C0] kernel_init+0x20/0x200 [ 13.306316][ C0] ret_from_fork+0x31/0x70 [ 13.306539][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.306733][ C0] irq event stamp: 3520 [ 13.306879][ C0] hardirqs last enabled at (3520): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.307263][ C0] hardirqs last disabled at (3519): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.307603][ C0] softirqs last enabled at (3358): [] fpu_flush_thread+0x2fd/0x3d0 [ 13.307940][ C0] softirqs last disabled at (3359): [] do_softirq+0xb1/0xe0 [ 13.308280][ C0] [ 13.308280][ C0] other info that might help us debug this: [ 13.308563][ C0] Possible unsafe locking scenario: [ 13.308563][ C0] [ 13.308868][ C0] CPU0 [ 13.309011][ C0] ---- [ 13.309155][ C0] lock(pin_fs_lock); [ 13.309300][ C0] [ 13.309445][ C0] lock(pin_fs_lock); [ 13.309592][ C0] [ 13.309592][ C0] *** DEADLOCK *** [ 13.309592][ C0] [ 13.309873][ C0] 3 locks held by kworker/u20:0/231: [ 13.310072][ C0] #0: ffff888009065678 (&sig->cred_guard_mutex){+.+.}-{4:4}, at: bprm_execve+0x4f/0x490 [ 13.310421][ C0] #1: ffff888009065710 (&sig->exec_update_lock){++++}-{4:4}, at: exec_mmap+0x8c/0x840 [ 13.310763][ C0] #2: ffffffff89d74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.311106][ C0] [ 13.311106][ C0] stack backtrace: [ 13.311363][ C0] CPU: 0 UID: 0 PID: 231 Comm: kworker/u20:0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.311368][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.311371][ C0] Call Trace: [ 13.311372][ C0] [ 13.311374][ C0] dump_stack_lvl+0x82/0xd0 [ 13.311382][ C0] print_usage_bug.part.0+0x25f/0x360 [ 13.311387][ C0] mark_lock_irq+0x343/0x400 [ 13.311391][ C0] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.311396][ C0] ? validate_chain+0x166/0x4d0 [ 13.311398][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.311405][ C0] mark_lock+0x174/0x2f0 [ 13.311408][ C0] mark_usage+0x46/0x150 [ 13.311411][ C0] __lock_acquire+0x3eb/0x9d0 [ 13.311415][ C0] lock_acquire.part.0+0xb6/0x240 [ 13.311418][ C0] ? simple_pin_fs+0x24/0x150 [ 13.311421][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.311425][ C0] ? lock_acquire+0x10c/0x170 [ 13.311427][ C0] ? simple_pin_fs+0x24/0x150 [ 13.311431][ C0] _raw_spin_lock+0x33/0x40 [ 13.311435][ C0] ? simple_pin_fs+0x24/0x150 [ 13.311437][ C0] simple_pin_fs+0x24/0x150 [ 13.311440][ C0] debugfs_remove+0x35/0x70 [ 13.311444][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.311452][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.311456][ C0] ? __sk_destruct+0x383/0x780 [ 13.311462][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.311466][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.311469][ C0] ? __local_bh_enable_ip+0x105/0x130 [ 13.311472][ C0] ? flush_thread+0x32/0x90 [ 13.311475][ C0] ? begin_new_exec+0x619/0x15f0 [ 13.311478][ C0] ? load_elf_binary+0x63a/0x2a20 [ 13.311483][ C0] ? exec_binprm+0x255/0x640 [ 13.311485][ C0] ? bprm_execve+0x1af/0x490 [ 13.311487][ C0] ? kernel_execve+0x252/0x2f0 [ 13.311490][ C0] ? call_usermodehelper_exec_async+0x23e/0x460 [ 13.311497][ C0] ? ret_from_fork+0x31/0x70 [ 13.311499][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.311505][ C0] __put_net+0x19/0x60 [ 13.311509][ C0] __sk_destruct+0x58a/0x780 [ 13.311513][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.311516][ C0] rcu_do_batch+0x34c/0xf20 [ 13.311521][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.311525][ C0] ? mark_held_locks+0x49/0x80 [ 13.311528][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.311531][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.311537][ C0] rcu_core+0x2bb/0x500 [ 13.311541][ C0] handle_softirqs+0x218/0x620 [ 13.311545][ C0] ? fpu_flush_thread+0x2fd/0x3d0 [ 13.311550][ C0] do_softirq+0xb1/0xe0 [ 13.311552][ C0] [ 13.311553][ C0] [ 13.311555][ C0] __local_bh_enable_ip+0x105/0x130 [ 13.311558][ C0] flush_thread+0x32/0x90 [ 13.311560][ C0] begin_new_exec+0x619/0x15f0 [ 13.311565][ C0] load_elf_binary+0x63a/0x2a20 [ 13.311570][ C0] ? __lock_acquire+0x591/0x9d0 [ 13.311574][ C0] ? find_held_lock+0x2b/0x80 [ 13.311580][ C0] ? __pfx_load_elf_binary+0x10/0x10 [ 13.311583][ C0] ? exec_binprm+0x237/0x640 [ 13.311588][ C0] exec_binprm+0x255/0x640 [ 13.311592][ C0] ? __pfx_exec_binprm+0x10/0x10 [ 13.311594][ C0] ? bprm_execve+0x93/0x490 [ 13.311599][ C0] bprm_execve+0x1af/0x490 [ 13.311602][ C0] kernel_execve+0x252/0x2f0 [ 13.311606][ C0] call_usermodehelper_exec_async+0x23e/0x460 [ 13.311609][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.311613][ C0] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.311616][ C0] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.311620][ C0] ret_from_fork+0x31/0x70 [ 13.311622][ C0] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.311626][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.311633][ C0] [ 13.325838][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.326181][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 231, name: kworker/u20:0 [ 13.326512][ C0] preempt_count: 101, expected: 0 [ 13.326759][ C0] RCU nest depth: 0, expected: 0 [ 13.327073][ C0] INFO: lockdep is turned off. [ 13.327362][ C0] Preemption disabled at: [ 13.327365][ C0] [] fpu_flush_thread+0x254/0x3d0 [ 13.327952][ C0] CPU: 0 UID: 0 PID: 231 Comm: kworker/u20:0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 13.327959][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.327962][ C0] Call Trace: [ 13.327965][ C0] [ 13.327969][ C0] dump_stack_lvl+0xb0/0xd0 [ 13.327978][ C0] __might_resched+0x360/0x5a0 [ 13.327989][ C0] down_write+0x72/0x210 [ 13.327995][ C0] ? __pfx_down_write+0x10/0x10 [ 13.327999][ C0] ? simple_recursive_removal+0x3a/0x860 [ 13.328006][ C0] ? rcu_is_watching+0x12/0xc0 [ 13.328013][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.328020][ C0] simple_recursive_removal+0x166/0x860 [ 13.328025][ C0] ? __pfx_remove_one+0x10/0x10 [ 13.328032][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 13.328040][ C0] debugfs_remove+0x44/0x70 [ 13.328045][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 13.328053][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.328058][ C0] ? __sk_destruct+0x383/0x780 [ 13.328065][ C0] ? rcu_do_batch+0x34c/0xf20 [ 13.328072][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.328077][ C0] ? __local_bh_enable_ip+0x105/0x130 [ 13.328083][ C0] ? flush_thread+0x32/0x90 [ 13.328087][ C0] ? begin_new_exec+0x619/0x15f0 [ 13.328093][ C0] ? load_elf_binary+0x63a/0x2a20 [ 13.328098][ C0] ? exec_binprm+0x255/0x640 [ 13.328102][ C0] ? bprm_execve+0x1af/0x490 [ 13.328106][ C0] ? kernel_execve+0x252/0x2f0 [ 13.328110][ C0] ? call_usermodehelper_exec_async+0x23e/0x460 [ 13.328118][ C0] ? ret_from_fork+0x31/0x70 [ 13.328122][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 13.328132][ C0] __put_net+0x19/0x60 [ 13.328137][ C0] __sk_destruct+0x58a/0x780 [ 13.328144][ C0] ? rcu_do_batch+0x34a/0xf20 [ 13.328148][ C0] rcu_do_batch+0x34c/0xf20 [ 13.328158][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.328165][ C0] ? mark_held_locks+0x49/0x80 [ 13.328170][ C0] ? note_gp_changes+0x182/0x1e0 [ 13.328175][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.328184][ C0] rcu_core+0x2bb/0x500 [ 13.328190][ C0] handle_softirqs+0x218/0x620 [ 13.328197][ C0] ? fpu_flush_thread+0x2fd/0x3d0 [ 13.328203][ C0] do_softirq+0xb1/0xe0 [ 13.328208][ C0] [ 13.328210][ C0] [ 13.328212][ C0] __local_bh_enable_ip+0x105/0x130 [ 13.328218][ C0] flush_thread+0x32/0x90 [ 13.328222][ C0] begin_new_exec+0x619/0x15f0 [ 13.328231][ C0] load_elf_binary+0x63a/0x2a20 [ 13.328240][ C0] ? __lock_acquire+0x591/0x9d0 [ 13.328249][ C0] ? find_held_lock+0x2b/0x80 [ 13.328255][ C0] ? __pfx_load_elf_binary+0x10/0x10 [ 13.328260][ C0] ? exec_binprm+0x237/0x640 [ 13.328269][ C0] exec_binprm+0x255/0x640 [ 13.328277][ C0] ? __pfx_exec_binprm+0x10/0x10 [ 13.328281][ C0] ? bprm_execve+0x93/0x490 [ 13.328290][ C0] bprm_execve+0x1af/0x490 [ 13.328296][ C0] kernel_execve+0x252/0x2f0 [ 13.328303][ C0] call_usermodehelper_exec_async+0x23e/0x460 [ 13.328308][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.328313][ C0] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.328319][ C0] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.328325][ C0] ret_from_fork+0x31/0x70 [ 13.328329][ C0] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.328336][ C0] ret_from_fork_asm+0x1a/0x30 [ 13.328348][ C0]