syzbot


UBSAN: shift-out-of-bounds in ext4_handle_clustersize

Status: auto-obsoleted due to no activity on 2023/10/16 19:25
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+f4cf49c6365d87eb8e0e@syzkaller.appspotmail.com
First crash: 325d, last: 305d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] UBSAN: shift-out-of-bounds in ext4_handle_clustersize 1 (2) 2023/06/29 03:35
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream UBSAN: shift-out-of-bounds in ext4_handle_clustersize (2) ext4 C error done 3 133d 137d 26/26 fixed on 2024/02/02 11:15
android-6-1 UBSAN: shift-out-of-bounds in ext4_handle_clustersize origin:upstream C error 1 18d 136d 0/2 upstream: reported C repro on 2023/12/24 13:33

Sample crash report:
EXT4-fs (loop4): mounting ext3 file system using the ext4 subsystem
================================================================================
UBSAN: shift-out-of-bounds in fs/ext4/super.c:4409:27
shift exponent 1970238055 is too large for 32-bit type 'int'
CPU: 1 PID: 8654 Comm: syz-executor.4 Not tainted 6.4.0-syzkaller-12365-g8689f4f2ea56 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:217 [inline]
 __ubsan_handle_shift_out_of_bounds+0x3c3/0x420 lib/ubsan.c:387
 ext4_handle_clustersize+0x592/0x5c0 fs/ext4/super.c:4409
 __ext4_fill_super fs/ext4/super.c:5287 [inline]
 ext4_fill_super+0x3a14/0x6ce0 fs/ext4/super.c:5696
 get_tree_bdev+0x468/0x6c0 fs/super.c:1318
 vfs_get_tree+0x8c/0x270 fs/super.c:1519
 do_new_mount+0x28f/0xae0 fs/namespace.c:3335
 do_mount fs/namespace.c:3675 [inline]
 __do_sys_mount fs/namespace.c:3884 [inline]
 __se_sys_mount+0x2d9/0x3c0 fs/namespace.c:3861
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7ff30748d8ba
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007ff308286f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 000000000000043e RCX: 00007ff30748d8ba
RDX: 0000000020000080 RSI: 0000000020000480 RDI: 00007ff308286fe0
RBP: 00007ff308287020 R08: 00007ff308287020 R09: 00000000c0ed0006
R10: 00000000c0ed0006 R11: 0000000000000202 R12: 0000000020000080
R13: 0000000020000480 R14: 00007ff308286fe0 R15: 0000000020000140
 </TASK>
================================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/08 19:24 upstream 8689f4f2ea56 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in ext4_handle_clustersize
2023/06/18 11:56 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in ext4_handle_clustersize
* Struck through repros no longer work on HEAD.