UBSAN: shift-out-of-bounds in ufs_fill_super

Status: upstream: reported C repro on 2026/08/04 22:49
Reported-by: syzbot+4401244f0392f505d9ff@syzkaller.appspotmail.com
First crash: 9d08h, last: 4d14h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: shift-out-of-bounds in ufs_fill_super fs prio:high -1 25 8d23h 7d16h 0/29 upstream: reported on 2026/08/06 15:25

Sample crash report:
mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
>>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
ufs: ufstype=old is supported read-only
ufs: ufs_fill_super(): fs is active
================================================================================
UBSAN: shift-out-of-bounds in fs/ufs/super.c:1244:18
shift exponent 4294967294 is too large for 32-bit type 'int'
CPU: 1 PID: 5929 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106
 ubsan_epilogue+0xa/0x30 lib/ubsan.c:217
 __ubsan_handle_shift_out_of_bounds+0x368/0x3f0 lib/ubsan.c:387
 ufs_fill_super+0x6009/0x68c0 fs/ufs/super.c:1244
 mount_bdev+0x21c/0x2c0 fs/super.c:1643
 legacy_get_tree+0xea/0x180 fs/fs_context.c:662
 vfs_get_tree+0x8c/0x280 fs/super.c:1764
 do_new_mount+0x24a/0xa40 fs/namespace.c:3386
 do_mount fs/namespace.c:3726 [inline]
 __do_sys_mount fs/namespace.c:3935 [inline]
 __se_sys_mount+0x2e7/0x3d0 fs/namespace.c:3912
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f34bcf9e0d9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffffeba2e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f34bd225fa0 RCX: 00007f34bcf9e0d9
RDX: 0000200000004000 RSI: 0000200000003000 RDI: 0000200000000040
RBP: 00007f34bd035024 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f34bd225fac R14: 00007f34bd225fa0 R15: 00007f34bd225fa0
 </TASK>
================================================================================

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/09 17:22 linux-6.6.y 6436c12a2ced 5d63f80b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: shift-out-of-bounds in ufs_fill_super
2026/08/04 23:16 linux-6.6.y aa0e49877a2e d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: shift-out-of-bounds in ufs_fill_super
2026/08/04 22:49 linux-6.6.y aa0e49877a2e d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: shift-out-of-bounds in ufs_fill_super
2026/08/04 22:48 linux-6.6.y aa0e49877a2e d4abbeac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan UBSAN: shift-out-of-bounds in ufs_fill_super
* Struck through repros no longer work on HEAD.