syzbot


UBSAN: shift-out-of-bounds in jfs_statfs

Status: auto-obsoleted due to no activity on 2024/02/25 19:43
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+3424c9550a49659f1704@syzkaller.appspotmail.com
First crash: 511d, last: 122d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] fs: jfs: fix UBSAN in jfs_statfs 1 (1) 2022/11/20 14:58
[syzbot] UBSAN: shift-out-of-bounds in jfs_statfs 0 (2) 2022/11/19 09:32
[PATCH] jfs: Fix shift-out-of-bounds in jfs_statfs 1 (1) 2022/11/16 01:36
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/01/26 19:45 17m retest repro upstream OK log
2023/11/17 19:26 15m retest repro upstream report log
2023/09/08 18:57 10m retest repro upstream report log
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2023/06/30 17:18 1h06m bisect fix upstream job log (0)
2023/05/31 07:07 39m bisect fix upstream job log (0) log
2023/04/30 15:57 39m bisect fix upstream job log (0) log
2023/03/31 15:11 39m bisect fix upstream job log (0) log
2023/03/01 13:59 1h11m bisect fix upstream job log (0) log
2023/01/28 12:32 45m bisect fix upstream job log (0) log

Sample crash report:
loop0: detected capacity change from 0 to 32768
================================================================================
UBSAN: shift-out-of-bounds in fs/jfs/super.c:140:14
shift exponent 1749508610 is too large for 64-bit type 's64' (aka 'long long')
CPU: 0 PID: 3634 Comm: syz-executor222 Not tainted 6.1.0-rc5-syzkaller-00241-gab290eaddc4c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106
 ubsan_epilogue lib/ubsan.c:151 [inline]
 __ubsan_handle_shift_out_of_bounds+0x33d/0x3b0 lib/ubsan.c:322
 jfs_statfs+0x503/0x510 fs/jfs/super.c:140
 statfs_by_dentry fs/statfs.c:66 [inline]
 vfs_statfs+0x136/0x310 fs/statfs.c:90
 user_statfs fs/statfs.c:105 [inline]
 __do_sys_statfs fs/statfs.c:195 [inline]
 __se_sys_statfs fs/statfs.c:192 [inline]
 __x64_sys_statfs+0x120/0x230 fs/statfs.c:192
 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+0x63/0xcd
RIP: 0033:0x7f0501ab8f79
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffffd945308 EFLAGS: 00000246 ORIG_RAX: 0000000000000089
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007f0501ab8f79
RDX: 00007f0501a77473 RSI: 0000000000000000 RDI: 0000000020004c80
RBP: 00007f0501a78740 R08: 0000555555fe32c0 R09: 0000000000000000
R10: 00007ffffd9451d0 R11: 0000000000000246 R12: 0a0a0a0a0a0a0a0a
R13: 0000000000000000 R14: 00083878000000f8 R15: 0000000000000000
 </TASK>
================================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/19 09:32 upstream ab290eaddc4c 5bb70014 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: shift-out-of-bounds in jfs_statfs
2022/11/21 07:07 upstream eb7081409f94 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in jfs_statfs
2022/11/21 06:35 upstream eb7081409f94 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in jfs_statfs
2022/11/19 08:59 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in jfs_statfs
2022/10/24 21:39 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] ci2-upstream-fs UBSAN: shift-out-of-bounds in jfs_statfs
* Struck through repros no longer work on HEAD.