syzbot


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

Status: upstream: reported C repro on 2022/09/26 16:32
Reported-by: syzbot+55a7541cfd25df68109e@syzkaller.appspotmail.com
First crash: 74d, last: 2h42m

Cause bisection: failed (bisect log)

Sample crash report:
================================================================================
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_xtree.c:622:9
index 19 is out of range for type 'xad_t [18]'
CPU: 0 PID: 3631 Comm: syz-executor421 Not tainted 6.1.0-rc2-syzkaller-00105-gb229b6ca5abb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_out_of_bounds+0x107/0x150 lib/ubsan.c:283
 xtInsert+0xfbe/0x1020 fs/jfs/jfs_xtree.c:622
 extAlloc+0xaa4/0x1030 fs/jfs/jfs_extent.c:145
 jfs_get_block+0x410/0xe30 fs/jfs/inode.c:248
 __block_write_begin_int+0x57c/0x1ae0 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+0x314/0x610 mm/filemap.c:3753
 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3881
 generic_file_write_iter+0xab/0x310 mm/filemap.c:3913
 __kernel_write_iter+0x323/0x770 fs/read_write.c:517
 dump_emit_page+0xa79/0xca0 fs/coredump.c:857
 dump_user_range+0x5b/0xf0 fs/coredump.c:908
 elf_core_dump+0x3d5b/0x4570 fs/binfmt_elf.c:2311
 do_coredump+0x1874/0x2900 fs/coredump.c:755
 get_signal+0x147e/0x1810 kernel/signal.c:2844
 arch_do_signal_or_restart+0x8d/0x750 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop+0x74/0x160 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:203
 irqentry_exit_to_user_mode+0x5/0x30 kernel/entry/common.c:309
 exc_page_fault+0xa2/0x120 arch/x86/mm/fault.c:1578
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x73666a
Code: Unable to access opcode bytes at 0x736640.
RSP: 002b:0000000020000008 EFLAGS: 00010217
RAX: 0000000000000000 RBX: 00007fb8aadcdea8 RCX: 00007fb8aad8c249
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 0000000020005e80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020051280
R13: 0000001200020083 R14: 0000000000000000 R15: 00007ffdc33b6a80
 </TASK>
================================================================================

Crashes (674):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/11/02 21:02 upstream b229b6ca5abb 08977f5d .config log report syz C UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/10/31 00:46 upstream b229b6ca5abb 2a71366b .config log report syz C UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/09/25 18:29 upstream 105a36f3694e 0042f2b4 .config log report syz C UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/10/19 22:06 upstream 55be6084c8e0 b31320fc .config log report syz UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/09 06:13 upstream f3e8416619ce 1034e5fa .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/08 08:27 upstream 479174d402bc d88f3abb .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/07 06:28 upstream 8ed710da2873 d88f3abb .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/06 20:37 upstream 8ed710da2873 d88f3abb .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/06 17:29 upstream bce9332220bd d88f3abb .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/06 02:00 upstream 76dcd734eca2 045cbb84 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/05 02:42 upstream c2bf05db6c78 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/05 01:27 upstream c2bf05db6c78 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/04 17:32 upstream c2bf05db6c78 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/12/04 07:19 upstream 97ee9d1c1696 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/12/03 16:12 upstream a1e9185d20b5 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/12/03 15:23 upstream a1e9185d20b5 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/03 10:35 upstream 97ee9d1c1696 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/12/03 03:16 upstream a4412fdd49dc e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/12/02 06:26 upstream ef4d3ea40565 e080de16 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/28 18:46 upstream b7b275e60bcd 247de55b .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/28 03:33 upstream cf562a45a0d5 f4470a7b .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/11/26 04:20 upstream 0b1dcc2cf55a 74a66371 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/26 02:03 upstream 08ad43d554ba f4470a7b .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/25 18:37 upstream c3eb11fbb826 74a66371 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/24 17:52 upstream 4312098baf37 ff68ff8f .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/24 14:13 upstream 4312098baf37 ff68ff8f .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/24 01:37 upstream eb7081409f94 52fdf57a .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/23 22:14 upstream eb7081409f94 52fdf57a .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/23 14:23 upstream eb7081409f94 52fdf57a .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/22 14:23 upstream eb7081409f94 1c576c23 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/22 03:05 upstream eb7081409f94 1c576c23 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/22 02:38 upstream eb7081409f94 1c576c23 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/21 05:56 upstream eb7081409f94 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/21 01:59 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/21 00:56 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/20 23:17 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/20 13:23 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/20 01:36 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/19 17:18 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/19 12:17 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/19 10:46 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/19 04:45 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/19 02:21 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/19 00:21 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/18 16:49 upstream 84368d882b96 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/18 13:21 upstream 84368d882b96 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/18 04:29 upstream 84368d882b96 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/18 00:28 upstream 81ac25651a62 4ba8ab94 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/17 22:56 upstream 81ac25651a62 4ba8ab94 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/11/17 22:45 upstream 81ac25651a62 4ba8ab94 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/09/25 17:53 upstream 105a36f3694e 0042f2b4 .config log report info UBSAN: array-index-out-of-bounds in xtInsert
* Struck through repros no longer work on HEAD.