syzbot


UBSAN: array-index-out-of-bounds in __gfs2_iomap_get

Status: fixed on 2023/06/08 14:41
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+45d4691b1ed3c48eba05@syzkaller.appspotmail.com
Fix commit: cfcdb5bad34f gfs2: Fix inode height consistency check
First crash: 489d, last: 362d
Cause bisection: failed (error log, bisect log)
  
Discussions (11)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 4.14 08/13] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:52
[PATCH AUTOSEL 4.19 08/13] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:51
[PATCH AUTOSEL 5.4 10/18] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:50
[PATCH AUTOSEL 5.10 12/24] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:49
[PATCH AUTOSEL 5.15 13/30] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:48
[PATCH AUTOSEL 6.1 17/49] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:45
[PATCH AUTOSEL 6.2 19/53] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:43
[PATCH AUTOSEL 6.3 22/59] gfs2: Fix inode height consistency check 1 (1) 2023/05/04 19:41
[syzbot] Monthly cluster report 1 (2) 2023/03/30 10:09
[PATCH] gfs2 FS: Fix UBSAN array-index-out-of-bounds in __gfs2_iomap_get 3 (3) 2023/03/27 23:10
[syzbot] [gfs2?] UBSAN: array-index-out-of-bounds in __gfs2_iomap_get 0 (1) 2022/12/22 00:45
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/03/15 10:58 0m ivan.orlov0322@gmail.com patch upstream error OK
2023/03/15 05:09 27m ivan.orlov0322@gmail.com patch upstream OK log
2023/03/14 20:13 0m ivan.orlov0322@gmail.com patch upstream error OK
2023/03/14 19:50 2m ivan.orlov0322@gmail.com patch upstream error OK

Sample crash report:
loop0: detected capacity change from 0 to 125323
gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz"
gfs2: fsid=syz:syz: Now mounting FS (format 1801)...
================================================================================
UBSAN: array-index-out-of-bounds in fs/gfs2/bmap.c:901:46
index 11 is out of range for type 'u64 [11]'
CPU: 0 PID: 5067 Comm: syz-executor164 Not tainted 6.1.0-syzkaller-13031-g77856d911a8c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_out_of_bounds+0xe0/0x110 lib/ubsan.c:282
 __gfs2_iomap_get+0x4a4/0x16e0 fs/gfs2/bmap.c:901
 gfs2_iomap_get fs/gfs2/bmap.c:1399 [inline]
 gfs2_block_map+0x28f/0x7f0 fs/gfs2/bmap.c:1214
 gfs2_write_alloc_required+0x441/0x6e0 fs/gfs2/bmap.c:2322
 gfs2_jdesc_check+0x1b9/0x290 fs/gfs2/super.c:114
 init_journal+0x5a4/0x22c0 fs/gfs2/ops_fstype.c:804
 init_inodes+0xdc/0x340 fs/gfs2/ops_fstype.c:889
 gfs2_fill_super+0x1bb2/0x2700 fs/gfs2/ops_fstype.c:1247
 get_tree_bdev+0x400/0x620 fs/super.c:1282
 gfs2_get_tree+0x50/0x210 fs/gfs2/ops_fstype.c:1330
 vfs_get_tree+0x88/0x270 fs/super.c:1489
 do_new_mount+0x289/0xad0 fs/namespace.c:3145
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2c63567aca
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:00007ffd0e3a28d8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f2c63567aca
RDX: 0000000020037f40 RSI: 0000000020037f80 RDI: 00007ffd0e3a28e0
RBP: 00007ffd0e3a28e0 R08: 00007ffd0e3a2920 R09: 0000000000043350
R10: 0000000002000011 R11: 0000000000000282 R12: 0000000000000004
R13: 00005555567192c0 R14: 00007ffd0e3a2920 R15: 0000000000000000
 </TASK>
================================================================================

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/18 00:42 upstream 77856d911a8c 05494336 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/04/24 04:11 upstream 457391b03803 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/04/14 16:17 upstream 44149752e998 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/04/13 20:44 upstream de4664485abb 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/04/09 13:55 upstream cdc9718d5e59 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/04/07 01:43 upstream f2afccfefe7b 00ce4c67 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/04/05 03:43 upstream 76f598ba7d8e 831373d3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/04/01 04:09 upstream 5a57b48fdfcb f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/30 12:13 upstream ffe78bbd5121 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/27 17:31 upstream 197b6b60ae7b f8f96aa9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/26 11:15 upstream da8e7da11e4b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/26 03:11 upstream da8e7da11e4b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/25 03:29 upstream 1e760fa3596e 9700afae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/22 21:20 upstream a1effab7a3a3 f94b4a29 .config console log report info ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/21 06:56 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/19 06:01 upstream 534293368afa 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/05 00:20 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/04 07:04 upstream 0a3f9a6b0265 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/02 22:57 upstream 04a357b1f6f0 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/02/24 20:59 upstream d2980d8d8265 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/02/11 07:47 upstream 420b2d431d18 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/01/26 08:06 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/01/15 16:46 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/01/04 10:42 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/01/21 13:25 upstream f883675bf652 7374c4e5 .config console log report info ci-qemu-upstream-386 UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
2023/03/26 04:06 linux-next e5dbf24e8b9e fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root UBSAN: array-index-out-of-bounds in __gfs2_iomap_get
* Struck through repros no longer work on HEAD.