syzbot


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

Status: upstream: reported on 2022/10/04 08:50
Reported-by: syzbot+76a072c2f8a60280bd70@syzkaller.appspotmail.com
First crash: 54d, last: 4d08h

Sample crash report:
================================================================================
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:270:11
index 19 is out of range for type 'xad_t [18]'
CPU: 0 PID: 1899 Comm: syz-executor.5 Not tainted 6.1.0-rc6-syzkaller #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/0x28e lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_out_of_bounds+0xdb/0x130 lib/ubsan.c:283
 xtSearch+0x1114/0x1cb0 fs/jfs/jfs_xtree.c:270
 xtLookup+0x235/0x880 fs/jfs/jfs_xtree.c:152
 extHint+0x204/0x630 fs/jfs/jfs_extent.c:215
 jfs_get_block+0x2e3/0xce0 fs/jfs/inode.c:246
 __block_write_begin_int+0x54c/0x1a80 fs/buffer.c:1991
 __block_write_begin fs/buffer.c:2041 [inline]
 block_write_begin+0x93/0x1e0 fs/buffer.c:2102
 jfs_write_begin+0x2d/0x60 fs/jfs/inode.c:304
 generic_perform_write+0x2e4/0x5e0 mm/filemap.c:3753
 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3881
 generic_file_write_iter+0xab/0x310 mm/filemap.c:3913
 call_write_iter include/linux/fs.h:2191 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x7dc/0xc50 fs/read_write.c:584
 ksys_write+0x177/0x2a0 fs/read_write.c:637
 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:0x7f196c08c189
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f196ce8b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f196c1abf80 RCX: 00007f196c08c189
RDX: 0000000001670e68 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007f196c0e7b01 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd4ba37d3f R14: 00007f196ce8b300 R15: 0000000000022000
 </TASK>
================================================================================

Crashes (21):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/22 16:30 upstream eb7081409f94 9da37ae8 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/21 14:26 upstream eb7081409f94 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/19 05:56 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/16 21:51 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/16 17:31 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/16 03:30 upstream 81e7cfa3a9eb 3a127a31 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/13 23:26 upstream af7a05689189 7ba4d859 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/13 01:45 upstream 8f2975c2bb4c f42ee5d8 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/11/10 12:44 upstream f67dd6ce0723 b2488a87 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci-upstream-kasan-gce-smack-root 2022/11/02 19:59 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/31 23:07 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/31 16:32 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/28 22:20 upstream b229b6ca5abb 8168b69e .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/28 06:03 upstream b229b6ca5abb 5c716ff6 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/23 23:44 upstream d47136c28015 23bf86af .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/23 17:06 upstream d47136c28015 23bf86af .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci-upstream-kasan-gce-smack-root 2022/10/19 20:46 upstream 55be6084c8e0 b31320fc .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/17 21:46 upstream 493ffd6605b2 94744d21 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/13 22:20 upstream 493ffd6605b2 adf90437 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/09 04:55 upstream a6afa4199d3d aea5da89 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
ci2-upstream-fs 2022/10/03 08:38 upstream a962b54e162c feb56351 .config log report info UBSAN: array-index-out-of-bounds in xtSearch
* Struck through repros no longer work on HEAD.