syzbot


UBSAN: shift-out-of-bounds in ext4_fill_super

Status: upstream: reported C repro on 2023/12/25 17:58
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+f358aa23cf81d2593253@syzkaller.appspotmail.com
First crash: 657d, last: 5d09h
Fix bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/12/25 lts (merge base) 9b91d36ba301 C [report] UBSAN: shift-out-of-bounds in ext4_fill_super
2023/12/25 upstream (ToT) 861deac3b092 C [report] UBSAN: shift-out-of-bounds in ext4_handle_clustersize
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: shift-out-of-bounds in ext4_fill_super ext4 -1 C unreliable 88 1753d 1768d 19/29 fixed on 2021/03/10 01:48
Last patch testing requests (6)
Created Duration User Patch Repo Result
2025/10/07 15:12 45m retest repro android13-5.15-lts report log
2025/10/07 15:12 5m retest repro android13-5.15-lts report log
2025/09/01 11:28 7m retest repro android13-5.15-lts report log
2025/08/17 20:21 6m retest repro android13-5.15-lts report log
2025/07/27 05:14 12m retest repro android13-5.15-lts report log
2025/06/23 04:44 6m retest repro android13-5.15-lts report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2024/10/15 00:25 0m bisect fix android13-5.15-lts error job log
2024/09/04 22:06 52m bisect fix android13-5.15-lts OK (0) job log log
2024/08/01 10:10 37m bisect fix android13-5.15-lts OK (0) job log log
2024/06/24 20:27 58m bisect fix android13-5.15-lts OK (0) job log log
2024/05/16 20:27 35m bisect fix android13-5.15-lts OK (0) job log log
2024/04/12 21:32 2h01m bisect fix android13-5.15-lts OK (0) job log log
2024/03/10 18:42 34m bisect fix android13-5.15-lts OK (0) job log log
2024/02/09 14:26 37m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
EXT4-fs (loop0): Mount option "noacl" will be removed by 3.5
Contact linux-ext4@vger.kernel.org if you think we should keep it.
EXT4-fs (loop0): Ignoring removed nobh option
EXT4-fs (loop0): Ignoring removed bh option
EXT4-fs (loop0): Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE
================================================================================
UBSAN: shift-out-of-bounds in fs/ext4/super.c:4422:27
shift exponent 8192 is too large for 32-bit type 'int'
CPU: 0 PID: 455 Comm: syz.0.29 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
Call Trace:
 <TASK>
 __dump_stack+0x21/0x30 lib/dump_stack.c:88
 dump_stack_lvl+0xee/0x150 lib/dump_stack.c:106
 dump_stack+0x15/0x20 lib/dump_stack.c:113
 ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
 __ubsan_handle_shift_out_of_bounds+0x37c/0x400 lib/ubsan.c:321
 ext4_fill_super+0x6ea7/0x9090 fs/ext4/super.c:4422
 mount_bdev+0x2ae/0x3e0 fs/super.c:1400
 ext4_mount+0x34/0x40 fs/ext4/super.c:6623
 legacy_get_tree+0xed/0x190 fs/fs_context.c:611
 vfs_get_tree+0x89/0x260 fs/super.c:1530
 do_new_mount+0x25a/0xa20 fs/namespace.c:3025
 path_mount+0x675/0x1020 fs/namespace.c:3355
 do_mount fs/namespace.c:3368 [inline]
 __do_sys_mount fs/namespace.c:3576 [inline]
 __se_sys_mount+0x318/0x380 fs/namespace.c:3553
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3553
 x64_sys_call+0x6bf/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166
 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:0x7f0b6c85766a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f0b6c6c5e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0b6c6c5ef0 RCX: 00007f0b6c85766a
RDX: 0000200000000080 RSI: 0000200000000000 RDI: 00007f0b6c6c5eb0
RBP: 0000200000000080 R08: 00007f0b6c6c5ef0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000000
R13: 00007f0b6c6c5eb0 R14: 000000000000055e R15: 0000200000000a00
 </TASK>
================================================================================
EXT4-fs (loop0): blocks per group (131072) and clusters per group (8192) inconsistent

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/22 17:11 android13-5.15-lts 8d934e0056f7 0ac7291c .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 UBSAN: shift-out-of-bounds in ext4_fill_super
2025/03/15 23:27 android13-5.15-lts 7d1f9b5c2ff5 e2826670 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-android-5-15 UBSAN: shift-out-of-bounds in ext4_fill_super
2025/01/08 15:19 android13-5.15-lts 19092c8155b4 f3558dbf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 UBSAN: shift-out-of-bounds in ext4_fill_super
2023/12/25 17:57 android13-5.15-lts 28e3f5851a99 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 UBSAN: shift-out-of-bounds in ext4_fill_super
* Struck through repros no longer work on HEAD.