syzbot


UBSAN: shift-out-of-bounds in parse_options

Status: upstream: reported C repro on 2023/01/08 05:56
Bug presence: origin:lts
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+298c1c62e38088db169c@syzkaller.appspotmail.com
First crash: 472d, last: 6d13h
Cause bisection: failed (error log, bisect log)
  
Bug presence (2)
Date Name Commit Repro Result
2023/10/28 lts (merge base) 12952a23a5da C [report] UBSAN: shift-out-of-bounds in parse_options
2023/10/28 upstream (ToT) 56567a20b22b C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 UBSAN: shift-out-of-bounds in parse_options origin:lts-only C unreliable 1 157d 157d 0/3 upstream: reported C repro on 2023/11/19 20:08
Last patch testing requests (9)
Created Duration User Patch Repo Result
2024/04/18 12:17 27m retest repro android13-5.15-lts report log
2024/04/04 11:18 6m retest repro android13-5.15-lts report log
2024/03/21 10:00 13m retest repro android13-5.15-lts report log
2024/02/24 16:49 13m retest repro android13-5.15-lts report log
2024/01/25 12:35 5m retest repro android13-5.15-lts report log
2024/01/11 09:45 16m retest repro android13-5.15-lts report log
2024/01/11 09:45 13m retest repro android13-5.15-lts report log
2023/04/12 05:56 22m tudor.ambarus@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git dev OK log
2023/04/07 11:02 12m tudor.ambarus@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2023/12/16 15:24 36m bisect fix android13-5.15-lts job log (0) log
2023/10/28 01:39 34m bisect fix android13-5.15-lts job log (0) log
2023/06/09 23:50 16m bisect fix android13-5.15-lts job log (0) log
2023/05/10 18:57 41m bisect fix android13-5.15-lts job log (0) log
2023/04/09 01:19 22m bisect fix android13-5.15-lts job log (0) log
2023/03/09 18:29 45m bisect fix android13-5.15-lts job log (0) log
2023/02/07 17:54 18m bisect fix android13-5.15-lts job log (0) log

Sample crash report:
UBSAN: shift-out-of-bounds in fs/ext4/super.c:2493:15
shift exponent 1566810319 is too large for 32-bit type 'int'
CPU: 1 PID: 335 Comm: syz-executor125 Not tainted 5.15.141-syzkaller-00899-g28e3f5851a99 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106
 dump_stack+0x15/0x17 lib/dump_stack.c:113
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_shift_out_of_bounds+0x3bf/0x420 lib/ubsan.c:321
 parse_options+0x2c9d/0x2d20 fs/ext4/super.c:2493
 ext4_fill_super+0x2084/0x96e0 fs/ext4/super.c:4167
 mount_bdev+0x282/0x3b0 fs/super.c:1387
 ext4_mount+0x34/0x40 fs/ext4/super.c:6581
 legacy_get_tree+0xf1/0x190 fs/fs_context.c:611
 vfs_get_tree+0x88/0x290 fs/super.c:1517
 do_new_mount+0x28b/0xad0 fs/namespace.c:2994
 path_mount+0x671/0x1070 fs/namespace.c:3324
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3522
 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3522
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fa3a6d3b81a
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd449a1568 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd449a1580 RCX: 00007fa3a6d3b81a
RDX: 0000000020000180 RSI: 00000000200000c0 RDI: 00007ffd449a1580
RBP: 0000000000000004 R08: 00007ffd449a15c0 R09: 00007ffd449a15c0
R10: 0000000000800714 R11: 0000000000000202 R12: 0000000000800714
R13: 00007ffd449a15c0 R14: 0000000000000003 R15: 0000000000040000
 </TASK>
================================================================================
EXT4-fs (loop0): Encoding requested by superblock is unknown

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/28 08:08 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 parse_options
2023/11/02 05:55 android13-5.15-lts 61cfd264993d 69904c9f .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
2023/07/03 09:57 android13-5.15-lts 241da2ad5601 bfc47836 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
2023/01/08 05:54 android13-5.15-lts c73b4619ad86 1dac8c7a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
2023/09/27 03:40 android13-5.15-lts ea586874d2f9 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
2023/09/20 12:27 android13-5.15-lts ea586874d2f9 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
2023/09/18 02:50 android13-5.15-lts ea586874d2f9 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
2023/07/06 20:22 android13-5.15-lts 879959450ec7 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
2023/07/03 09:38 android13-5.15-lts 241da2ad5601 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 UBSAN: shift-out-of-bounds in parse_options
* Struck through repros no longer work on HEAD.