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: 942d, last: 27d
▶
▼
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
|
▶
▼
Last patch testing requests (8)
▶
▼
Fix bisection attempts (8)
Sample crash report:
================================================================================
UBSAN: shift-out-of-bounds in fs/ext4/super.c:4452:27
shift exponent 8192 is too large for 32-bit type 'int'
CPU: 0 PID: 569 Comm: syz.2.77 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/09/2026
Call Trace:
<TASK>
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 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+0x364/0x3f0 lib/ubsan.c:321
ext4_fill_super+0x6a7b/0x8bf0 fs/ext4/super.c:4452
mount_bdev+0x28d/0x3c0 fs/super.c:1400
ext4_mount+0x34/0x40 fs/ext4/super.c:6650
legacy_get_tree+0xed/0x190 fs/fs_context.c:611
vfs_get_tree+0x89/0x260 fs/super.c:1530
do_new_mount+0x251/0xb40 fs/namespace.c:3037
path_mount+0x640/0xff0 fs/namespace.c:3367
do_mount fs/namespace.c:3380 [inline]
__do_sys_mount fs/namespace.c:3588 [inline]
__se_sys_mount+0x320/0x390 fs/namespace.c:3565
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3565
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:0x7fc7e1ae90ca
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:00007fc7e1949e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fc7e1949ee0 RCX: 00007fc7e1ae90ca
RDX: 0000200000000080 RSI: 0000200000000480 RDI: 00007fc7e1949ea0
RBP: 0000200000000080 R08: 00007fc7e1949ee0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000480
R13: 00007fc7e1949ea0 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.