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: 507d, last: 32d
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 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: shift-out-of-bounds in ext4_fill_super ext4 C unreliable 88 1602d 1618d 19/28 fixed on 2021/03/10 01:48
Last patch testing requests (4)
Created Duration User Patch Repo Result
2025/04/13 04:30 6m retest repro android13-5.15-lts report log
2025/03/30 03:59 6m retest repro android13-5.15-lts report log
2025/03/06 05:15 6m retest repro android13-5.15-lts report log
2025/01/22 15:19 1h21m 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:
loop0: detected capacity change from 0 to 512
EXT4-fs: Warning: mounting with data=journal disables delayed allocation, dioread_nolock, O_DIRECT and fast_commit support!
EXT4-fs (loop0): encrypted files will use data=ordered instead of data journaling mode
================================================================================
UBSAN: shift-out-of-bounds in fs/ext4/super.c:4424:27
shift exponent 807429217 is too large for 32-bit type 'int'
CPU: 1 PID: 310 Comm: syz-executor316 Not tainted 5.15.178-syzkaller-00013-g7d1f9b5c2ff5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1c0 lib/dump_stack.c:106
 dump_stack+0x15/0x20 lib/dump_stack.c:113
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_shift_out_of_bounds+0x3bf/0x420 lib/ubsan.c:321
 ext4_fill_super+0x7491/0x96e0 fs/ext4/super.c:4424
 mount_bdev+0x282/0x3b0 fs/super.c:1400
 ext4_mount+0x34/0x40 fs/ext4/super.c:6594
 legacy_get_tree+0xf1/0x190 fs/fs_context.c:611
 vfs_get_tree+0x88/0x290 fs/super.c:1530
 do_new_mount+0x2ba/0xb30 fs/namespace.c:3012
 path_mount+0x671/0x1070 fs/namespace.c:3342
 do_mount fs/namespace.c:3355 [inline]
 __do_sys_mount fs/namespace.c:3563 [inline]
 __se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3540
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3540
 x64_sys_call+0x49d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ff437a92e2a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff437a4e088 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ff437a4e0a0 RCX: 00007ff437a92e2a
RDX: 0000400000000040 RSI: 0000400000000000 RDI: 00007ff437a4e0a0
RBP: 0000400000000000 R08: 00007ff437a4e0e0 R09: 00007ff437a4e0e0
R10: 000000000200010e R11: 0000000000000246 R12: 0000400000000040
R13: 00007ff437a4e0e0 R14: 0000000000000004 R15: 000000000200010e
 </TASK>
================================================================================
EXT4-fs (loop0): fragment/cluster size (2048) != block size (1024)

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.