EXT4-fs (loop2): barriers disabled EXT4-fs (loop2): mounted filesystem with ordered data mode. Opts: commit=0xffffffffffffffff,noacl,abort,nobarrier,nobarrier,min_batch_time=0x0000000000000005,min_batch_time=0x0000000000000001,,errors=continue. Quota mode: none. ============================================ WARNING: possible recursive locking detected syzkaller #0 Not tainted -------------------------------------------- syz.2.3376/12893 is trying to acquire lock: ffff888024a703f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:805 [inline] ffff888024a703f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_bmap+0x4f/0x3f0 fs/ext4/inode.c:3167 but task is already holding lock: ffff88805f5b03f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] ffff88805f5b03f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_fallocate+0x21a/0x1e50 fs/ext4/extents.c:4820 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sb->s_type->i_mutex_key#9); lock(&sb->s_type->i_mutex_key#9); *** DEADLOCK *** May be due to missing lock nesting notation 3 locks held by syz.2.3376/12893: #0: ffff8880202a4460 (sb_writers#5){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3056 [inline] #0: ffff8880202a4460 (sb_writers#5){.+.+}-{0:0}, at: vfs_fallocate+0x4f1/0x6f0 fs/open.c:307 #1: ffff88805f5b03f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline] #1: ffff88805f5b03f0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_fallocate+0x21a/0x1e50 fs/ext4/extents.c:4820 #2: ffff8880765e6170 (&journal->j_barrier){+.+.}-{3:3}, at: jbd2_journal_lock_updates+0x2ce/0x390 fs/jbd2/transaction.c:905 stack backtrace: CPU: 0 PID: 12893 Comm: syz.2.3376 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call Trace: dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106 check_deadlock kernel/locking/lockdep.c:3053 [inline] validate_chain kernel/locking/lockdep.c:3847 [inline] __lock_acquire+0x68d3/0x7e20 kernel/locking/lockdep.c:5134 lock_acquire+0x19f/0x400 kernel/locking/lockdep.c:5751 down_read+0x44/0x2e0 kernel/locking/rwsem.c:1498 inode_lock_shared include/linux/fs.h:805 [inline] ext4_bmap+0x4f/0x3f0 fs/ext4/inode.c:3167 bmap+0xa2/0xd0 fs/inode.c:1828 jbd2_journal_bmap fs/jbd2/journal.c:981 [inline] jbd2_fc_get_buf+0x17b/0x350 fs/jbd2/journal.c:894 ext4_fc_reserve_space+0x4fa/0x890 fs/ext4/fast_commit.c:705 ext4_fc_add_tlv+0xab/0x570 fs/ext4/fast_commit.c:797 ext4_fc_perform_commit fs/ext4/fast_commit.c:1122 [inline] ext4_fc_commit+0xb08/0x1380 fs/ext4/fast_commit.c:1235 ext4_fallocate+0xd04/0x1e50 fs/ext4/extents.c:4851 vfs_fallocate+0x57e/0x6f0 fs/open.c:308 ksys_fallocate fs/open.c:331 [inline] __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __x64_sys_fallocate+0xbd/0x100 fs/open.c:337 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f20e6648519 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f20e4895028 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f20e68d4fa0 RCX: 00007f20e6648519 RDX: 0000000000080000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f20e66d8136 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f20e68d5038 R14: 00007f20e68d4fa0 R15: 00007ffde3cd8828