syzbot


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

Status: upstream: reported C repro on 2022/10/04 09:00
Reported-by: syzbot+ae2f5a27a07ae44b0f17@syzkaller.appspotmail.com
First crash: 61d, last: 12d

Cause bisection: failed (bisect log)
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: use-after-free Read in dbAllocBits C error 2 41d 62d 0/1 upstream: reported C repro on 2022/10/01 12:57

Sample crash report:
loop0: detected capacity change from 0 to 32768
================================================================================
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:2222:23
index 128 is out of range for type 's64 [128]'
CPU: 0 PID: 3604 Comm: syz-executor185 Not tainted 6.0.0-syzkaller-07994-ge8bc52cb8df8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 ubsan_epilogue+0xb/0x50 lib/ubsan.c:151
 __ubsan_handle_out_of_bounds.cold+0x62/0x6c lib/ubsan.c:283
 dbAllocBits+0x50f/0x5f0 fs/jfs/jfs_dmap.c:2222
 dbAllocDmap+0x61/0x110 fs/jfs/jfs_dmap.c:1999
 dbAllocNext+0x34a/0x410 fs/jfs/jfs_dmap.c:1152
 dbAlloc+0x323/0xa70 fs/jfs/jfs_dmap.c:786
 extBalloc fs/jfs/jfs_extent.c:321 [inline]
 extAlloc+0x4e7/0xeb0 fs/jfs/jfs_extent.c:122
 jfs_get_block+0x661/0xa90 fs/jfs/inode.c:248
 __block_write_begin_int+0x3ca/0x1520 fs/buffer.c:2006
 __block_write_begin fs/buffer.c:2056 [inline]
 block_write_begin+0xb5/0x4d0 fs/buffer.c:2117
 jfs_write_begin+0x2d/0xd0 fs/jfs/inode.c:304
 generic_perform_write+0x246/0x560 mm/filemap.c:3745
 __generic_file_write_iter+0x2aa/0x4d0 mm/filemap.c:3873
 generic_file_write_iter+0xdf/0x350 mm/filemap.c:3905
 call_write_iter include/linux/fs.h:2190 [inline]
 do_iter_readv_writev+0x20b/0x3b0 fs/read_write.c:735
 do_iter_write+0x182/0x700 fs/read_write.c:861
 vfs_writev+0x1aa/0x630 fs/read_write.c:934
 do_pwritev fs/read_write.c:1031 [inline]
 __do_sys_pwritev fs/read_write.c:1078 [inline]
 __se_sys_pwritev fs/read_write.c:1073 [inline]
 __x64_sys_pwritev+0x22b/0x310 fs/read_write.c:1073
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6f7bfb3e69
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe5b1ceba8 EFLAGS: 00000246 ORIG_RAX: 0000000000000128
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6f7bfb3e69
RDX: 0000000000000001 RSI: 0000000020002200 RDI: 0000000000000003
RBP: 00007f6f7bf73630 R08: 0000000000000000 R09: 00007f6f7bf73630
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00080000000000f8 R15: 0000000000000000
 </TASK>
================================================================================

Crashes (217):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/10/08 21:15 upstream e8bc52cb8df8 aea5da89 .config log report syz C UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-kasan-gce-root 2022/10/04 00:48 upstream 4fe89d07dcc2 feb56351 .config log report syz C UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/03 06:40 upstream a962b54e162c feb56351 .config log report syz C UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-kasan-gce-root 2022/10/02 17:36 upstream b357fd1c2afc feb56351 .config log report syz C UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-linux-next-kasan-gce-root 2022/10/30 18:20 linux-next 4d48f589d294 2a71366b .config log report syz C UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-kasan-gce-root 2022/10/07 05:39 upstream ffb39098bf87 8a212197 .config log report syz C KASAN: slab-out-of-bounds Read in dbAllocBits
ci-upstream-linux-next-kasan-gce-root 2022/10/31 21:25 linux-next 4d48f589d294 2a71366b .config log report syz C KASAN: use-after-free Read in dbAllocBits
ci2-upstream-fs 2022/11/20 10:42 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/19 17:04 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/06 00:01 upstream b208b9fbbcba 6d752409 .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/03 12:22 upstream b229b6ca5abb 7a2ebf95 .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/03 08:49 upstream b229b6ca5abb 7a2ebf95 .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/03 07:45 upstream b229b6ca5abb 7a2ebf95 .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/03 02:58 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/03 01:12 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/02 23:00 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/02 21:49 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/02 14:41 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/02 08:40 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/02 02:24 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/02 01:09 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 18:11 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 16:36 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 15:35 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-kasan-gce-root 2022/11/01 13:52 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 12:46 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 11:32 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 08:14 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 06:46 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 04:39 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/11/01 03:03 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 23:53 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 22:31 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 21:03 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 19:09 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 16:58 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 15:38 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 14:36 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 13:14 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 11:33 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 08:44 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 06:51 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 05:49 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 04:48 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 03:34 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-kasan-gce-root 2022/10/31 01:58 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/31 00:39 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/30 22:58 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/30 20:44 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/30 17:29 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/30 16:25 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/30 15:18 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/30 13:58 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci2-upstream-fs 2022/10/30 12:52 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-kasan-gce-selinux-root 2022/10/29 01:37 upstream b229b6ca5abb ea12ae9b .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
ci-upstream-kasan-gce-smack-root 2022/10/20 11:48 upstream 55be6084c8e0 b31320fc .config log report info UBSAN: array-index-out-of-bounds in dbAllocBits
* Struck through repros no longer work on HEAD.