syzbot


UBSAN: shift-out-of-bounds in minix_statfs

Status: upstream: reported C repro on 2025/08/18 07:52
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+38b8dae7ef383810df3d@syzkaller.appspotmail.com
First crash: 12d, last: 9d12h
Bug presence (2)
Date Name Commit Repro Result
2025/08/20 linux-5.15.y (ToT) c79648372d02 C [report] UBSAN: shift-out-of-bounds in minix_statfs
2025/08/20 upstream (ToT) 41cd3fd15263 C Didn't crash
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 UBSAN: shift-out-of-bounds in minix_statfs origin:upstream -1 C error 4 213d 294d 0/3 upstream: reported C repro on 2024/11/09 11:46
upstream UBSAN: shift-out-of-bounds in minix_statfs fs -1 C inconclusive error 67 5d09h 1356d 0/29 upstream: reported C repro on 2021/12/13 07:17

Sample crash report:
WARNING: The mand mount option has been deprecated and
         and is ignored by this kernel. Remove the mand
         option from the mount to silence this warning.
=======================================================
================================================================================
UBSAN: shift-out-of-bounds in fs/minix/inode.c:380:57
shift exponent 768 is too large for 64-bit type 'unsigned long'
CPU: 1 PID: 4313 Comm: syz.0.17 Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x230 lib/dump_stack.c:106
 ubsan_epilogue+0xa/0x30 lib/ubsan.c:151
 __ubsan_handle_shift_out_of_bounds+0x37c/0x400 lib/ubsan.c:321
 minix_statfs+0x313/0x340 fs/minix/inode.c:380
 statfs_by_dentry fs/statfs.c:66 [inline]
 vfs_statfs fs/statfs.c:90 [inline]
 fd_statfs+0x18e/0x390 fs/statfs.c:120
 __do_sys_fstatfs fs/statfs.c:216 [inline]
 __se_sys_fstatfs fs/statfs.c:213 [inline]
 __x64_sys_fstatfs+0xdd/0x1a0 fs/statfs.c:213
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f673bbd4be9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd6f6b15e8 EFLAGS: 00000246 ORIG_RAX: 000000000000008a
RAX: ffffffffffffffda RBX: 00007f673bdfbfa0 RCX: 00007f673bbd4be9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007f673bc57e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f673bdfbfa0 R14: 00007f673bdfbfa0 R15: 0000000000000002
 </TASK>
================================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/18 10:46 linux-5.15.y c79648372d02 1804e95e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan UBSAN: shift-out-of-bounds in minix_statfs
2025/08/18 09:52 linux-5.15.y c79648372d02 1804e95e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan UBSAN: shift-out-of-bounds in minix_statfs
2025/08/18 08:52 linux-5.15.y c79648372d02 1804e95e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan UBSAN: shift-out-of-bounds in minix_statfs
2025/08/18 07:51 linux-5.15.y c79648372d02 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan UBSAN: shift-out-of-bounds in minix_statfs
* Struck through repros no longer work on HEAD.