============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.5.164/5040 is trying to acquire lock: ffff888055a07128 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_table_free_blocks fs/udf/balloc.c:395 [inline] ffff888055a07128 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_free_blocks+0x9a7/0x17f0 fs/udf/balloc.c:686 but task is already holding lock: ffff888055a07128 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_table_new_block fs/udf/balloc.c:594 [inline] ffff888055a07128 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_new_block+0xe15/0x1990 fs/udf/balloc.c:734 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sbi->s_alloc_mutex); lock(&sbi->s_alloc_mutex); *** DEADLOCK *** May be due to missing lock nesting notation 4 locks held by syz.5.164/5040: #0: ffff88807aba2460 (sb_writers#21){.+.+}-{0:0}, at: mnt_want_write+0x3d/0x90 fs/namespace.c:402 #1: ffff8880721d0910 (&type->i_mutex_dir_key#10/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline] #1: ffff8880721d0910 (&type->i_mutex_dir_key#10/1){+.+.}-{3:3}, at: filename_create+0x20b/0x450 fs/namei.c:3884 #2: ffff888055720738 (&ei->i_data_sem#2){++++}-{3:3}, at: udf_get_block+0xff/0x41a0 fs/udf/inode.c:346 #3: ffff888055a07128 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_table_new_block fs/udf/balloc.c:594 [inline] #3: ffff888055a07128 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_new_block+0xe15/0x1990 fs/udf/balloc.c:734 stack backtrace: CPU: 0 PID: 5040 Comm: syz.5.164 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106 __lock_acquire+0x12c8/0x7c40 kernel/locking/lockdep.c:-1 lock_acquire+0x1bb/0x4a0 kernel/locking/lockdep.c:5676 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x12d/0xae0 kernel/locking/mutex.c:747 udf_table_free_blocks fs/udf/balloc.c:395 [inline] udf_free_blocks+0x9a7/0x17f0 fs/udf/balloc.c:686 udf_delete_aext+0x4c4/0xba0 fs/udf/inode.c:2210 udf_table_new_block fs/udf/balloc.c:654 [inline] udf_new_block+0x122f/0x1990 fs/udf/balloc.c:734 inode_getblk fs/udf/inode.c:746 [inline] udf_get_block+0x11fe/0x41a0 fs/udf/inode.c:359 udf_bread+0xfc/0x4d0 fs/udf/inode.c:1093 udf_fiiter_append_blk+0x354/0x870 fs/udf/directory.c:462 udf_fiiter_add_entry+0x14ae/0x1e00 fs/udf/namei.c:292 udf_mkdir+0x14c/0x460 fs/udf/namei.c:436 vfs_mkdir+0x386/0x570 fs/namei.c:4114 do_mkdirat+0x1d8/0x440 fs/namei.c:4139 __do_sys_mkdirat fs/namei.c:4154 [inline] __se_sys_mkdirat fs/namei.c:4152 [inline] __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4152 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f556c19ccc7 Code: 00 66 90 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 db f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 90 b8 02 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f556cfe7e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f556cfe7ee0 RCX: 00007f556c19ccc7 RDX: 00000000000001ff RSI: 0000200000000040 RDI: 00000000ffffff9c RBP: 0000200000000000 R08: 00002000000000c0 R09: 0000000000000000 R10: 0000200000000000 R11: 0000000000000246 R12: 0000200000000040 R13: 00007f556cfe7ea0 R14: 0000000000000000 R15: 0000000000000000