[ 13.269563][ C3] [ 13.269709][ C3] ================================ [ 13.269928][ C3] WARNING: inconsistent lock state [ 13.270147][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 13.270365][ C3] -------------------------------- [ 13.270582][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.270854][ C3] kworker/u20:1/233 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.271124][ C3] ffffffff9edbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.271525][ C3] {SOFTIRQ-ON-W} state was registered at: [ 13.271741][ C3] __lock_acquire+0x3eb/0x9d0 [ 13.271966][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.272187][ C3] _raw_spin_lock+0x33/0x40 [ 13.272410][ C3] simple_pin_fs+0x24/0x150 [ 13.272629][ C3] start_creating.part.0+0x3f/0x2f0 [ 13.272849][ C3] debugfs_create_dir+0x6a/0x540 [ 13.273071][ C3] component_debug_init+0x17/0x30 [ 13.273293][ C3] do_one_initcall+0x8f/0x1e0 [ 13.273512][ C3] do_initcalls+0x176/0x280 [ 13.273734][ C3] kernel_init_freeable+0x22d/0x300 [ 13.273995][ C3] kernel_init+0x20/0x200 [ 13.274214][ C3] ret_from_fork+0x31/0x70 [ 13.274433][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.274649][ C3] irq event stamp: 2320 [ 13.274817][ C3] hardirqs last enabled at (2320): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.275257][ C3] hardirqs last disabled at (2319): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.275637][ C3] softirqs last enabled at (1596): [] handle_softirqs+0x358/0x620 [ 13.276016][ C3] softirqs last disabled at (1907): [] __irq_exit_rcu+0xfa/0x160 [ 13.276392][ C3] [ 13.276392][ C3] other info that might help us debug this: [ 13.276716][ C3] Possible unsafe locking scenario: [ 13.276716][ C3] [ 13.277035][ C3] CPU0 [ 13.277196][ C3] ---- [ 13.277362][ C3] lock(pin_fs_lock); [ 13.277527][ C3] [ 13.277687][ C3] lock(pin_fs_lock); [ 13.277855][ C3] [ 13.277855][ C3] *** DEADLOCK *** [ 13.277855][ C3] [ 13.278177][ C3] 3 locks held by kworker/u20:1/233: [ 13.278396][ C3] #0: ffff88800c1d2df8 (&sig->cred_guard_mutex){+.+.}-{4:4}, at: bprm_execve+0x4f/0x490 [ 13.278788][ C3] #1: ffff888009806650 (&sb->s_type->i_lock_key#19){+.+.}-{3:3}, at: folio_unmap_invalidate+0x3bd/0x680 [ 13.279230][ C3] #2: ffffffff9eb749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.279624][ C3] [ 13.279624][ C3] stack backtrace: [ 13.279892][ C3] CPU: 3 UID: 0 PID: 233 Comm: kworker/u20:1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.279897][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.279899][ C3] Call Trace: [ 13.279901][ C3] [ 13.279903][ C3] dump_stack_lvl+0x82/0xd0 [ 13.279909][ C3] print_usage_bug.part.0+0x25f/0x360 [ 13.279914][ C3] mark_lock_irq+0x343/0x400 [ 13.279918][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.279923][ C3] ? save_trace+0x52/0x170 [ 13.279929][ C3] mark_lock+0x174/0x2f0 [ 13.279932][ C3] mark_usage+0x46/0x150 [ 13.279935][ C3] __lock_acquire+0x3eb/0x9d0 [ 13.279939][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.279942][ C3] ? simple_pin_fs+0x24/0x150 [ 13.279946][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.279949][ C3] ? lock_acquire+0x10c/0x170 [ 13.279952][ C3] ? simple_pin_fs+0x24/0x150 [ 13.279955][ C3] _raw_spin_lock+0x33/0x40 [ 13.279958][ C3] ? simple_pin_fs+0x24/0x150 [ 13.279961][ C3] simple_pin_fs+0x24/0x150 [ 13.279964][ C3] debugfs_remove+0x35/0x70 [ 13.279968][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.279973][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.279977][ C3] ? __sk_destruct+0x383/0x780 [ 13.279982][ C3] ? rcu_do_batch+0x34f/0xf20 [ 13.279985][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.279989][ C3] ? irq_exit_rcu+0xe/0x30 [ 13.279991][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.279995][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.279999][ C3] ? _raw_spin_unlock_irq+0x2e/0x50 [ 13.280002][ C3] ? folio_unmap_invalidate+0x43e/0x680 [ 13.280005][ C3] ? invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.280008][ C3] ? fuse_open+0x423/0x6e0 [ 13.280012][ C3] ? do_dentry_open+0x433/0x10a0 [ 13.280016][ C3] ? vfs_open+0x82/0x350 [ 13.280019][ C3] ? backing_file_open+0x8a/0xf0 [ 13.280023][ C3] ? ovl_open_realfile+0x221/0x330 [ 13.280030][ C3] __put_net+0x19/0x60 [ 13.280033][ C3] __sk_destruct+0x58a/0x780 [ 13.280037][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.280041][ C3] rcu_do_batch+0x34f/0xf20 [ 13.280045][ C3] ? find_held_lock+0x2b/0x80 [ 13.280050][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.280054][ C3] ? mark_held_locks+0x49/0x80 [ 13.280056][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.280059][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.280064][ C3] rcu_core+0x2bb/0x500 [ 13.280068][ C3] handle_softirqs+0x218/0x620 [ 13.280073][ C3] __irq_exit_rcu+0xfa/0x160 [ 13.280076][ C3] irq_exit_rcu+0xe/0x30 [ 13.280079][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.280082][ C3] [ 13.280083][ C3] [ 13.280084][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.280087][ C3] RIP: 0010:_raw_spin_unlock_irq+0x2e/0x50 [ 13.280091][ C3] Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 85 d4 84 fd 48 89 ef e8 fd 26 85 fd e8 a8 83 aa fd fb bf 01 00 00 00 2d 2f 79 fd 65 8b 05 d6 28 98 02 85 c0 74 06 5d e9 3c 35 00 00 [ 13.280094][ C3] RSP: 0018:ffffc900004b7200 EFLAGS: 00000206 [ 13.280097][ C3] RAX: 0000000000000771 RBX: ffffea0000d3fc00 RCX: 0000000000000040 [ 13.280099][ C3] RDX: 0000000000000000 RSI: ffffffff9e689a45 RDI: 0000000000000001 [ 13.280101][ C3] RBP: ffff8880098067d0 R08: 0000000000000001 R09: 0000000000000001 [ 13.280103][ C3] R10: ffffffff9f5db797 R11: dffffc0000000000 R12: ffff8880098067c8 [ 13.280104][ C3] R13: ffff8880098067d0 R14: ffffea0000d3fc18 R15: dffffc0000000000 [ 13.280110][ C3] folio_unmap_invalidate+0x43e/0x680 [ 13.280114][ C3] invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.280120][ C3] ? __pfx_invalidate_inode_pages2_range+0x10/0x10 [ 13.280124][ C3] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.280127][ C3] ? validate_chain+0x166/0x4d0 [ 13.280129][ C3] ? kasan_quarantine_put+0x10d/0x230 [ 13.280139][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.280149][ C3] ? fuse_file_io_open+0x320/0x470 [ 13.280156][ C3] fuse_open+0x423/0x6e0 [ 13.280160][ C3] do_dentry_open+0x433/0x10a0 [ 13.280163][ C3] ? __pfx_fuse_open+0x10/0x10 [ 13.280167][ C3] vfs_open+0x82/0x350 [ 13.280172][ C3] backing_file_open+0x8a/0xf0 [ 13.280175][ C3] ? inode_owner_or_capable+0xad/0x170 [ 13.280180][ C3] ovl_open_realfile+0x221/0x330 [ 13.280185][ C3] ovl_open+0x1a1/0x2e0 [ 13.280188][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.280191][ C3] ? __lock_release+0x5d/0x170 [ 13.280196][ C3] do_dentry_open+0x433/0x10a0 [ 13.280199][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.280204][ C3] vfs_open+0x82/0x350 [ 13.280209][ C3] do_open+0x591/0xb60 [ 13.280214][ C3] path_openat+0x251/0x440 [ 13.280219][ C3] ? __pfx_path_openat+0x10/0x10 [ 13.280222][ C3] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 13.280227][ C3] ? arch_stack_walk+0x8b/0xf0 [ 13.280233][ C3] do_filp_open+0x1d7/0x420 [ 13.280237][ C3] ? __pfx_do_filp_open+0x10/0x10 [ 13.280240][ C3] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.280242][ C3] ? validate_chain+0x166/0x4d0 [ 13.280247][ C3] ? __pfx_page_put_link+0x10/0x10 [ 13.280251][ C3] ? find_held_lock+0x2b/0x80 [ 13.280255][ C3] ? mark_held_locks+0x49/0x80 [ 13.280258][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.280261][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.280266][ C3] do_open_execat+0xaa/0x2e0 [ 13.280269][ C3] ? __pfx_do_open_execat+0x10/0x10 [ 13.280274][ C3] ? getname_kernel+0x14b/0x2d0 [ 13.280278][ C3] open_exec+0x2b/0x50 [ 13.280281][ C3] load_elf_binary+0x51e/0x2960 [ 13.280286][ C3] ? __lock_acquire+0x591/0x9d0 [ 13.280290][ C3] ? find_held_lock+0x2b/0x80 [ 13.280294][ C3] ? __pfx_load_elf_binary+0x10/0x10 [ 13.280296][ C3] ? exec_binprm+0x237/0x640 [ 13.280301][ C3] exec_binprm+0x255/0x640 [ 13.280306][ C3] ? __pfx_exec_binprm+0x10/0x10 [ 13.280308][ C3] ? bprm_execve+0x93/0x490 [ 13.280313][ C3] bprm_execve+0x1af/0x490 [ 13.280316][ C3] kernel_execve+0x252/0x2f0 [ 13.280320][ C3] call_usermodehelper_exec_async+0x23e/0x460 [ 13.280324][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.280327][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.280329][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.280332][ C3] ret_from_fork+0x31/0x70 [ 13.280335][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.280337][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.280344][ C3] [ 13.307462][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.307816][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 233, name: kworker/u20:1 [ 13.308178][ C3] preempt_count: 102, expected: 0 [ 13.308383][ C3] RCU nest depth: 0, expected: 0 [ 13.308586][ C3] INFO: lockdep is turned off. [ 13.308787][ C3] Preemption disabled at: [ 13.308789][ C3] [<0000000000000000>] 0x0 [ 13.309149][ C3] CPU: 3 UID: 0 PID: 233 Comm: kworker/u20:1 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.309153][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.309155][ C3] Call Trace: [ 13.309157][ C3] [ 13.309159][ C3] dump_stack_lvl+0xb0/0xd0 [ 13.309166][ C3] __might_resched+0x360/0x5a0 [ 13.309174][ C3] down_write+0x72/0x210 [ 13.309178][ C3] ? __pfx_down_write+0x10/0x10 [ 13.309180][ C3] ? simple_recursive_removal+0x3a/0x860 [ 13.309185][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.309189][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.309195][ C3] simple_recursive_removal+0x166/0x860 [ 13.309198][ C3] ? __pfx_remove_one+0x10/0x10 [ 13.309203][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.309207][ C3] debugfs_remove+0x44/0x70 [ 13.309211][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.309216][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.309220][ C3] ? __sk_destruct+0x383/0x780 [ 13.309224][ C3] ? rcu_do_batch+0x34f/0xf20 [ 13.309228][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.309232][ C3] ? irq_exit_rcu+0xe/0x30 [ 13.309236][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.309241][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.309244][ C3] ? _raw_spin_unlock_irq+0x2e/0x50 [ 13.309248][ C3] ? folio_unmap_invalidate+0x43e/0x680 [ 13.309253][ C3] ? invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.309256][ C3] ? fuse_open+0x423/0x6e0 [ 13.309259][ C3] ? do_dentry_open+0x433/0x10a0 [ 13.309264][ C3] ? vfs_open+0x82/0x350 [ 13.309267][ C3] ? backing_file_open+0x8a/0xf0 [ 13.309271][ C3] ? ovl_open_realfile+0x221/0x330 [ 13.309277][ C3] __put_net+0x19/0x60 [ 13.309280][ C3] __sk_destruct+0x58a/0x780 [ 13.309284][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.309288][ C3] rcu_do_batch+0x34f/0xf20 [ 13.309292][ C3] ? find_held_lock+0x2b/0x80 [ 13.309297][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.309301][ C3] ? mark_held_locks+0x49/0x80 [ 13.309304][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.309307][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.309312][ C3] rcu_core+0x2bb/0x500 [ 13.309315][ C3] handle_softirqs+0x218/0x620 [ 13.309320][ C3] __irq_exit_rcu+0xfa/0x160 [ 13.309323][ C3] irq_exit_rcu+0xe/0x30 [ 13.309326][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.309329][ C3] [ 13.309330][ C3] [ 13.309332][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.309335][ C3] RIP: 0010:_raw_spin_unlock_irq+0x2e/0x50 [ 13.309338][ C3] Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 85 d4 84 fd 48 89 ef e8 fd 26 85 fd e8 a8 83 aa fd fb bf 01 00 00 00 2d 2f 79 fd 65 8b 05 d6 28 98 02 85 c0 74 06 5d e9 3c 35 00 00 [ 13.309341][ C3] RSP: 0018:ffffc900004b7200 EFLAGS: 00000206 [ 13.309344][ C3] RAX: 0000000000000771 RBX: ffffea0000d3fc00 RCX: 0000000000000040 [ 13.309346][ C3] RDX: 0000000000000000 RSI: ffffffff9e689a45 RDI: 0000000000000001 [ 13.309348][ C3] RBP: ffff8880098067d0 R08: 0000000000000001 R09: 0000000000000001 [ 13.309350][ C3] R10: ffffffff9f5db797 R11: dffffc0000000000 R12: ffff8880098067c8 [ 13.309352][ C3] R13: ffff8880098067d0 R14: ffffea0000d3fc18 R15: dffffc0000000000 [ 13.309358][ C3] folio_unmap_invalidate+0x43e/0x680 [ 13.309362][ C3] invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.309368][ C3] ? __pfx_invalidate_inode_pages2_range+0x10/0x10 [ 13.309371][ C3] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.309374][ C3] ? validate_chain+0x166/0x4d0 [ 13.309377][ C3] ? kasan_quarantine_put+0x10d/0x230 [ 13.309386][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.309396][ C3] ? fuse_file_io_open+0x320/0x470 [ 13.309402][ C3] fuse_open+0x423/0x6e0 [ 13.309406][ C3] do_dentry_open+0x433/0x10a0 [ 13.309409][ C3] ? __pfx_fuse_open+0x10/0x10 [ 13.309413][ C3] vfs_open+0x82/0x350 [ 13.309418][ C3] backing_file_open+0x8a/0xf0 [ 13.309421][ C3] ? inode_owner_or_capable+0xad/0x170 [ 13.309425][ C3] ovl_open_realfile+0x221/0x330 [ 13.309430][ C3] ovl_open+0x1a1/0x2e0 [ 13.309433][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.309437][ C3] ? __lock_release+0x5d/0x170 [ 13.309442][ C3] do_dentry_open+0x433/0x10a0 [ 13.309445][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.309450][ C3] vfs_open+0x82/0x350 [ 13.309454][ C3] do_open+0x591/0xb60 [ 13.309460][ C3] path_openat+0x251/0x440 [ 13.309465][ C3] ? __pfx_path_openat+0x10/0x10 [ 13.309468][ C3] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 13.309473][ C3] ? arch_stack_walk+0x8b/0xf0 [ 13.309478][ C3] do_filp_open+0x1d7/0x420 [ 13.309482][ C3] ? __pfx_do_filp_open+0x10/0x10 [ 13.309485][ C3] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.309487][ C3] ? validate_chain+0x166/0x4d0 [ 13.309492][ C3] ? __pfx_page_put_link+0x10/0x10 [ 13.309496][ C3] ? find_held_lock+0x2b/0x80 [ 13.309500][ C3] ? mark_held_locks+0x49/0x80 [ 13.309503][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.309506][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.309511][ C3] do_open_execat+0xaa/0x2e0 [ 13.309515][ C3] ? __pfx_do_open_execat+0x10/0x10 [ 13.309519][ C3] ? getname_kernel+0x14b/0x2d0 [ 13.309523][ C3] open_exec+0x2b/0x50 [ 13.309526][ C3] load_elf_binary+0x51e/0x2960 [ 13.309531][ C3] ? __lock_acquire+0x591/0x9d0 [ 13.309536][ C3] ? find_held_lock+0x2b/0x80 [ 13.309539][ C3] ? __pfx_load_elf_binary+0x10/0x10 [ 13.309541][ C3] ? exec_binprm+0x237/0x640 [ 13.309547][ C3] exec_binprm+0x255/0x640 [ 13.309551][ C3] ? __pfx_exec_binprm+0x10/0x10 [ 13.309554][ C3] ? bprm_execve+0x93/0x490 [ 13.309559][ C3] bprm_execve+0x1af/0x490 [ 13.309562][ C3] kernel_execve+0x252/0x2f0 [ 13.309566][ C3] call_usermodehelper_exec_async+0x23e/0x460 [ 13.309569][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.309572][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.309575][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.309578][ C3] ret_from_fork+0x31/0x70 [ 13.309581][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.309583][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.309591][ C3]