[ 12.672812][ C2] [ 12.672965][ C2] ================================ [ 12.673187][ C2] WARNING: inconsistent lock state [ 12.673409][ C2] 6.15.0-virtme #1 Not tainted [ 12.673636][ C2] -------------------------------- [ 12.673857][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.674131][ C2] kworker/u19:0/231 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.674405][ C2] ffffffff937c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.674799][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.675017][ C2] __lock_acquire+0x20b/0x7e0 [ 12.675242][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.675466][ C2] _raw_spin_lock+0x33/0x40 [ 12.675690][ C2] simple_pin_fs+0x24/0x150 [ 12.675910][ C2] start_creating.part.0+0x52/0x310 [ 12.676132][ C2] debugfs_create_dir+0x6a/0x540 [ 12.676351][ C2] component_debug_init+0x17/0x30 [ 12.676571][ C2] do_one_initcall+0x8f/0x1e0 [ 12.676789][ C2] do_initcalls+0x176/0x280 [ 12.677007][ C2] kernel_init_freeable+0x22d/0x300 [ 12.677224][ C2] kernel_init+0x20/0x200 [ 12.677441][ C2] ret_from_fork+0x240/0x320 [ 12.677659][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.677875][ C2] irq event stamp: 2532 [ 12.678044][ C2] hardirqs last enabled at (2532): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.678476][ C2] hardirqs last disabled at (2531): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.678854][ C2] softirqs last enabled at (1186): [] handle_softirqs+0x358/0x620 [ 12.679234][ C2] softirqs last disabled at (1461): [] __irq_exit_rcu+0xfa/0x160 [ 12.679613][ C2] [ 12.679613][ C2] other info that might help us debug this: [ 12.679934][ C2] Possible unsafe locking scenario: [ 12.679934][ C2] [ 12.680256][ C2] CPU0 [ 12.680418][ C2] ---- [ 12.680580][ C2] lock(pin_fs_lock); [ 12.680747][ C2] [ 12.680913][ C2] lock(pin_fs_lock); [ 12.681083][ C2] [ 12.681083][ C2] *** DEADLOCK *** [ 12.681083][ C2] [ 12.681405][ C2] 2 locks held by kworker/u19:0/231: [ 12.681627][ C2] #0: ffff8880095ceab8 (&sig->cred_guard_mutex){+.+.}-{4:4}, at: bprm_execve+0x4f/0x490 [ 12.682021][ C2] #1: ffffffff935774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.682417][ C2] [ 12.682417][ C2] stack backtrace: [ 12.682689][ C2] CPU: 2 UID: 0 PID: 231 Comm: kworker/u19:0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.682694][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.682696][ C2] Call Trace: [ 12.682698][ C2] [ 12.682700][ C2] dump_stack_lvl+0x82/0xd0 [ 12.682706][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.682711][ C2] mark_lock_irq+0x343/0x400 [ 12.682715][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.682720][ C2] ? save_trace+0x52/0x170 [ 12.682724][ C2] mark_lock+0x174/0x2f0 [ 12.682728][ C2] mark_usage+0x46/0x150 [ 12.682731][ C2] __lock_acquire+0x20b/0x7e0 [ 12.682735][ C2] ? __lock_acquire+0x44d/0x7e0 [ 12.682739][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.682742][ C2] ? simple_pin_fs+0x24/0x150 [ 12.682746][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.682750][ C2] ? lock_acquire+0x10c/0x170 [ 12.682753][ C2] ? simple_pin_fs+0x24/0x150 [ 12.682757][ C2] _raw_spin_lock+0x33/0x40 [ 12.682761][ C2] ? simple_pin_fs+0x24/0x150 [ 12.682763][ C2] simple_pin_fs+0x24/0x150 [ 12.682766][ C2] debugfs_remove+0x35/0x70 [ 12.682770][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.682775][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.682777][ C2] ? __sk_destruct+0x383/0x780 [ 12.682783][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.682786][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.682789][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.682792][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.682796][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.682800][ C2] ? memset_orig+0x36/0xb0 [ 12.682802][ C2] ? free_unref_folios+0x31f/0x12d0 [ 12.682807][ C2] ? folios_put_refs+0x352/0x4f0 [ 12.682812][ C2] ? invalidate_inode_pages2_range+0x5c2/0x8c0 [ 12.682815][ C2] ? fuse_open+0x423/0x6e0 [ 12.682818][ C2] ? do_dentry_open+0x433/0x10a0 [ 12.682821][ C2] ? vfs_open+0x82/0x350 [ 12.682825][ C2] ? backing_file_open+0x8a/0xf0 [ 12.682831][ C2] __put_net+0x19/0x60 [ 12.682835][ C2] __sk_destruct+0x58a/0x780 [ 12.682839][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.682842][ C2] rcu_do_batch+0x34c/0xf20 [ 12.682846][ C2] ? find_held_lock+0x2b/0x80 [ 12.682849][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.682853][ C2] ? mark_held_locks+0x49/0x80 [ 12.682856][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.682859][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.682864][ C2] rcu_core+0x2bb/0x500 [ 12.682869][ C2] handle_softirqs+0x218/0x620 [ 12.682874][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.682877][ C2] irq_exit_rcu+0xe/0x30 [ 12.682881][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.682884][ C2] [ 12.682885][ C2] [ 12.682887][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.682889][ C2] RIP: 0010:memset_orig+0x36/0xb0 [ 12.682893][ C2] Code: 01 01 01 01 01 48 0f af c1 41 89 f9 41 83 e1 07 75 74 48 89 d1 48 c1 e9 06 74 39 66 0f 1f 84 00 00 00 00 00 48 ff c9 48 89 07 <48> 89 47 08 48 89 47 10 48 89 47 18 48 89 47 20 48 89 47 28 48 89 [ 12.682895][ C2] RSP: 0018:ffffc900004e70d0 EFLAGS: 00000202 [ 12.682899][ C2] RAX: ffffffffffffffff RBX: ffffea00003048c0 RCX: 0000000000000007 [ 12.682901][ C2] RDX: 0000000000000200 RSI: 00000000000000ff RDI: ffffed1001824600 [ 12.682902][ C2] RBP: ffffffff930e2430 R08: 0000000000000000 R09: 0000000000000000 [ 12.682904][ C2] R10: ffffed1001824600 R11: ffffffff95e87270 R12: dffffc0000000000 [ 12.682906][ C2] R13: 000000000c123000 R14: 0000000000000000 R15: 0000000000000000 [ 12.682912][ C2] free_unref_folios+0x31f/0x12d0 [ 12.682917][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.682922][ C2] folios_put_refs+0x352/0x4f0 [ 12.682927][ C2] ? __pfx_folios_put_refs+0x10/0x10 [ 12.682931][ C2] ? mlock_drain_local+0x241/0x430 [ 12.682936][ C2] ? mlock_drain_local+0x250/0x430 [ 12.682940][ C2] invalidate_inode_pages2_range+0x5c2/0x8c0 [ 12.682944][ C2] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 12.682950][ C2] ? __pfx_invalidate_inode_pages2_range+0x10/0x10 [ 12.682954][ C2] ? rcu_read_lock_any_held+0x43/0xb0 [ 12.682958][ C2] ? validate_chain+0x166/0x4d0 [ 12.682968][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.682978][ C2] ? fuse_file_io_open+0x320/0x470 [ 12.682984][ C2] fuse_open+0x423/0x6e0 [ 12.682988][ C2] do_dentry_open+0x433/0x10a0 [ 12.682991][ C2] ? __pfx_fuse_open+0x10/0x10 [ 12.682995][ C2] vfs_open+0x82/0x350 [ 12.683000][ C2] backing_file_open+0x8a/0xf0 [ 12.683002][ C2] ? inode_owner_or_capable+0xad/0x170 [ 12.683007][ C2] ovl_open_realfile+0x221/0x330 [ 12.683013][ C2] ovl_open+0x1a1/0x2e0 [ 12.683017][ C2] ? __pfx_ovl_open+0x10/0x10 [ 12.683019][ C2] ? __lock_release+0x5d/0x170 [ 12.683025][ C2] do_dentry_open+0x433/0x10a0 [ 12.683027][ C2] ? __pfx_ovl_open+0x10/0x10 [ 12.683032][ C2] vfs_open+0x82/0x350 [ 12.683037][ C2] do_open+0x591/0xb60 [ 12.683042][ C2] path_openat+0x1e2/0x380 [ 12.683045][ C2] ? __pfx_path_openat+0x10/0x10 [ 12.683048][ C2] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 12.683053][ C2] ? arch_stack_walk+0x8b/0xf0 [ 12.683057][ C2] do_filp_open+0x1d7/0x420 [ 12.683061][ C2] ? __pfx_do_filp_open+0x10/0x10 [ 12.683063][ C2] ? rcu_read_lock_any_held+0x43/0xb0 [ 12.683066][ C2] ? validate_chain+0x166/0x4d0 [ 12.683072][ C2] ? __pfx_page_put_link+0x10/0x10 [ 12.683077][ C2] ? find_held_lock+0x2b/0x80 [ 12.683081][ C2] ? mark_held_locks+0x49/0x80 [ 12.683084][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.683088][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.683093][ C2] do_open_execat+0xaa/0x2e0 [ 12.683096][ C2] ? __pfx_do_open_execat+0x10/0x10 [ 12.683100][ C2] ? getname_kernel+0x14b/0x2d0 [ 12.683104][ C2] open_exec+0x2b/0x50 [ 12.683107][ C2] load_elf_binary+0x51e/0x2960 [ 12.683112][ C2] ? __lock_acquire+0x44d/0x7e0 [ 12.683117][ C2] ? find_held_lock+0x2b/0x80 [ 12.683120][ C2] ? __pfx_load_elf_binary+0x10/0x10 [ 12.683123][ C2] ? exec_binprm+0x237/0x640 [ 12.683128][ C2] exec_binprm+0x255/0x640 [ 12.683132][ C2] ? __pfx_exec_binprm+0x10/0x10 [ 12.683134][ C2] ? bprm_execve+0x93/0x490 [ 12.683139][ C2] bprm_execve+0x1af/0x490 [ 12.683142][ C2] kernel_execve+0x252/0x2f0 [ 12.683146][ C2] call_usermodehelper_exec_async+0x23e/0x460 [ 12.683151][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.683154][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.683157][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.683160][ C2] ret_from_fork+0x240/0x320 [ 12.683163][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.683166][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.683173][ C2] [ 12.711767][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.712154][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 231, name: kworker/u19:0 [ 12.712534][ C2] preempt_count: 100, expected: 0 [ 12.712752][ C2] RCU nest depth: 0, expected: 0 [ 12.712969][ C2] INFO: lockdep is turned off. [ 12.713184][ C2] Preemption disabled at: [ 12.713186][ C2] [] handle_softirqs+0xe5/0x620 [ 12.713636][ C2] CPU: 2 UID: 0 PID: 231 Comm: kworker/u19:0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.713640][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.713642][ C2] Call Trace: [ 12.713644][ C2] [ 12.713646][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.713652][ C2] __might_resched+0x360/0x5a0 [ 12.713659][ C2] down_write+0x72/0x210 [ 12.713663][ C2] ? __pfx_down_write+0x10/0x10 [ 12.713666][ C2] ? simple_recursive_removal+0x33/0x610 [ 12.713671][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.713676][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.713680][ C2] simple_recursive_removal+0x6a/0x610 [ 12.713683][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.713685][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.713691][ C2] debugfs_remove+0x44/0x70 [ 12.713695][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.713699][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.713702][ C2] ? __sk_destruct+0x383/0x780 [ 12.713707][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.713711][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.713713][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.713716][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.713720][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.713724][ C2] ? memset_orig+0x36/0xb0 [ 12.713726][ C2] ? free_unref_folios+0x31f/0x12d0 [ 12.713731][ C2] ? folios_put_refs+0x352/0x4f0 [ 12.713736][ C2] ? invalidate_inode_pages2_range+0x5c2/0x8c0 [ 12.713740][ C2] ? fuse_open+0x423/0x6e0 [ 12.713742][ C2] ? do_dentry_open+0x433/0x10a0 [ 12.713746][ C2] ? vfs_open+0x82/0x350 [ 12.713750][ C2] ? backing_file_open+0x8a/0xf0 [ 12.713756][ C2] __put_net+0x19/0x60 [ 12.713760][ C2] __sk_destruct+0x58a/0x780 [ 12.713764][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.713767][ C2] rcu_do_batch+0x34c/0xf20 [ 12.713771][ C2] ? find_held_lock+0x2b/0x80 [ 12.713775][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.713778][ C2] ? mark_held_locks+0x49/0x80 [ 12.713782][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.713785][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.713790][ C2] rcu_core+0x2bb/0x500 [ 12.713794][ C2] handle_softirqs+0x218/0x620 [ 12.713799][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.713802][ C2] irq_exit_rcu+0xe/0x30 [ 12.713805][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.713809][ C2] [ 12.713810][ C2] [ 12.713811][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.713814][ C2] RIP: 0010:memset_orig+0x36/0xb0 [ 12.713817][ C2] Code: 01 01 01 01 01 48 0f af c1 41 89 f9 41 83 e1 07 75 74 48 89 d1 48 c1 e9 06 74 39 66 0f 1f 84 00 00 00 00 00 48 ff c9 48 89 07 <48> 89 47 08 48 89 47 10 48 89 47 18 48 89 47 20 48 89 47 28 48 89 [ 12.713820][ C2] RSP: 0018:ffffc900004e70d0 EFLAGS: 00000202 [ 12.713823][ C2] RAX: ffffffffffffffff RBX: ffffea00003048c0 RCX: 0000000000000007 [ 12.713825][ C2] RDX: 0000000000000200 RSI: 00000000000000ff RDI: ffffed1001824600 [ 12.713827][ C2] RBP: ffffffff930e2430 R08: 0000000000000000 R09: 0000000000000000 [ 12.713828][ C2] R10: ffffed1001824600 R11: ffffffff95e87270 R12: dffffc0000000000 [ 12.713830][ C2] R13: 000000000c123000 R14: 0000000000000000 R15: 0000000000000000 [ 12.713836][ C2] free_unref_folios+0x31f/0x12d0 [ 12.713841][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.713846][ C2] folios_put_refs+0x352/0x4f0 [ 12.713851][ C2] ? __pfx_folios_put_refs+0x10/0x10 [ 12.713855][ C2] ? mlock_drain_local+0x241/0x430 [ 12.713860][ C2] ? mlock_drain_local+0x250/0x430 [ 12.713864][ C2] invalidate_inode_pages2_range+0x5c2/0x8c0 [ 12.713868][ C2] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 12.713874][ C2] ? __pfx_invalidate_inode_pages2_range+0x10/0x10 [ 12.713877][ C2] ? rcu_read_lock_any_held+0x43/0xb0 [ 12.713881][ C2] ? validate_chain+0x166/0x4d0 [ 12.713891][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.713901][ C2] ? fuse_file_io_open+0x320/0x470 [ 12.713906][ C2] fuse_open+0x423/0x6e0 [ 12.713910][ C2] do_dentry_open+0x433/0x10a0 [ 12.713913][ C2] ? __pfx_fuse_open+0x10/0x10 [ 12.713917][ C2] vfs_open+0x82/0x350 [ 12.713922][ C2] backing_file_open+0x8a/0xf0 [ 12.713925][ C2] ? inode_owner_or_capable+0xad/0x170 [ 12.713930][ C2] ovl_open_realfile+0x221/0x330 [ 12.713935][ C2] ovl_open+0x1a1/0x2e0 [ 12.713939][ C2] ? __pfx_ovl_open+0x10/0x10 [ 12.713941][ C2] ? __lock_release+0x5d/0x170 [ 12.713947][ C2] do_dentry_open+0x433/0x10a0 [ 12.713949][ C2] ? __pfx_ovl_open+0x10/0x10 [ 12.713954][ C2] vfs_open+0x82/0x350 [ 12.713959][ C2] do_open+0x591/0xb60 [ 12.713964][ C2] path_openat+0x1e2/0x380 [ 12.713967][ C2] ? __pfx_path_openat+0x10/0x10 [ 12.713970][ C2] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 12.713975][ C2] ? arch_stack_walk+0x8b/0xf0 [ 12.713979][ C2] do_filp_open+0x1d7/0x420 [ 12.713982][ C2] ? __pfx_do_filp_open+0x10/0x10 [ 12.713985][ C2] ? rcu_read_lock_any_held+0x43/0xb0 [ 12.713988][ C2] ? validate_chain+0x166/0x4d0 [ 12.713994][ C2] ? __pfx_page_put_link+0x10/0x10 [ 12.713999][ C2] ? find_held_lock+0x2b/0x80 [ 12.714002][ C2] ? mark_held_locks+0x49/0x80 [ 12.714006][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.714009][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.714014][ C2] do_open_execat+0xaa/0x2e0 [ 12.714018][ C2] ? __pfx_do_open_execat+0x10/0x10 [ 12.714022][ C2] ? getname_kernel+0x14b/0x2d0 [ 12.714026][ C2] open_exec+0x2b/0x50 [ 12.714028][ C2] load_elf_binary+0x51e/0x2960 [ 12.714034][ C2] ? __lock_acquire+0x44d/0x7e0 [ 12.714039][ C2] ? find_held_lock+0x2b/0x80 [ 12.714042][ C2] ? __pfx_load_elf_binary+0x10/0x10 [ 12.714044][ C2] ? exec_binprm+0x237/0x640 [ 12.714049][ C2] exec_binprm+0x255/0x640 [ 12.714053][ C2] ? __pfx_exec_binprm+0x10/0x10 [ 12.714055][ C2] ? bprm_execve+0x93/0x490 [ 12.714060][ C2] bprm_execve+0x1af/0x490 [ 12.714063][ C2] kernel_execve+0x252/0x2f0 [ 12.714067][ C2] call_usermodehelper_exec_async+0x23e/0x460 [ 12.714071][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.714074][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.714077][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.714080][ C2] ret_from_fork+0x240/0x320 [ 12.714084][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.714087][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.714094][ C2]