============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.1.10/5888 is trying to acquire lock: ffff88803008a528 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_table_free_blocks fs/udf/balloc.c:392 [inline] ffff88803008a528 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_free_blocks+0x9a6/0x17e0 fs/udf/balloc.c:694 but task is already holding lock: ffff88803008a528 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_table_new_block fs/udf/balloc.c:598 [inline] ffff88803008a528 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_new_block+0xe29/0x1a00 fs/udf/balloc.c:742 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.1.10/5888: #0: ffff88805bfde418 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:412 #1: ffff88805d7a8920 (&type->i_mutex_dir_key#11/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:839 [inline] #1: ffff88805d7a8920 (&type->i_mutex_dir_key#11/1){+.+.}-{3:3}, at: filename_create+0x20f/0x450 fs/namei.c:3890 #2: ffff88805d7a8738 (&ei->i_data_sem#2){++++}-{3:3}, at: udf_map_block+0x29f/0x40c0 fs/udf/inode.c:443 #3: ffff88803008a528 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_table_new_block fs/udf/balloc.c:598 [inline] #3: ffff88803008a528 (&sbi->s_alloc_mutex){+.+.}-{3:3}, at: udf_new_block+0xe29/0x1a00 fs/udf/balloc.c:742 stack backtrace: CPU: 0 PID: 5888 Comm: syz.1.10 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 check_deadlock kernel/locking/lockdep.c:3062 [inline] validate_chain kernel/locking/lockdep.c:3856 [inline] __lock_acquire+0x6809/0x7d80 kernel/locking/lockdep.c:5137 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5754 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0x135/0xc80 kernel/locking/mutex.c:747 udf_table_free_blocks fs/udf/balloc.c:392 [inline] udf_free_blocks+0x9a6/0x17e0 fs/udf/balloc.c:694 udf_delete_aext+0x4f6/0xbf0 fs/udf/inode.c:2376 udf_table_new_block fs/udf/balloc.c:662 [inline] udf_new_block+0x127b/0x1a00 fs/udf/balloc.c:742 inode_getblk fs/udf/inode.c:899 [inline] udf_map_block+0x127b/0x40c0 fs/udf/inode.c:451 udf_bread+0x78/0x3e0 fs/udf/inode.c:1247 udf_fiiter_append_blk+0x35f/0x860 fs/udf/directory.c:477 udf_fiiter_add_entry+0x1584/0x1f40 fs/udf/namei.c:288 udf_mkdir+0x266/0x660 fs/udf/namei.c:459 vfs_mkdir+0x2a5/0x470 fs/namei.c:4121 do_mkdirat+0x1dc/0x450 fs/namei.c:4144 __do_sys_mkdirat fs/namei.c:4159 [inline] __se_sys_mkdirat fs/namei.c:4157 [inline] __x64_sys_mkdirat+0x89/0xa0 fs/namei.c:4157 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fe2fd99ccc7 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:00007fe2fe8f0e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007fe2fe8f0ee0 RCX: 00007fe2fd99ccc7 RDX: 00000000000001ff RSI: 0000200000000040 RDI: 00000000ffffff9c RBP: 0000200000000000 R08: 00002000000000c0 R09: 0000000000000000 R10: 0000200000000000 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fe2fe8f0ea0 R14: 0000000000000000 R15: 0000000000000000