syzbot


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

Status: upstream: reported C repro on 2025/06/20 22:01
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+3c0fff4ba1792fc150b3@syzkaller.appspotmail.com
First crash: 6d22h, last: 3d09h
Bug presence (1)
Date Name Commit Repro Result
2025/06/26 upstream (ToT) ee88bddf7f2f C [report] UBSAN: array-index-out-of-bounds in dtSplitPage
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Write in dtSplitPage jfs C inconclusive 1407 21m 193d 0/29 upstream: reported C repro on 2024/12/15 23:15
linux-6.1 UBSAN: array-index-out-of-bounds in dtSplitPage origin:upstream C 27 14d 179d 0/3 upstream: reported C repro on 2024/12/30 07:45
linux-5.15 UBSAN: array-index-out-of-bounds in dtSplitPage origin:upstream C 42 1d13h 180d 0/3 upstream: reported C repro on 2024/12/29 06:57

Sample crash report:
syz-executor221[5765]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
loop0: detected capacity change from 0 to 32768
================================================================================
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dtree.c:1601:11
index 26 is out of range for type 'struct lv[20]'
CPU: 0 PID: 5765 Comm: syz-executor221 Not tainted 6.6.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106
 ubsan_epilogue+0xa/0x30 lib/ubsan.c:217
 __ubsan_handle_out_of_bounds+0xe3/0xf0 lib/ubsan.c:348
 dtSplitPage+0x38be/0x3b10 fs/jfs/jfs_dtree.c:1601
 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline]
 dtInsert+0x108f/0x5f40 fs/jfs/jfs_dtree.c:871
 jfs_create+0x6a1/0xa40 fs/jfs/namei.c:137
 lookup_open fs/namei.c:3488 [inline]
 open_last_lookups fs/namei.c:3556 [inline]
 path_openat+0x1277/0x3190 fs/namei.c:3786
 do_filp_open+0x1c5/0x3d0 fs/namei.c:3816
 do_sys_openat2+0x12c/0x1c0 fs/open.c:1419
 do_sys_open fs/open.c:1434 [inline]
 __do_sys_creat fs/open.c:1512 [inline]
 __se_sys_creat fs/open.c:1506 [inline]
 __x64_sys_creat+0x90/0xb0 fs/open.c:1506
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd808a73a39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007fff03ae0898 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fd808a73a39
RDX: 00007fd808a73a39 RSI: 0000000000000032 RDI: 00002000000008c0
RBP: 00007fd808aec610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff03ae0a68 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
================================================================================

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/22 03:42 linux-6.6.y 6282921b6825 d6cdfb8a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/24 11:21 linux-6.6.y 6282921b6825 e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/24 11:20 linux-6.6.y 6282921b6825 e2f27c35 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/21 10:40 linux-6.6.y 6282921b6825 d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/21 10:40 linux-6.6.y 6282921b6825 d6cdfb8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/20 23:07 linux-6.6.y 6282921b6825 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/20 23:07 linux-6.6.y 6282921b6825 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/20 22:01 linux-6.6.y 6282921b6825 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
2025/06/20 22:00 linux-6.6.y 6282921b6825 804b3919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: array-index-out-of-bounds in dtSplitPage
* Struck through repros no longer work on HEAD.