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: 277d, last: 3h15m
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 (7)
Kernel Title 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 C error 319 3d12h 757d 0/3 upstream: reported C repro on 2023/06/07 09:20
linux-6.1 BUG: unable to handle kernel paging request in dtInsertEntry C error 17 312d 757d 0/3 auto-obsoleted due to no activity on 2024/12/03 11:36
upstream general protection fault in dtInsertEntry jfs C inconclusive 501 325d 450d 27/29 fixed on 2024/08/14 03:44
upstream BUG: unable to handle kernel NULL pointer dereference in dtInsertEntry jfs C error done 29 517d 1011d 25/29 fixed on 2024/03/20 11:33
linux-6.1 KASAN: slab-out-of-bounds Read in dtInsertEntry origin:upstream C 32 6d05h 86d 0/3 upstream: reported C repro on 2025/04/08 17:54
linux-4.19 general protection fault in dtInsertEntry C error 4 965d 1012d 0/1 upstream: reported C repro on 2022/09/26 01:50
linux-4.14 general protection fault in dtInsertEntry C 3 855d 1012d 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 (1196):
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/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
2025/07/03 00:20 upstream b4911fb0b060 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/07/02 20:28 upstream b4911fb0b060 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/07/02 17:13 upstream 66701750d556 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/07/02 03:07 upstream 66701750d556 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/07/01 23:50 upstream 66701750d556 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/07/01 02:44 upstream 66701750d556 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/07/01 02:43 upstream 66701750d556 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/06/30 22:24 upstream d0b3b7b22dfa 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/06/30 02:03 upstream afa9a6f4f574 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/06/29 14:02 upstream dfba48a70cb6 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/06/28 21:52 upstream aaf724ed6926 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/06/28 16:36 upstream aaf724ed6926 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/06/28 09:59 upstream 67a993863163 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: array-index-out-of-bounds 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/06/28 18:19 upstream aaf724ed6926 fc9d8ee5 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/06/28 14:27 upstream aaf724ed6926 fc9d8ee5 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root UBSAN: array-index-out-of-bounds in dtInsertEntry
2025/07/03 09:17 upstream b4911fb0b060 115ceea7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 07:21 upstream b4911fb0b060 0cd59a8f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 03:18 upstream b4911fb0b060 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 01:53 upstream b4911fb0b060 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/02 11:44 upstream 66701750d556 ffe4b334 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/02 09:13 upstream 66701750d556 bc80e4f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/01 22:39 upstream 66701750d556 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/01 18:15 upstream 66701750d556 091a06cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/01 11:45 upstream 66701750d556 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/01 08:38 upstream 66701750d556 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/01 03:45 upstream 66701750d556 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/01 00:38 upstream d0b3b7b22dfa 6e83b42d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/30 16:22 upstream d0b3b7b22dfa fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/30 06:28 upstream afa9a6f4f574 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/30 05:05 upstream afa9a6f4f574 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/29 23:18 upstream afa9a6f4f574 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/29 13:00 upstream dfba48a70cb6 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/29 03:39 upstream dfba48a70cb6 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/28 23:58 upstream aaf724ed6926 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/28 21:03 upstream aaf724ed6926 fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 22:55 upstream 17bbde2e1716 a3c808e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 16:49 upstream b4911fb0b060 a3c808e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 14:20 upstream b4911fb0b060 a3c808e4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 10:59 upstream b4911fb0b060 115ceea7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/02 06:21 upstream 66701750d556 bc80e4f0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/30 14:06 upstream d0b3b7b22dfa fc9d8ee5 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/29 17:06 upstream dfba48a70cb6 fc9d8ee5 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/29 15:10 upstream dfba48a70cb6 fc9d8ee5 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/07/03 05:31 linux-next 50c8770a42fa 0cd59a8f .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/06/28 19:57 linux-next 2aeda9592360 fc9d8ee5 .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/06/28 06:27 linux-next 2aeda9592360 fc9d8ee5 .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/06/30 12:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9aa9b43d689e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/30 04:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9aa9b43d689e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/29 10:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9aa9b43d689e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/29 02:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9aa9b43d689e fc9d8ee5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 KASAN: slab-out-of-bounds Read in dtInsertEntry
2025/06/28 12:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9aa9b43d689e fc9d8ee5 .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.