syzbot
WARNING in ext4_iomap_begin (2)
Status:
fixed on 2025/07/16 19:57
Bug presence:
origin:upstream
[Documentation on labels]
Reported-by: syzbot+4a5bebb2e92f052563af@syzkaller.appspotmail.com
Fix commit:
1a77a028a392
ext4: ensure i_size is smaller than maxbytes
First crash: 512d, last: 427d
Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9929 at fs/ext4/inode.c:3466 ext4_iomap_begin+0x977/0xae0 fs/ext4/inode.c:3466
Modules linked in:
CPU: 0 PID: 9929 Comm: syz.3.1362 Not tainted 6.1.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:ext4_iomap_begin+0x977/0xae0 fs/ext4/inode.c:3466
Code: 3b 84 24 20 01 00 00 75 6d 44 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 d3 98 5d ff e9 73 ff ff ff e8 c9 98 5d ff <0f> 0b 41 be de ff ff ff 49 bf 00 00 00 00 00 fc ff df eb 85 89 d9
RSP: 0018:ffffc9000c8c7020 EFLAGS: 00010287
RAX: ffffffff82233da7 RBX: ffff88805480a192 RCX: 0000000000080000
RDX: ffffc9000ead9000 RSI: 0000000000019df8 RDI: 0000000000019df9
RBP: ffffc9000c8c7190 R08: dffffc0000000000 R09: ffffed100a9013ce
R10: ffffed100a9013ce R11: 1ffff1100a9013cd R12: 00000000000000d4
R13: 1ffff1100a901432 R14: 000000000000000a R15: 0000000000000000
FS: 00007f22ace656c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2f218ff8 CR3: 0000000062266000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
iomap_iter+0x6c6/0x1040 fs/iomap/iter.c:91
__iomap_dio_rw+0xcba/0x1dd0 fs/iomap/direct-io.c:601
iomap_dio_rw+0x41/0xa0 fs/iomap/direct-io.c:690
ext4_dio_write_iter fs/ext4/file.c:557 [inline]
ext4_file_write_iter+0x1262/0x16e0 fs/ext4/file.c:677
do_iter_readv_writev fs/read_write.c:-1 [inline]
do_iter_write+0x62d/0xaf0 fs/read_write.c:861
iter_file_splice_write+0x665/0xc50 fs/splice.c:685
do_splice_from fs/splice.c:763 [inline]
direct_splice_actor+0xe1/0x130 fs/splice.c:950
splice_direct_to_actor+0x480/0xb60 fs/splice.c:896
do_splice_direct+0x1b0/0x2b0 fs/splice.c:1002
do_sendfile+0x5cc/0xeb0 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64+0x13b/0x190 fs/read_write.c:1309
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f22abf8e929
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f22ace65038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f22ac1b6080 RCX: 00007f22abf8e929
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007f22ac010b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000014000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007f22ac1b6080 R15: 00007ffebeb0cbc8
</TASK>
* Struck through repros no longer work on HEAD.