syzbot


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

Status: upstream: reported C repro on 2022/09/26 09:55
Reported-by: syzbot+38e876a8aa44b7115c76@syzkaller.appspotmail.com
First crash: 69d, last: 13d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: use-after-free Read in dbNextAG C 11 19d 69d 0/1 upstream: reported C repro on 2022/09/25 01:19
linux-4.14 KASAN: use-after-free Read in dbNextAG C 2 29d 69d 0/1 upstream: reported C repro on 2022/09/25 01:19

Sample crash report:
loop0: detected capacity change from 0 to 32768
================================================================================
UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:617:20
index 7996818 is out of range for type 'atomic_t [128]'
CPU: 0 PID: 3604 Comm: syz-executor119 Not tainted 6.0.0-syzkaller-09423-g493ffd6605b2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_out_of_bounds+0xdb/0x130 lib/ubsan.c:283
 dbNextAG+0x602/0x630 fs/jfs/jfs_dmap.c:617
 diAlloc+0x17a/0x1700 fs/jfs/jfs_imap.c:1342
 ialloc+0x8c/0xa80 fs/jfs/jfs_inode.c:56
 jfs_mkdir+0x141/0xb00 fs/jfs/namei.c:225
 vfs_mkdir+0x3b3/0x590 fs/namei.c:4013
 do_mkdirat+0x279/0x550 fs/namei.c:4038
 __do_sys_mkdirat fs/namei.c:4053 [inline]
 __se_sys_mkdirat fs/namei.c:4051 [inline]
 __x64_sys_mkdirat+0x85/0x90 fs/namei.c:4051
 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:0x7faf733e9f49
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffebeacb2a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007faf733e9f49
RDX: 00000000000001ff RSI: 0000000020005280 RDI: ffffffffffffff9c
RBP: 00007faf733a9710 R08: 00005555562e72c0 R09: 0000000000000000
R10: 00007ffebeacb170 R11: 0000000000000246 R12: 0000000000007366
R13: 0000000000000000 R14: 00080000000000ec R15: 0000000000000000
 </TASK>
================================================================================

Crashes (43):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/10/12 02:42 upstream 493ffd6605b2 02b6492e .config log report syz C UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-kasan-gce-root 2022/10/09 16:06 upstream a6afa4199d3d aea5da89 .config log report syz C UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/09/26 00:29 upstream 105a36f3694e 0042f2b4 .config log report syz C UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/09/25 11:13 upstream 3db61221f4e8 0042f2b4 .config log report syz C UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-linux-next-kasan-gce-root 2022/09/24 20:52 linux-next aaa11ce2ffc8 0042f2b4 .config log report syz C UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-gce-arm64 2022/09/25 05:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 0042f2b4 .config log report syz C BUG: unable to handle kernel paging request in dbNextAG
ci2-upstream-fs 2022/11/20 14:30 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/11/18 11:36 upstream 84368d882b96 5bb70014 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/11/07 07:30 upstream 089d1c31224e 6d752409 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/11/03 19:08 upstream b229b6ca5abb 7a2ebf95 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/11/02 22:52 upstream b229b6ca5abb 08977f5d .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-kasan-gce-selinux-root 2022/11/01 09:48 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/11/01 09:40 upstream b229b6ca5abb a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-kasan-gce-smack-root 2022/10/31 16:08 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/31 15:54 upstream b229b6ca5abb 2a71366b .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/28 03:26 upstream b229b6ca5abb 5c716ff6 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/28 02:48 upstream b229b6ca5abb 5c716ff6 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/24 22:28 upstream 247f34f7b803 faae2fda .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/24 12:32 upstream 247f34f7b803 faae2fda .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/22 20:55 upstream 440b7895c990 c0b80a55 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/22 14:49 upstream 440b7895c990 c0b80a55 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/21 09:42 upstream 6d36c728bc2e 63e790dd .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/19 06:17 upstream 493ffd6605b2 b31320fc .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/19 00:50 upstream 493ffd6605b2 b31320fc .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/18 23:15 upstream 493ffd6605b2 b31320fc .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/18 01:10 upstream 493ffd6605b2 94744d21 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/16 05:20 upstream 493ffd6605b2 67cb024c .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/15 09:24 upstream 493ffd6605b2 67cb024c .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-kasan-gce-root 2022/10/15 07:20 upstream 55be6084c8e0 67cb024c .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/15 04:07 upstream 493ffd6605b2 67cb024c .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/14 07:54 upstream 493ffd6605b2 4954e4b2 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/09 15:10 upstream a6afa4199d3d aea5da89 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/08 19:52 upstream 62e6e5940c0c aea5da89 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-kasan-gce-root 2022/10/08 17:53 upstream e8bc52cb8df8 aea5da89 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/06 03:26 upstream 2bca25eaeba6 2c6543ad .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci2-upstream-fs 2022/10/06 00:46 upstream 2bca25eaeba6 2c6543ad .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-linux-next-kasan-gce-root 2022/11/01 09:47 linux-next 4d48f589d294 a1d8560a .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-linux-next-kasan-gce-root 2022/10/21 04:15 linux-next acee3e83b493 a0fd4dab .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-linux-next-kasan-gce-root 2022/09/24 20:16 linux-next aaa11ce2ffc8 0042f2b4 .config log report info UBSAN: array-index-out-of-bounds in dbNextAG
ci-upstream-gce-arm64 2022/11/14 07:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config log report info BUG: unable to handle kernel paging request in dbNextAG
ci-upstream-gce-arm64 2022/11/02 09:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 edac4fd1 .config log report info BUG: unable to handle kernel paging request in dbNextAG
ci-upstream-gce-arm64 2022/10/25 08:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 45645420 .config log report info BUG: unable to handle kernel paging request in dbNextAG
ci-upstream-gce-arm64 2022/09/26 16:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 d59ba983 .config log report info BUG: unable to handle kernel paging request in dbNextAG
* Struck through repros no longer work on HEAD.