syzbot


WARNING in iomap_read_inline_data

Status: fixed on 2023/02/24 13:50
Subsystems: gfs2 iomap
[Documentation on labels]
Reported-by: syzbot+7bb81dfa9cda07d9cd9d@syzkaller.appspotmail.com
Fix commit: 70376c7ff312 gfs2: Always check inode size of inline inodes
First crash: 683d, last: 665d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 4.19/5.4/5.10 0/1] gfs2: Always check inode size of inline inodes 4 (4) 2023/04/03 13:27
[syzbot] WARNING in iomap_read_inline_data 2 (3) 2022/12/04 16:36

Sample crash report:
gfs2: fsid=syz:syz: Now mounting FS (format 1801)...
gfs2: fsid=syz:syz.0: journal 0 mapped with 3 extents in 0ms
gfs2: fsid=syz:syz.0: first mount done, others may mount
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5068 at fs/iomap/buffered-io.c:226 iomap_read_inline_data+0x48c/0x570 fs/iomap/buffered-io.c:226
Modules linked in:
CPU: 0 PID: 5068 Comm: syz-executor159 Not tainted 6.1.0-syzkaller-13031-g77856d911a8c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:iomap_read_inline_data+0x48c/0x570 fs/iomap/buffered-io.c:226
Code: 80 3c 02 00 0f 85 ca 00 00 00 48 8b 5d 28 e9 d4 fe ff ff e8 c6 6e 84 ff 0f 0b 41 bc fb ff ff ff e9 73 fd ff ff e8 b4 6e 84 ff <0f> 0b 41 bc fb ff ff ff e9 61 fd ff ff e8 a2 6e 84 ff 0f 0b 41 bc
RSP: 0018:ffffc90003c2f0d0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc90003c2f2a0 RCX: 0000000000000000
RDX: ffff8880208c57c0 RSI: ffffffff81fce24c RDI: 0000000000000006
RBP: ffffea0001cb2ac0 R08: 0000000000000006 R09: 0000000000001000
R10: 00000040000000c0 R11: 0000000000000000 R12: 0000000000000000
R13: ffffc90003c2f2c8 R14: 00000040000000c0 R15: 0000000000001000
FS:  00005555570e8300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc56411000 CR3: 0000000025d9a000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 iomap_readpage_iter+0x422/0xc40 fs/iomap/buffered-io.c:269
 iomap_read_folio+0x2a9/0x6a0 fs/iomap/buffered-io.c:343
 gfs2_read_folio+0x14f/0x720 fs/gfs2/aops.c:456
 filemap_read_folio+0xdb/0x2c0 mm/filemap.c:2426
 do_read_cache_folio+0x1df/0x510 mm/filemap.c:3553
 do_read_cache_page mm/filemap.c:3595 [inline]
 read_cache_page+0x5d/0x160 mm/filemap.c:3604
 gfs2_internal_read+0xd6/0x550 fs/gfs2/aops.c:494
 read_rindex_entry+0x1b1/0x12b0 fs/gfs2/rgrp.c:906
 gfs2_ri_update+0x73/0x570 fs/gfs2/rgrp.c:1001
 gfs2_rindex_update+0x420/0x4b0 fs/gfs2/rgrp.c:1051
 init_inodes+0x1fa7/0x2830 fs/gfs2/ops_fstype.c:917
 gfs2_fill_super+0x1a08/0x27a0 fs/gfs2/ops_fstype.c:1247
 get_tree_bdev+0x444/0x760 fs/super.c:1282
 gfs2_get_tree+0x4e/0x270 fs/gfs2/ops_fstype.c:1330
 vfs_get_tree+0x8d/0x2f0 fs/super.c:1489
 do_new_mount fs/namespace.c:3145 [inline]
 path_mount+0x132a/0x1e20 fs/namespace.c:3475
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount fs/namespace.c:3674 [inline]
 __x64_sys_mount+0x283/0x300 fs/namespace.c:3674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcd1dc72dca
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc56410378 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fcd1dc72dca
RDX: 00000000200124c0 RSI: 0000000020012500 RDI: 00007ffc56410380
RBP: 00007ffc56410380 R08: 00007ffc564103c0 R09: 0000000000012511
R10: 0000000000000819 R11: 0000000000000282 R12: 0000000000000004
R13: 00005555570e82c0 R14: 00007ffc564103c0 R15: 0000000000000000
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/17 06:42 upstream 77856d911a8c 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in iomap_read_inline_data
2022/11/29 11:21 upstream ca57f02295f1 ca9683b8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in iomap_read_inline_data
2022/11/28 21:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 247de55b .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 WARNING in iomap_read_inline_data
* Struck through repros no longer work on HEAD.