syzbot


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

Status: upstream: reported C repro on 2022/09/26 16:32
Subsystems: jfs (incorrect?)
Reported-by: syzbot+55a7541cfd25df68109e@syzkaller.appspotmail.com
First crash: 178d, last: 2d02h

Cause bisection: failed (error log, bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 UBSAN: array-index-out-of-bounds in xtInsert 3 2d05h 6d18h 0/3 upstream: reported on 2023/03/16 13:35
linux-5.15 UBSAN: array-index-out-of-bounds in xtInsert 25 9h53m 6d18h 0/3 upstream: reported on 2023/03/16 13:52

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: 1 PID: 5078 Comm: syz-executor296 Not tainted 6.2.0-rc3-syzkaller-00008-g1fe4fd6f5cad #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
 xtInsert+0xf2f/0xff0 fs/jfs/jfs_xtree.c:622
 extAlloc+0xa5d/0xff0 fs/jfs/jfs_extent.c:145
 jfs_get_block+0x342/0xce0 fs/jfs/inode.c:248
 __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:299
 generic_perform_write+0x2e4/0x5e0 mm/filemap.c:3772
 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3900
 generic_file_write_iter+0xab/0x310 mm/filemap.c:3932
 call_write_iter include/linux/fs.h:2189 [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:0x7f10bbe42b19
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 18 00 00 90 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:00007f10b41c3208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f10bbec67b8 RCX: 00007f10bbe42b19
RDX: 00000000000ffe00 RSI: 0000000020004200 RDI: 0000000000000006
RBP: 00007f10bbec67b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f10bbec67bc
R13: 00007ffe95898c1f R14: 00007f10b41c3300 R15: 0000000000022000
 </TASK>
================================================================================

Crashes (825):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2023/01/09 23:28 upstream 1fe4fd6f5cad 48bc529a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/11/02 21:02 upstream b229b6ca5abb 08977f5d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2022/10/31 00:46 upstream b229b6ca5abb 2a71366b .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/09/25 18:29 upstream 105a36f3694e 0042f2b4 .config strace log report syz C [disk image] [vmlinux] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/01/21 11:14 upstream edc00350d205 cc0f9968 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/12/13 00:31 upstream 830b3c68c1fb 67be1ae7 .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/10/19 22:06 upstream 55be6084c8e0 b31320fc .config console log report syz [disk image] [vmlinux] [mounted in repro] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2023/03/21 05:02 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/21 00:29 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/20 15:17 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/18 10:07 upstream 478a351ce0d6 7939252e .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/17 12:04 upstream 0ddc84d2dd43 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/17 10:48 upstream 0ddc84d2dd43 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/17 03:07 upstream 0ddc84d2dd43 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/16 13:55 upstream 9c1bec9c0b08 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/15 06:18 upstream 4979bf866825 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/15 02:06 upstream 4979bf866825 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/14 18:26 upstream fc89d7fb499b 0d5c4377 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/13 14:58 upstream eeac8ede1755 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/05 17:47 upstream b01fe98d34f3 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2023/03/05 08:34 upstream b01fe98d34f3 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/05 03:00 upstream b01fe98d34f3 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/05 00:51 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/04 23:18 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/04 20:23 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/04 13:39 upstream 0988a0ea7919 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/01 19:33 upstream c0927a7a5391 ef65e6cb .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/03/01 04:50 upstream e492250d5252 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/26 09:07 upstream 489fa31ea873 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/19 17:01 upstream 925cf0457d7e bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/17 19:38 upstream ec35307e18ba cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/17 05:35 upstream 3ac88fa4605e 851bc19a .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/15 11:01 upstream e1c04510f521 e62ba3c1 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2023/02/14 07:38 upstream b408817d4884 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/13 09:02 upstream 711e9a4d52bf 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/12 12:30 upstream f339c2597ebb 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/12 04:30 upstream d12aca5c0cee 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/11 22:44 upstream d12aca5c0cee 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/11 16:57 upstream 420b2d431d18 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2023/02/11 14:17 upstream 420b2d431d18 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/09 05:33 upstream 0983f6bf2bfc 14a312c8 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/07 23:17 upstream 513c1a3d3f19 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2023/02/07 21:44 upstream 05ecb680708a 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/06 19:36 upstream d2d11f342b17 0a9c11b6 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/06 11:45 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/06 00:17 upstream 4ec5183ec486 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2023/02/05 13:57 upstream 95078069c1e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/05 03:31 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2023/02/04 04:49 upstream 7b753a909f42 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/03 10:52 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/03 06:50 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/02 20:32 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci2-upstream-fs 2023/02/01 15:57 upstream c0b67534c95c 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-kasan-gce-smack-root 2022/09/25 17:53 upstream 105a36f3694e 0042f2b4 .config console log report info [disk image] [vmlinux] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-gce-arm64 2023/03/19 22:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 7939252e .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
ci-upstream-gce-arm64 2023/02/23 14:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] UBSAN: array-index-out-of-bounds in xtInsert
* Struck through repros no longer work on HEAD.