syzbot


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

Status: upstream: reported C repro on 2024/10/03 19:10
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+5f7f0caf9979e9d09ff8@syzkaller.appspotmail.com
First crash: 335d, last: 3h13m
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: BUG: Bad page state (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] jfs: fix array-index-out-of-bounds in dtInsertEntry 4 (4) 2024/10/31 01:58
UBSAN: array-index-out-of-bounds in dtInsertEntry 1 (2) 2024/10/10 13:43
[syzbot] [jfs?] UBSAN: array-index-out-of-bounds in dtInsertEntry 0 (2) 2024/10/10 11:57
Similar bugs (8)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 BUG: unable to handle kernel paging request in dtInsertEntry missing-backport origin:upstream 17 C error 356 3d04h 815d 0/3 upstream: reported C repro on 2023/06/07 09:20
linux-6.1 BUG: unable to handle kernel paging request in dtInsertEntry 15 C error 17 370d 815d 0/3 auto-obsoleted due to no activity on 2024/12/03 11:36
upstream general protection fault in dtInsertEntry jfs 17 C inconclusive 501 383d 508d 27/29 fixed on 2024/08/14 03:44
upstream BUG: unable to handle kernel NULL pointer dereference in dtInsertEntry jfs 19 C error done 29 575d 1069d 25/29 fixed on 2024/03/20 11:33
linux-6.1 KASAN: slab-out-of-bounds Read in dtInsertEntry origin:upstream 17 C 55 5d08h 144d 0/3 upstream: reported C repro on 2025/04/08 17:54
linux-4.19 general protection fault in dtInsertEntry 19 C error 4 1023d 1069d 0/1 upstream: reported C repro on 2022/09/26 01:50
linux-6.6 KASAN: slab-out-of-bounds Read in dtInsertEntry origin:upstream 17 C 14 10d 56d 0/2 upstream: reported C repro on 2025/07/05 15:47
linux-4.14 general protection fault in dtInsertEntry 2 C 3 913d 1069d 0/1 upstream: reported C repro on 2022/09/25 23:44
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/11/09 08:26 12m retest repro upstream report log
2024/10/10 13:14 19m ghanshyam1898@gmail.com patch upstream OK log

Sample crash report:
ERROR: (device loop0): txCommit: 
read_mapping_page failed!
ERROR: (device loop0): txCommit: 
------------[ cut here ]------------
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dtree.c:3688:8
index -1 is out of range for type 'struct dtslot[128]'
CPU: 0 UID: 0 PID: 5826 Comm: syz-executor246 Not tainted 6.15.0-rc4-syzkaller-00042-gb6ea1680d0ac #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 ubsan_epilogue+0xa/0x40 lib/ubsan.c:231
 __ubsan_handle_out_of_bounds+0xe9/0xf0 lib/ubsan.c:453
 dtInsertEntry+0x936/0x1430 fs/jfs/jfs_dtree.c:3688
 dtSplitPage+0x2a83/0x3b20 fs/jfs/jfs_dtree.c:1596
 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline]
 dtInsert+0x109b/0x5f40 fs/jfs/jfs_dtree.c:871
 jfs_mkdir+0x6ec/0xa70 fs/jfs/namei.c:270
 vfs_mkdir+0x303/0x510 fs/namei.c:4359
 do_mkdirat+0x247/0x590 fs/namei.c:4392
 __do_sys_mkdir fs/namei.c:4414 [inline]
 __se_sys_mkdir fs/namei.c:4412 [inline]
 __x64_sys_mkdir+0x6c/0x80 fs/namei.c:4412
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xf6/0x210 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f9d593dfb97
Code: ff ff 77 07 31 c0 c3 0f 1f 40 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 b8 53 00 00 00 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:00007ffe6048aee8 EFLAGS: 00000246 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9d593dfb97
RDX: 0000000000000000 RSI: 00000000000001ff RDI: 0000200000000040
RBP: 0000200000000040 R08: 0000000000000000 R09: 00002000000000c0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000140
R13: 00007ffe6048af80 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
---[ end trace ]---

Crashes (1888):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/30 14:58 upstream b6ea1680d0ac 85a5a23f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/04/30 13:24 upstream b6ea1680d0ac 85a5a23f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/04/30 12:06 upstream b6ea1680d0ac 85a5a23f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/04/30 10:58 upstream b6ea1680d0ac 85a5a23f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2024/10/10 11:56 upstream d3d1556696c1 0278d004 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/24 11:23 upstream 8d245acc1e88 bf27483f .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/26 02:07 upstream 2942242dde89 fb8f743d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/06 12:34 upstream 1f988d0788f5 4f67c4ae .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/26 00:48 upstream 92ca6c498a5e 26d77996 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/05/15 14:21 upstream c94d59a126cb d6b2ee52 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2024/09/29 19:01 upstream e7ed34365879 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/26 21:40 upstream fab1beda7597 e12e5ba4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/22 11:46 upstream 3957a5720157 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/30 15:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/26 01:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/25 11:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/24 21:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/24 01:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/08/22 20:09 upstream cf6fc5eefc5b bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/22 09:58 upstream 3957a5720157 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/04 22:40 upstream d2eedaa3909b abdcb213 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/30 18:02 upstream 11e7861d680c 807a3b61 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/30 06:59 upstream fb679c832b64 807a3b61 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/30 05:13 upstream fb679c832b64 807a3b61 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/30 02:17 upstream fb679c832b64 807a3b61 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/29 13:57 upstream 07d9df80082b 3e1beec6 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/29 02:40 upstream 07d9df80082b d401b9d7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/28 17:17 upstream 07d9df80082b bee60a83 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/28 16:05 upstream 07d9df80082b bee60a83 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/28 03:59 upstream 39f90c196721 e12e5ba4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 09:33 upstream 1b237f190eb3 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 07:21 upstream 1b237f190eb3 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 04:00 upstream 69fd6b99b8f8 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 01:55 upstream 69fd6b99b8f8 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/24 10:35 upstream 8d245acc1e88 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/23 20:51 upstream 8d245acc1e88 bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/23 03:23 upstream cf6fc5eefc5b bf27483f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/26 06:38 linux-next 7fa4d8dc380f bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 23:01 linux-next 7fa4d8dc380f bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/30 11:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 807a3b61 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/29 21:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/29 04:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 3e1beec6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/28 08:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/28 02:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/27 14:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/27 11:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/27 07:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/27 00:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/26 23:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/26 22:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 e12e5ba4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/26 15:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/26 04:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 15:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 13:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/25 00:37 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/24 17:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/24 11:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/24 04:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/24 03:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/23 19:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/23 11:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/23 02:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/22 10:43 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/08/22 04:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8f5ae30d69d7 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
* Struck through repros no longer work on HEAD.