syzbot


UBSAN: shift-out-of-bounds in dbSplit

Status: upstream: reported C repro on 2022/10/04 09:00
Subsystems: jfs
[Documentation on labels]
Reported-by: syzbot+8c777e17f74c66068ffa@syzkaller.appspotmail.com
First crash: 425d, last: 4d13h
Cause bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] UBSAN: shift-out-of-bounds in dbSplit 0 (1) 2022/10/04 09:00
Last patch testing requests (8)
Created Duration User Patch Repo Result
2023/11/27 13:40 39m retest repro upstream report log
2023/10/31 01:48 14m retest repro upstream report log
2023/10/13 19:46 36m mushi.shar@gmail.com patch upstream OK log
2023/10/13 19:30 7m mushi.shar@gmail.com patch upstream error OK
2023/10/10 06:39 14m retest repro upstream report log
2023/09/22 09:15 10m ghandatmanas@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log
2023/09/18 12:55 12m retest repro upstream report log
2023/08/22 00:08 26m retest repro upstream report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2023/07/31 10:07 1h35m bisect fix upstream job log (0) log
2023/06/24 05:38 25m bisect fix upstream job log (0) log
2023/05/24 23:08 21m bisect fix upstream job log (0) log
2023/04/24 21:29 39m bisect fix upstream job log (0) log
2023/03/25 20:54 34m bisect fix upstream job log (0) log
2023/02/23 10:40 46m bisect fix upstream job log (0) log
2023/01/23 22:23 47m bisect fix upstream job log (0) log
2022/11/07 13:46 35m 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/jfs_dmap.c:2632:11
shift exponent 121 is too large for 32-bit type 'int'
CPU: 1 PID: 5027 Comm: syz-executor257 Not tainted 6.5.0-syzkaller-11329-g708283abf896 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/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
 dbSplit+0x1e5/0x1f0 fs/jfs/jfs_dmap.c:2632
 dbAllocBits+0x4df/0x990 fs/jfs/jfs_dmap.c:2184
 dbAllocDmap fs/jfs/jfs_dmap.c:2025 [inline]
 dbAllocDmapLev+0x24e/0x490 fs/jfs/jfs_dmap.c:1979
 dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1816
 dbAllocAG+0x28f/0x10b0 fs/jfs/jfs_dmap.c:1357
 dbAlloc+0x658/0xca0 fs/jfs/jfs_dmap.c:881
 dtSplitUp fs/jfs/jfs_dtree.c:974 [inline]
 dtInsert+0xda7/0x6b00 fs/jfs/jfs_dtree.c:863
 jfs_create+0x7b6/0xb90 fs/jfs/namei.c:137
 lookup_open fs/namei.c:3495 [inline]
 open_last_lookups fs/namei.c:3563 [inline]
 path_openat+0x13e7/0x3180 fs/namei.c:3793
 do_filp_open+0x234/0x490 fs/namei.c:3823
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1422
 do_sys_open fs/open.c:1437 [inline]
 __do_sys_open fs/open.c:1445 [inline]
 __se_sys_open fs/open.c:1441 [inline]
 __x64_sys_open+0x225/0x270 fs/open.c:1441
 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:0x7fd0815db9b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffef2b1cc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fffef2b1ea8 RCX: 00007fd0815db9b9
RDX: 0000000000000000 RSI: 0000000000000040 RDI: 0000000020000400
RBP: 00007fd081654610 R08: 00000000000060cc R09: 0000000000000000
R10: 00007fffef2b1b90 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fffef2b1e98 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
================================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/04 12:38 upstream 708283abf896 696ea0d2 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs UBSAN: shift-out-of-bounds in dbSplit
2022/10/08 06:31 upstream 4c86114194e6 0de35f24 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root UBSAN: shift-out-of-bounds in dbSplit
2022/10/02 17:40 upstream b357fd1c2afc feb56351 .config strace log report syz C [disk image] [vmlinux] ci2-upstream-fs UBSAN: shift-out-of-bounds in dbSplit
2023/09/04 12:18 upstream 708283abf896 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs UBSAN: shift-out-of-bounds in dbSplit
2023/02/23 20:54 linux-next 0222aa9800b2 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root UBSAN: shift-out-of-bounds in dbSplit
* Struck through repros no longer work on HEAD.