syzbot


UBSAN: shift-out-of-bounds in minix_statfs

Status: upstream: reported C repro on 2021/12/13 07:17
Reported-by: syzbot+5ad0824204c7bf9b67f2@syzkaller.appspotmail.com
First crash: 200d, last: 5d11h

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: UBSAN: shift-out-of-bounds in minix_statfs (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2022/05/10 02:55 8m wanngchenng@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master report log
2022/05/01 01:41 8m (218) wanngchenng@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master report log
2022/04/30 10:13 11m (10) wanngchenng@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master error

Sample crash report:
================================================================================
UBSAN: shift-out-of-bounds in fs/minix/inode.c:380:57
shift exponent 65510 is too large for 64-bit type 'long unsigned int'
CPU: 1 PID: 3619 Comm: syz-executor224 Not tainted 5.19.0-rc3-syzkaller-00146-g92f20ff72066 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 ubsan_epilogue+0xb/0x50 lib/ubsan.c:151
 __ubsan_handle_shift_out_of_bounds.cold+0xb1/0x187 lib/ubsan.c:322
 minix_statfs.cold+0x17/0x1c fs/minix/inode.c:380
 statfs_by_dentry+0x133/0x210 fs/statfs.c:66
 vfs_statfs fs/statfs.c:90 [inline]
 fd_statfs+0x66/0x100 fs/statfs.c:120
 __do_sys_fstatfs+0x7a/0xf0 fs/statfs.c:216
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0
RIP: 0033:0x7f5d0d3b3df9
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:00007ffe86ed26f8 EFLAGS: 00000246 ORIG_RAX: 000000000000008a
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5d0d3b3df9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005
RBP: 00007f5d0d3735f0 R08: 0000000000000000 R09: 0000000000000000
R10: 00007ffe86ed25b0 R11: 0000000000000246 R12: 00007f5d0d373680
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
================================================================================

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/06/14 07:17 upstream b13baccc3850 744a39e2 .config log report syz C
ci-upstream-kasan-gce-root 2022/05/10 00:18 upstream 9be9ed2612b5 97582466 .config log report syz C
ci-upstream-kasan-gce-root 2022/03/13 13:19 upstream aad611a868d1 49ca1f59 .config log report syz C
ci-upstream-kasan-gce-root 2022/01/11 04:29 upstream 63045bfd3c8d 49ca1f59 .config log report syz C
Crashes (17):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2022/06/24 17:17 upstream 92f20ff72066 a5dbd430 .config log report syz C UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-smack-root 2022/05/15 06:54 upstream 2fe1020d73ca 744a39e2 .config log report syz C UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-root 2022/04/07 06:28 upstream 3e732ebf7316 97582466 .config log report syz C UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-root 2021/12/11 09:47 upstream b8a98b6bf66a 49ca1f59 .config log report syz C UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-linux-next-kasan-gce-root 2022/05/13 23:41 linux-next 1e1b28b936ae 107f6434 .config log report syz C UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-root 2022/03/26 07:16 upstream 52d543b5497c 89bc8608 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-qemu-upstream 2022/03/24 20:45 upstream ed4643521e6a 89bc8608 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-selinux-root 2022/03/24 20:41 upstream ed4643521e6a 89bc8608 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-root 2022/03/24 20:40 upstream ed4643521e6a 89bc8608 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-smack-root 2022/03/24 20:40 upstream ed4643521e6a 89bc8608 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-smack-root 2022/02/08 07:47 upstream 555f3d7be91a a7dab638 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-kasan-gce-root 2021/12/11 09:24 upstream b8a98b6bf66a 49ca1f59 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-qemu-upstream-386 2022/03/24 20:43 upstream ed4643521e6a 89bc8608 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-linux-next-kasan-gce-root 2022/03/30 00:33 linux-next c2528a0cdebd 6bdac766 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-linux-next-kasan-gce-root 2022/03/24 20:40 linux-next dd315b580061 89bc8608 .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-linux-next-kasan-gce-root 2022/02/11 12:54 linux-next ef6b35306dd8 0b33604d .config log report info UBSAN: shift-out-of-bounds in minix_statfs
ci-upstream-linux-next-kasan-gce-root 2021/12/12 04:09 linux-next ea922272cbe5 49ca1f59 .config log report info UBSAN: shift-out-of-bounds in minix_statfs