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: 1075d, last: 8d23h
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
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 UBSAN: shift-out-of-bounds in minix_statfs origin:upstream C 4 11d 11d 0/3 upstream: reported C repro on 2024/11/09 11:46
Last patch testing requests (13)
Created Duration User Patch Repo Result
2024/09/09 03:11 16m retest repro upstream report log
2024/08/07 12:17 24m retest repro upstream report log
2024/07/01 02:41 15m retest repro upstream report log
2024/05/29 09:11 14m retest repro upstream report log
2024/04/19 10:52 1h43m retest repro upstream error
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
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
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2023/08/03 06:23 12h06m bisect fix upstream error job log
2023/06/24 06:19 27m bisect fix upstream OK (0) job log log
2023/04/22 22:54 24m bisect fix upstream OK (0) job log log
2023/03/07 02:51 42m bisect fix upstream OK (0) job log log
2022/08/23 18:24 21m bisect fix upstream OK (0) job log log
2022/07/24 18:02 22m bisect fix upstream OK (0) job log log
2022/06/14 06:55 22m bisect fix upstream OK (0) job log log
2022/05/10 00:00 18m bisect fix upstream OK (0) job log log
2022/03/13 13:01 18m bisect fix upstream OK (0) job log log
2022/01/11 04:09 19m bisect fix upstream OK (0) job log log

Sample crash report:
=======================================================
MINIX-fs: mounting file system with errors, running fsck is recommended
------------[ cut here ]------------
UBSAN: shift-out-of-bounds in fs/minix/inode.c:399:57
shift exponent 19968 is too large for 64-bit type 'unsigned long'
CPU: 0 UID: 0 PID: 5221 Comm: syz-executor256 Not tainted 6.12.0-rc2-syzkaller-00205-g1d227fcc7222 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120
 ubsan_epilogue lib/ubsan.c:231 [inline]
 __ubsan_handle_shift_out_of_bounds+0x3c8/0x420 lib/ubsan.c:468
 minix_statfs+0x36d/0x380 fs/minix/inode.c:399
 statfs_by_dentry fs/statfs.c:66 [inline]
 vfs_statfs+0x13b/0x2c0 fs/statfs.c:90
 ovl_check_namelen fs/overlayfs/super.c:369 [inline]
 ovl_lower_dir fs/overlayfs/super.c:385 [inline]
 ovl_get_lowerstack fs/overlayfs/super.c:1126 [inline]
 ovl_fill_super+0x8ed/0x3560 fs/overlayfs/super.c:1386
 vfs_get_super fs/super.c:1280 [inline]
 get_tree_nodev+0xb7/0x140 fs/super.c:1299
 vfs_get_tree+0x90/0x2b0 fs/super.c:1800
 do_new_mount+0x2be/0xb40 fs/namespace.c:3507
 do_mount fs/namespace.c:3847 [inline]
 __do_sys_mount fs/namespace.c:4055 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4032
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7ff097d08ad9
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:00007ffe642c2058 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007ff097d08ad9
RDX: 0000000020000180 RSI: 0000000020000140 RDI: 0000000000000000
RBP: 00007ff097d7c5f0 R08: 0000000020000000 R09: 00005555813e64c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe642c2080
R13: 00007ffe642c22a8 R14: 431bde82d7b634db R15: 00007ff097d5103b
 </TASK>
---[ end trace ]---

Crashes (53):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/11 15:24 upstream 1d227fcc7222 cd942402 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2024/10/02 03:59 upstream e32cde8d2bd7 ea2b66a6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
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
2024/11/12 06:51 upstream 2d5404caa8c7 75bb1b32 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root UBSAN: shift-out-of-bounds in minix_statfs
2024/10/05 12:44 upstream 27cc6fdf7201 d7906eff .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-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
2024/11/03 01:49 upstream 11066801dd4b f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in minix_statfs
2024/10/19 07:15 upstream b04ae0f45168 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs 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
2024/10/29 18:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1bf329c696cf 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 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.