[ 13.668863][ C3] [ 13.669034][ C3] ================================ [ 13.669264][ C3] WARNING: inconsistent lock state [ 13.669491][ C3] 6.15.0-virtme #1 Not tainted [ 13.669730][ C3] -------------------------------- [ 13.669958][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.670244][ C3] kworker/u20:0/234 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.670528][ C3] ffffffff871c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.670969][ C3] {SOFTIRQ-ON-W} state was registered at: [ 13.671200][ C3] __lock_acquire+0x20b/0x7e0 [ 13.671445][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.671671][ C3] _raw_spin_lock+0x33/0x40 [ 13.671903][ C3] simple_pin_fs+0x24/0x150 [ 13.672135][ C3] start_creating.part.0+0x52/0x310 [ 13.672375][ C3] debugfs_create_dir+0x6a/0x540 [ 13.672613][ C3] component_debug_init+0x17/0x30 [ 13.672854][ C3] do_one_initcall+0x8f/0x1e0 [ 13.673098][ C3] do_initcalls+0x176/0x280 [ 13.673342][ C3] kernel_init_freeable+0x22d/0x300 [ 13.673582][ C3] kernel_init+0x20/0x200 [ 13.673827][ C3] ret_from_fork+0x240/0x320 [ 13.674060][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.674284][ C3] irq event stamp: 1096 [ 13.674460][ C3] hardirqs last enabled at (1096): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.674938][ C3] hardirqs last disabled at (1095): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.675357][ C3] softirqs last enabled at (118): [] handle_softirqs+0x358/0x620 [ 13.675780][ C3] softirqs last disabled at (315): [] __irq_exit_rcu+0xfa/0x160 [ 13.676217][ C3] [ 13.676217][ C3] other info that might help us debug this: [ 13.676587][ C3] Possible unsafe locking scenario: [ 13.676587][ C3] [ 13.676944][ C3] CPU0 [ 13.677124][ C3] ---- [ 13.677324][ C3] lock(pin_fs_lock); [ 13.677507][ C3] [ 13.677687][ C3] lock(pin_fs_lock); [ 13.677881][ C3] [ 13.677881][ C3] *** DEADLOCK *** [ 13.677881][ C3] [ 13.678236][ C3] 2 locks held by kworker/u20:0/234: [ 13.678469][ C3] #0: ffff88800b891dd0 (&sb->s_type->i_lock_key#19){+.+.}-{3:3}, at: folio_unmap_invalidate+0x3bd/0x680 [ 13.678934][ C3] #1: ffffffff86f774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.679341][ C3] [ 13.679341][ C3] stack backtrace: [ 13.679621][ C3] CPU: 3 UID: 0 PID: 234 Comm: kworker/u20:0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.679626][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.679629][ C3] Call Trace: [ 13.679632][ C3] [ 13.679635][ C3] dump_stack_lvl+0x82/0xd0 [ 13.679642][ C3] print_usage_bug.part.0+0x25f/0x360 [ 13.679650][ C3] mark_lock_irq+0x343/0x400 [ 13.679655][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.679661][ C3] ? save_trace+0x52/0x170 [ 13.679666][ C3] mark_lock+0x174/0x2f0 [ 13.679670][ C3] mark_usage+0x46/0x150 [ 13.679673][ C3] __lock_acquire+0x20b/0x7e0 [ 13.679677][ C3] ? __lock_acquire+0x44d/0x7e0 [ 13.679681][ C3] lock_acquire.part.0+0xb6/0x240 [ 13.679685][ C3] ? simple_pin_fs+0x24/0x150 [ 13.679691][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.679697][ C3] ? lock_acquire+0x10c/0x170 [ 13.679700][ C3] ? simple_pin_fs+0x24/0x150 [ 13.679703][ C3] _raw_spin_lock+0x33/0x40 [ 13.679708][ C3] ? simple_pin_fs+0x24/0x150 [ 13.679710][ C3] simple_pin_fs+0x24/0x150 [ 13.679714][ C3] debugfs_remove+0x35/0x70 [ 13.679719][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.679725][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.679728][ C3] ? __sk_destruct+0x383/0x780 [ 13.679735][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.679738][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.679740][ C3] ? irq_exit_rcu+0xe/0x30 [ 13.679746][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.679751][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.679756][ C3] ? _raw_spin_unlock_irq+0x2e/0x50 [ 13.679760][ C3] ? folio_unmap_invalidate+0x43e/0x680 [ 13.679763][ C3] ? invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.679767][ C3] ? fuse_open+0x423/0x6e0 [ 13.679771][ C3] ? do_dentry_open+0x433/0x10a0 [ 13.679776][ C3] ? vfs_open+0x82/0x350 [ 13.679781][ C3] ? backing_file_open+0x8a/0xf0 [ 13.679786][ C3] ? ovl_open_realfile+0x221/0x330 [ 13.679794][ C3] __put_net+0x19/0x60 [ 13.679799][ C3] __sk_destruct+0x58a/0x780 [ 13.679803][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.679806][ C3] rcu_do_batch+0x34c/0xf20 [ 13.679810][ C3] ? find_held_lock+0x2b/0x80 [ 13.679814][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.679818][ C3] ? mark_held_locks+0x49/0x80 [ 13.679821][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.679824][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.679829][ C3] rcu_core+0x2bb/0x500 [ 13.679835][ C3] handle_softirqs+0x218/0x620 [ 13.679840][ C3] __irq_exit_rcu+0xfa/0x160 [ 13.679844][ C3] irq_exit_rcu+0xe/0x30 [ 13.679847][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.679850][ C3] [ 13.679851][ C3] [ 13.679853][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.679856][ C3] RIP: 0010:_raw_spin_unlock_irq+0x2e/0x50 [ 13.679860][ C3] Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 25 ff 81 fd 48 89 ef e8 dd 51 82 fd e8 18 0a a8 fd fb bf 01 00 00 00 6d 4f 76 fd 65 8b 05 86 bd 96 02 85 c0 74 06 5d c3 cc cc cc cc [ 13.679863][ C3] RSP: 0018:ffffc900004f7478 EFLAGS: 00000206 [ 13.679867][ C3] RAX: 0000000000000139 RBX: ffffea00002c5140 RCX: 0000000000000040 [ 13.679869][ C3] RDX: 0000000000000000 RSI: ffffffff86a9175c RDI: 0000000000000001 [ 13.679870][ C3] RBP: ffff88800b891f50 R08: 0000000000000001 R09: 0000000000000001 [ 13.679872][ C3] R10: ffffffff879e7cd7 R11: dffffc0000000000 R12: ffff88800b891f48 [ 13.679874][ C3] R13: ffff88800b891f50 R14: ffffea00002c5158 R15: dffffc0000000000 [ 13.679880][ C3] ? _raw_spin_unlock_irq+0x28/0x50 [ 13.679883][ C3] folio_unmap_invalidate+0x43e/0x680 [ 13.679887][ C3] invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.679890][ C3] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 13.679898][ C3] ? __pfx_invalidate_inode_pages2_range+0x10/0x10 [ 13.679901][ C3] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.679908][ C3] ? validate_chain+0x166/0x4d0 [ 13.679918][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.679928][ C3] ? fuse_file_io_open+0x320/0x470 [ 13.679935][ C3] fuse_open+0x423/0x6e0 [ 13.679939][ C3] do_dentry_open+0x433/0x10a0 [ 13.679942][ C3] ? __pfx_fuse_open+0x10/0x10 [ 13.679947][ C3] vfs_open+0x82/0x350 [ 13.679951][ C3] backing_file_open+0x8a/0xf0 [ 13.679954][ C3] ? inode_owner_or_capable+0xad/0x170 [ 13.679959][ C3] ovl_open_realfile+0x221/0x330 [ 13.679964][ C3] ovl_open+0x1a1/0x2e0 [ 13.679968][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.679970][ C3] ? __lock_release+0x5d/0x170 [ 13.679976][ C3] do_dentry_open+0x433/0x10a0 [ 13.679978][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.679983][ C3] vfs_open+0x82/0x350 [ 13.679988][ C3] do_open+0x591/0xb60 [ 13.679994][ C3] path_openat+0x1e2/0x380 [ 13.679998][ C3] ? __pfx_path_openat+0x10/0x10 [ 13.680001][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 13.680005][ C3] ? kernel_text_address+0x17/0xe0 [ 13.680011][ C3] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 13.680017][ C3] do_filp_open+0x1d7/0x420 [ 13.680021][ C3] ? __pfx_do_filp_open+0x10/0x10 [ 13.680027][ C3] ? __pfx_page_put_link+0x10/0x10 [ 13.680035][ C3] ? __create_object+0x5e/0xb0 [ 13.680038][ C3] ? __lock_release+0x5d/0x170 [ 13.680041][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.680046][ C3] do_open_execat+0xaa/0x2e0 [ 13.680049][ C3] ? __pfx_do_open_execat+0x10/0x10 [ 13.680052][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.680055][ C3] ? kmem_cache_alloc_noprof+0x149/0x330 [ 13.680064][ C3] alloc_bprm+0x1e/0x390 [ 13.680067][ C3] kernel_execve+0x89/0x2f0 [ 13.680071][ C3] call_usermodehelper_exec_async+0x23e/0x460 [ 13.680077][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.680080][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.680083][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.680086][ C3] ret_from_fork+0x240/0x320 [ 13.680092][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.680095][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.680102][ C3] [ 13.707707][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.708091][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 234, name: kworker/u20:0 [ 13.708599][ C3] preempt_count: 102, expected: 0 [ 13.708817][ C3] RCU nest depth: 0, expected: 0 [ 13.709049][ C3] INFO: lockdep is turned off. [ 13.709277][ C3] Preemption disabled at: [ 13.709279][ C3] [<0000000000000000>] 0x0 [ 13.709793][ C3] CPU: 3 UID: 0 PID: 234 Comm: kworker/u20:0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.709799][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.709801][ C3] Call Trace: [ 13.709803][ C3] [ 13.709806][ C3] dump_stack_lvl+0xb0/0xd0 [ 13.709817][ C3] __might_resched+0x360/0x5a0 [ 13.709827][ C3] down_write+0x72/0x210 [ 13.709832][ C3] ? __pfx_down_write+0x10/0x10 [ 13.709835][ C3] ? simple_recursive_removal+0x33/0x610 [ 13.709841][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.709849][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.709853][ C3] simple_recursive_removal+0x6a/0x610 [ 13.709856][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.709859][ C3] ? __pfx_remove_one+0x10/0x10 [ 13.709866][ C3] debugfs_remove+0x44/0x70 [ 13.709869][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 13.709877][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.709879][ C3] ? __sk_destruct+0x383/0x780 [ 13.709886][ C3] ? rcu_do_batch+0x34c/0xf20 [ 13.709891][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.709894][ C3] ? irq_exit_rcu+0xe/0x30 [ 13.709901][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.709906][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.709911][ C3] ? _raw_spin_unlock_irq+0x2e/0x50 [ 13.709916][ C3] ? folio_unmap_invalidate+0x43e/0x680 [ 13.709921][ C3] ? invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.709924][ C3] ? fuse_open+0x423/0x6e0 [ 13.709928][ C3] ? do_dentry_open+0x433/0x10a0 [ 13.709932][ C3] ? vfs_open+0x82/0x350 [ 13.709937][ C3] ? backing_file_open+0x8a/0xf0 [ 13.709941][ C3] ? ovl_open_realfile+0x221/0x330 [ 13.709949][ C3] __put_net+0x19/0x60 [ 13.709954][ C3] __sk_destruct+0x58a/0x780 [ 13.709959][ C3] ? rcu_do_batch+0x34a/0xf20 [ 13.709962][ C3] rcu_do_batch+0x34c/0xf20 [ 13.709965][ C3] ? find_held_lock+0x2b/0x80 [ 13.709972][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.709977][ C3] ? mark_held_locks+0x49/0x80 [ 13.709983][ C3] ? note_gp_changes+0x182/0x1e0 [ 13.709987][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.709993][ C3] rcu_core+0x2bb/0x500 [ 13.710000][ C3] handle_softirqs+0x218/0x620 [ 13.710007][ C3] __irq_exit_rcu+0xfa/0x160 [ 13.710011][ C3] irq_exit_rcu+0xe/0x30 [ 13.710015][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.710020][ C3] [ 13.710021][ C3] [ 13.710024][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.710028][ C3] RIP: 0010:_raw_spin_unlock_irq+0x2e/0x50 [ 13.710034][ C3] Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 25 ff 81 fd 48 89 ef e8 dd 51 82 fd e8 18 0a a8 fd fb bf 01 00 00 00 6d 4f 76 fd 65 8b 05 86 bd 96 02 85 c0 74 06 5d c3 cc cc cc cc [ 13.710038][ C3] RSP: 0018:ffffc900004f7478 EFLAGS: 00000206 [ 13.710044][ C3] RAX: 0000000000000139 RBX: ffffea00002c5140 RCX: 0000000000000040 [ 13.710048][ C3] RDX: 0000000000000000 RSI: ffffffff86a9175c RDI: 0000000000000001 [ 13.710050][ C3] RBP: ffff88800b891f50 R08: 0000000000000001 R09: 0000000000000001 [ 13.710052][ C3] R10: ffffffff879e7cd7 R11: dffffc0000000000 R12: ffff88800b891f48 [ 13.710054][ C3] R13: ffff88800b891f50 R14: ffffea00002c5158 R15: dffffc0000000000 [ 13.710060][ C3] ? _raw_spin_unlock_irq+0x28/0x50 [ 13.710064][ C3] folio_unmap_invalidate+0x43e/0x680 [ 13.710068][ C3] invalidate_inode_pages2_range+0x2fa/0x8c0 [ 13.710072][ C3] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 13.710080][ C3] ? __pfx_invalidate_inode_pages2_range+0x10/0x10 [ 13.710083][ C3] ? rcu_read_lock_any_held+0x43/0xb0 [ 13.710089][ C3] ? validate_chain+0x166/0x4d0 [ 13.710100][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 13.710110][ C3] ? fuse_file_io_open+0x320/0x470 [ 13.710117][ C3] fuse_open+0x423/0x6e0 [ 13.710121][ C3] do_dentry_open+0x433/0x10a0 [ 13.710124][ C3] ? __pfx_fuse_open+0x10/0x10 [ 13.710128][ C3] vfs_open+0x82/0x350 [ 13.710133][ C3] backing_file_open+0x8a/0xf0 [ 13.710135][ C3] ? inode_owner_or_capable+0xad/0x170 [ 13.710142][ C3] ovl_open_realfile+0x221/0x330 [ 13.710147][ C3] ovl_open+0x1a1/0x2e0 [ 13.710150][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.710153][ C3] ? __lock_release+0x5d/0x170 [ 13.710158][ C3] do_dentry_open+0x433/0x10a0 [ 13.710161][ C3] ? __pfx_ovl_open+0x10/0x10 [ 13.710165][ C3] vfs_open+0x82/0x350 [ 13.710170][ C3] do_open+0x591/0xb60 [ 13.710176][ C3] path_openat+0x1e2/0x380 [ 13.710180][ C3] ? __pfx_path_openat+0x10/0x10 [ 13.710183][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 13.710187][ C3] ? kernel_text_address+0x17/0xe0 [ 13.710193][ C3] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 13.710199][ C3] do_filp_open+0x1d7/0x420 [ 13.710203][ C3] ? __pfx_do_filp_open+0x10/0x10 [ 13.710209][ C3] ? __pfx_page_put_link+0x10/0x10 [ 13.710217][ C3] ? __create_object+0x5e/0xb0 [ 13.710220][ C3] ? __lock_release+0x5d/0x170 [ 13.710224][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.710229][ C3] do_open_execat+0xaa/0x2e0 [ 13.710232][ C3] ? __pfx_do_open_execat+0x10/0x10 [ 13.710235][ C3] ? rcu_is_watching+0x12/0xc0 [ 13.710239][ C3] ? kmem_cache_alloc_noprof+0x149/0x330 [ 13.710247][ C3] alloc_bprm+0x1e/0x390 [ 13.710251][ C3] kernel_execve+0x89/0x2f0 [ 13.710255][ C3] call_usermodehelper_exec_async+0x23e/0x460 [ 13.710260][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.710264][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.710267][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.710270][ C3] ret_from_fork+0x240/0x320 [ 13.710276][ C3] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.710279][ C3] ret_from_fork_asm+0x1a/0x30 [ 13.710285][ C3]