============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G S -------------------------------------------- syz.5.1055/22525 is trying to acquire lock: ffff88803b6d2168 (&sbi->s_alloc_mutex){+.+.}-{4:4}, at: udf_table_free_blocks fs/udf/balloc.c:376 [inline] ffff88803b6d2168 (&sbi->s_alloc_mutex){+.+.}-{4:4}, at: udf_free_blocks+0xa8c/0x1900 fs/udf/balloc.c:678 but task is already holding lock: ffff88803b6d2168 (&sbi->s_alloc_mutex){+.+.}-{4:4}, at: udf_table_new_block fs/udf/balloc.c:582 [inline] ffff88803b6d2168 (&sbi->s_alloc_mutex){+.+.}-{4:4}, at: udf_new_block+0xfb7/0x1c00 fs/udf/balloc.c:726 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.1055/22525: #0: ffff888034228500 (sb_writers#14){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:494 #1: ffff888061548398 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:1069 [inline] #1: ffff888061548398 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: __start_dirop fs/namei.c:2918 [inline] #1: ffff888061548398 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: start_dirop fs/namei.c:2942 [inline] #1: ffff888061548398 (&type->i_mutex_dir_key#8/1){+.+.}-{4:4}, at: filename_create+0x200/0x370 fs/namei.c:4955 #2: ffff8880615480c0 (&ei->i_data_sem#3){++++}-{4:4}, at: udf_map_block+0x29c/0x4280 fs/udf/inode.c:445 #3: ffff88803b6d2168 (&sbi->s_alloc_mutex){+.+.}-{4:4}, at: udf_table_new_block fs/udf/balloc.c:582 [inline] #3: ffff88803b6d2168 (&sbi->s_alloc_mutex){+.+.}-{4:4}, at: udf_new_block+0xfb7/0x1c00 fs/udf/balloc.c:726 stack backtrace: CPU: 0 UID: 0 PID: 22525 Comm: syz.5.1055 Tainted: G S syzkaller #0 PREEMPT_{RT,(full)} Tainted: [S]=CPU_OUT_OF_SPEC Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x279/0x290 kernel/locking/lockdep.c:3041 check_deadlock kernel/locking/lockdep.c:3093 [inline] validate_chain kernel/locking/lockdep.c:3895 [inline] __lock_acquire+0x24df/0x2ce0 kernel/locking/lockdep.c:5237 lock_acquire+0x106/0x350 kernel/locking/lockdep.c:5868 __mutex_lock_common kernel/locking/rtmutex_api.c:559 [inline] mutex_lock_nested+0x5a/0x1d0 kernel/locking/rtmutex_api.c:578 udf_table_free_blocks fs/udf/balloc.c:376 [inline] udf_free_blocks+0xa8c/0x1900 fs/udf/balloc.c:678 udf_delete_aext+0x4f5/0xc00 fs/udf/inode.c:2381 udf_table_new_block fs/udf/balloc.c:646 [inline] udf_new_block+0x142f/0x1c00 fs/udf/balloc.c:726 inode_getblk fs/udf/inode.c:900 [inline] udf_map_block+0x1360/0x4280 fs/udf/inode.c:453 udf_bread+0x77/0x490 fs/udf/inode.c:1248 udf_fiiter_append_blk+0x35e/0x870 fs/udf/directory.c:478 udf_fiiter_add_entry+0x15cc/0x2000 fs/udf/namei.c:284 udf_mkdir+0x25c/0x480 fs/udf/namei.c:455 vfs_mkdir+0x402/0x620 fs/namei.c:5276 filename_mkdirat+0x289/0x520 fs/namei.c:5309 __do_sys_mkdirat fs/namei.c:5330 [inline] __se_sys_mkdirat+0x35/0x150 fs/namei.c:5327 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f96aeabce87 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:00007f96ac8b0e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f96ac8b0ee0 RCX: 00007f96aeabce87 RDX: 00000000000001ff RSI: 00002000000005c0 RDI: 00000000ffffff9c RBP: 0000200000000b00 R08: 0000200000000140 R09: 0000000000000000 R10: 0000200000000b00 R11: 0000000000000246 R12: 00002000000005c0 R13: 00007f96ac8b0ea0 R14: 0000000000000000 R15: 0000000000000000 ------------[ cut here ]------------ rtmutex deadlock detected WARNING: kernel/locking/rtmutex.c:1698 at rt_mutex_handle_deadlock+0x21/0xb0 kernel/locking/rtmutex.c:1698, CPU#0: syz.5.1055/22525 Modules linked in: CPU: 0 UID: 0 PID: 22525 Comm: syz.5.1055 Tainted: G S syzkaller #0 PREEMPT_{RT,(full)} Tainted: [S]=CPU_OUT_OF_SPEC Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:rt_mutex_handle_deadlock+0x21/0xb0 kernel/locking/rtmutex.c:1698 Code: 90 90 90 90 90 90 90 90 90 41 57 41 56 41 55 41 54 53 83 ff dd 0f 85 81 00 00 00 48 89 f7 e8 16 40 01 00 48 8d 3d 2f 57 6c 04 <67> 48 0f b9 3a 4c 8d 3d 00 00 00 00 65 48 8b 1d c3 6b 57 07 4c 8d RSP: 0018:ffffc90003da6ad0 EFLAGS: 00010286 RAX: 0000000080000000 RBX: 00000000ffffffdd RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff8bca7860 RDI: ffffffff8fb30b60 RBP: ffffc90003da6c80 R08: ffffffff8faf9f37 R09: 1ffffffff1f5f3e6 R10: dffffc0000000000 R11: fffffbfff1f5f3e7 R12: 1ffff920007b4d68 R13: ffffffff8b46ae72 R14: ffff88803b6d2110 R15: dffffc0000000000 FS: 00007f96ac8b16c0(0000) GS:ffff888125c3e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000011000 CR3: 0000000028268000 CR4: 00000000003526f0 Call Trace: __rt_mutex_slowlock kernel/locking/rtmutex.c:1760 [inline] __rt_mutex_slowlock_locked kernel/locking/rtmutex.c:1787 [inline] rt_mutex_slowlock+0x73c/0x780 kernel/locking/rtmutex.c:1827 __rt_mutex_lock kernel/locking/rtmutex.c:1842 [inline] __mutex_lock_common kernel/locking/rtmutex_api.c:560 [inline] mutex_lock_nested+0x168/0x1d0 kernel/locking/rtmutex_api.c:578 udf_table_free_blocks fs/udf/balloc.c:376 [inline] udf_free_blocks+0xa8c/0x1900 fs/udf/balloc.c:678 udf_delete_aext+0x4f5/0xc00 fs/udf/inode.c:2381 udf_table_new_block fs/udf/balloc.c:646 [inline] udf_new_block+0x142f/0x1c00 fs/udf/balloc.c:726 inode_getblk fs/udf/inode.c:900 [inline] udf_map_block+0x1360/0x4280 fs/udf/inode.c:453 udf_bread+0x77/0x490 fs/udf/inode.c:1248 udf_fiiter_append_blk+0x35e/0x870 fs/udf/directory.c:478 udf_fiiter_add_entry+0x15cc/0x2000 fs/udf/namei.c:284 udf_mkdir+0x25c/0x480 fs/udf/namei.c:455 vfs_mkdir+0x402/0x620 fs/namei.c:5276 filename_mkdirat+0x289/0x520 fs/namei.c:5309 __do_sys_mkdirat fs/namei.c:5330 [inline] __se_sys_mkdirat+0x35/0x150 fs/namei.c:5327 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f96aeabce87 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:00007f96ac8b0e58 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f96ac8b0ee0 RCX: 00007f96aeabce87 RDX: 00000000000001ff RSI: 00002000000005c0 RDI: 00000000ffffff9c RBP: 0000200000000b00 R08: 0000200000000140 R09: 0000000000000000 R10: 0000200000000b00 R11: 0000000000000246 R12: 00002000000005c0 R13: 00007f96ac8b0ea0 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 41 57 push %r15 b: 41 56 push %r14 d: 41 55 push %r13 f: 41 54 push %r12 11: 53 push %rbx 12: 83 ff dd cmp $0xffffffdd,%edi 15: 0f 85 81 00 00 00 jne 0x9c 1b: 48 89 f7 mov %rsi,%rdi 1e: e8 16 40 01 00 call 0x14039 23: 48 8d 3d 2f 57 6c 04 lea 0x46c572f(%rip),%rdi # 0x46c5759 * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 4c 8d 3d 00 00 00 00 lea 0x0(%rip),%r15 # 0x36 36: 65 48 8b 1d c3 6b 57 mov %gs:0x7576bc3(%rip),%rbx # 0x7576c01 3d: 07 3e: 4c rex.WR 3f: 8d .byte 0x8d