syzbot
UBSAN: shift-out-of-bounds in ext4_handle_clustersize
Status:
upstream: reported C repro on 2023/12/24 13:33
Bug presence:
origin:upstream
[Documentation on labels]
Reported-by: syzbot+30f90bc7bfdd0cdba283@syzkaller.appspotmail.com
First crash: 967d, last: 29d
▶
▼
Bug presence (2)
| Date |
Name |
Commit |
Repro |
Result |
| 2023/12/24 |
lts (merge base) |
082280fe94a0 |
C
|
[report] UBSAN: shift-out-of-bounds in ext4_handle_clustersize
|
| 2023/12/24 |
upstream (ToT) |
861deac3b092 |
C
|
[report] UBSAN: shift-out-of-bounds in ext4_handle_clustersize
|
▶
▼
Last patch testing requests (6)
▶
▼
Fix bisection attempts (14)
Sample crash report:
================================================================================
UBSAN: shift-out-of-bounds in fs/ext4/super.c:4402:27
shift exponent 8192 is too large for 32-bit type 'int'
CPU: 1 PID: 2934 Comm: syz.2.858 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
<TASK>
__dump_stack+0x21/0x24 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
dump_stack+0x15/0x24 lib/dump_stack.c:113
ubsan_epilogue+0xe/0x40 lib/ubsan.c:151
__ubsan_handle_shift_out_of_bounds+0x364/0x3f0 lib/ubsan.c:321
ext4_handle_clustersize+0x4f4/0x600 fs/ext4/super.c:4402
__ext4_fill_super fs/ext4/super.c:5268 [inline]
ext4_fill_super+0x3edc/0x73e0 fs/ext4/super.c:5680
get_tree_bdev+0x450/0x6a0 fs/super.c:1371
ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5710
vfs_get_tree+0x9a/0x270 fs/super.c:1578
do_new_mount+0x251/0xb40 fs/namespace.c:3081
path_mount+0x640/0xfd0 fs/namespace.c:3411
do_mount fs/namespace.c:3424 [inline]
__do_sys_mount fs/namespace.c:3632 [inline]
__se_sys_mount+0x320/0x390 fs/namespace.c:3609
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3609
x64_sys_call+0x65d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f8aa979f10a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f8aaa6c3e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f8aaa6c3ee0 RCX: 00007f8aa979f10a
RDX: 0000200000000080 RSI: 0000200000000480 RDI: 00007f8aaa6c3ea0
RBP: 0000200000000080 R08: 00007f8aaa6c3ee0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000480
R13: 00007f8aaa6c3ea0 R14: 000000000000044d R15: 0000200000000640
</TASK>
================================================================================
EXT4-fs (loop2): bad geometry: first data block 0 is beyond end of filesystem (0)
* Struck through repros no longer work on HEAD.