syzbot


UBSAN: shift-out-of-bounds in minix_statfs

Status: upstream: reported C repro on 2021/12/13 07:17
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+5ad0824204c7bf9b67f2@syzkaller.appspotmail.com
First crash: 891d, last: 6d00h
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
  
Fix bisection: failed (error log, bisect log)
  
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] Monthly fs report (Dec 2023) 0 (1) 2023/12/12 22:02
[PATCH] fs/minix: Improve validity checking of superblock 2 (2) 2023/10/12 11:45
[PATCH] fs/minix: Improve validity checking of superblock 1 (1) 2023/10/02 18:11
[syzbot] Monthly fs report (Jul 2023) 0 (1) 2023/07/10 09:36
[syzbot] UBSAN: shift-out-of-bounds in minix_statfs 1 (2) 2021/12/13 12:07
Last patch testing requests (13)
Created Duration User Patch Repo Result
2024/04/19 10:52 1h43m retest repro upstream error OK
2024/03/11 06:04 17m retest repro upstream OK log
2024/02/25 01:35 20m retest repro upstream OK log
2024/02/12 06:01 23m retest repro upstream OK log
2024/01/30 21:43 21m retest repro upstream OK log
2024/01/30 21:43 20m retest repro upstream OK log
2024/01/01 04:26 10m retest repro upstream report log
2023/12/16 23:56 17m retest repro upstream report log
2023/12/16 23:06 20m retest repro linux-next OK log
2023/12/02 20:22 14m retest repro upstream report log
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 OK
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2023/08/03 06:23 12h06m bisect fix upstream error job log (0)
2023/06/24 06:19 27m bisect fix upstream job log (0) log
2023/04/22 22:54 24m bisect fix upstream job log (0) log
2023/03/07 02:51 42m bisect fix upstream job log (0) log
2022/08/23 18:24 21m bisect fix upstream job log (0) log
2022/07/24 18:02 22m bisect fix upstream job log (0) log
2022/06/14 06:55 22m bisect fix upstream job log (0) log
2022/05/10 00:00 18m bisect fix upstream job log (0) log
2022/03/13 13:01 18m bisect fix upstream job log (0) log
2022/01/11 04:09 19m bisect fix upstream job log (0) log

Sample crash report:
loop0: detected capacity change from 0 to 64
------------[ cut here ]------------
UBSAN: shift-out-of-bounds in fs/minix/inode.c:381:57
shift exponent 13056 is too large for 64-bit type 'long unsigned int'
CPU: 0 PID: 5091 Comm: syz-executor360 Not tainted 6.9.0-syzkaller-00967-gcd97950cbcab #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:114
 ubsan_epilogue lib/ubsan.c:231 [inline]
 __ubsan_handle_shift_out_of_bounds+0x2a5/0x480 lib/ubsan.c:468
 minix_statfs.cold+0x17/0x1c fs/minix/inode.c:381
 statfs_by_dentry+0x12e/0x210 fs/statfs.c:66
 vfs_statfs fs/statfs.c:90 [inline]
 user_statfs+0xc4/0x180 fs/statfs.c:105
 __do_sys_statfs+0x8a/0x100 fs/statfs.c:195
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb742c7ba99
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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:00007ffcd8859228 EFLAGS: 00000246 ORIG_RAX: 0000000000000089
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb742c7ba99
RDX: 00007fb742c7ba99 RSI: 0000000000000000 RDI: 00000000200000c0
RBP: 00007fb742cee5f0 R08: 000055557ac2b4c0 R09: 000055557ac2b4c0
R10: 0000000000000185 R11: 0000000000000246 R12: 00007ffcd8859250
R13: 00007ffcd8859478 R14: 431bde82d7b634db R15: 00007fb742cc403b
 </TASK>
---[ end trace ]---

Crashes (46):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/14 09:01 upstream cd97950cbcab fdb4c10c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-badwrites-root UBSAN: shift-out-of-bounds in minix_statfs
2024/04/02 08:43 upstream fe46a7dd189e 6baf5069 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2023/12/18 03:49 upstream 0e389834672c 3222d10c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2023/06/29 10:57 upstream e8f75c0270d9 ca69c785 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root UBSAN: shift-out-of-bounds in minix_statfs
2023/05/11 00:45 upstream ad2fd53a7870 0fbd49f4 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in minix_statfs
2023/01/01 06:08 upstream e4cf7c25bae5 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/12/05 03:38 upstream c2bf05db6c78 e080de16 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/10/13 21:59 upstream 55be6084c8e0 adf90437 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/10/05 09:02 upstream 0326074ff465 267e3bb1 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/06/24 17:17 upstream 92f20ff72066 a5dbd430 .config strace log report syz C ci-upstream-kasan-gce-selinux-root UBSAN: shift-out-of-bounds in minix_statfs
2022/05/15 06:54 upstream 2fe1020d73ca 744a39e2 .config strace log report syz C ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in minix_statfs
2022/04/07 06:28 upstream 3e732ebf7316 97582466 .config console log report syz C ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2021/12/11 09:47 upstream b8a98b6bf66a 49ca1f59 .config console log report syz C ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/05/13 23:41 linux-next 1e1b28b936ae 107f6434 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2023/12/18 03:15 upstream 0e389834672c 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2023/08/24 15:20 upstream a5e505a99ca7 4d7ae7ab .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2023/05/24 23:56 upstream 9d646009f65d 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2023/05/12 22:07 upstream cc3c44c9fda2 ecca8a24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2023/03/23 22:09 upstream 9fd6ba5420ba f94b4a29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2023/03/20 18:40 upstream e8d018dd0257 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2023/02/05 02:51 upstream db27c22251e7 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2023/01/07 10:55 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/11/13 20:08 upstream af7a05689189 7ba4d859 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/10/21 07:19 upstream 493ffd6605b2 a0fd4dab .config console log report info [disk image] [vmlinux] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/10/14 17:31 upstream 55be6084c8e0 4954e4b2 .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in minix_statfs
2022/10/13 07:47 upstream 493ffd6605b2 3f6b40a1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/10/05 08:44 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/09/28 13:54 upstream 46452d3786a8 75c78242 .config console log report info [disk image] [vmlinux] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/09/27 13:12 upstream 3800a713b607 10323ddf .config console log report info ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/09/22 03:09 upstream 06f7db949993 60af5050 .config console log report info [disk image] [vmlinux] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2022/03/26 07:16 upstream 52d543b5497c 89bc8608 .config console log report info ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/03/24 20:45 upstream ed4643521e6a 89bc8608 .config console log report info ci-qemu-upstream UBSAN: shift-out-of-bounds in minix_statfs
2022/03/24 20:41 upstream ed4643521e6a 89bc8608 .config console log report info ci-upstream-kasan-gce-selinux-root UBSAN: shift-out-of-bounds in minix_statfs
2022/03/24 20:40 upstream ed4643521e6a 89bc8608 .config console log report info ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/03/24 20:40 upstream ed4643521e6a 89bc8608 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in minix_statfs
2022/02/08 07:47 upstream 555f3d7be91a a7dab638 .config console log report info ci-upstream-kasan-gce-smack-root UBSAN: shift-out-of-bounds in minix_statfs
2021/12/11 09:24 upstream b8a98b6bf66a 49ca1f59 .config console log report info ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/03/24 20:43 upstream ed4643521e6a 89bc8608 .config console log report info ci-qemu-upstream-386 UBSAN: shift-out-of-bounds in minix_statfs
2023/08/10 22:06 linux-next 21ef7b1e17d0 4df3089c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/11/06 23:07 linux-next 0cdb3579f1ee 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/10/16 01:49 linux-next aaa11ce2ffc8 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/10/07 08:23 linux-next aaa11ce2ffc8 8a212197 .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/03/30 00:33 linux-next c2528a0cdebd 6bdac766 .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/03/24 20:40 linux-next dd315b580061 89bc8608 .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2022/02/11 12:54 linux-next ef6b35306dd8 0b33604d .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
2021/12/12 04:09 linux-next ea922272cbe5 49ca1f59 .config console log report info ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in minix_statfs
* Struck through repros no longer work on HEAD.