syzbot


UBSAN: shift-out-of-bounds in diAlloc

Status: upstream: reported C repro on 2022/09/26 16:32
Reported-by: syzbot+9cd47a3d9ebd6776eb03@syzkaller.appspotmail.com
First crash: 75d, last: 2d22h

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: UBSAN: shift-out-of-bounds in diAlloc (log)
Repro: C syz .config

Sample crash report:
loop0: detected capacity change from 0 to 32768
================================================================================
UBSAN: shift-out-of-bounds in fs/jfs/jfs_imap.c:1357:9
shift exponent 1426063360 is too large for 64-bit type 'u64' (aka 'unsigned long long')
CPU: 0 PID: 3614 Comm: syz-executor224 Not tainted 6.0.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/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
 diAlloc+0x141a/0x1700 fs/jfs/jfs_imap.c:1357
 ialloc+0x8c/0xa80 fs/jfs/jfs_inode.c:56
 jfs_create+0x13a/0xb10 fs/jfs/namei.c:92
 lookup_open fs/namei.c:3413 [inline]
 open_last_lookups fs/namei.c:3481 [inline]
 path_openat+0x12d0/0x2df0 fs/namei.c:3688
 do_filp_open+0x264/0x4f0 fs/namei.c:3718
 do_sys_openat2+0x124/0x4e0 fs/open.c:1313
 do_sys_open fs/open.c:1329 [inline]
 __do_sys_openat fs/open.c:1345 [inline]
 __se_sys_openat fs/open.c:1340 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1340
 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:0x7f0373065e89
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:00007ffdd13e5c18 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0373065e89
RDX: 00000000000240c1 RSI: 0000000020000000 RDI: 00000000ffffff9c
RBP: 00007f0373025650 R08: 000055555565e2c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000f8008000
R13: 0000000000000000 R14: 00083878000000f4 R15: 0000000000000000
 </TASK>
================================================================================

Crashes (227):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/10/04 05:00 upstream 4fe89d07dcc2 feb56351 .config log report syz C UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/09/25 08:16 upstream 3db61221f4e8 0042f2b4 .config log report syz C UBSAN: shift-out-of-bounds in diAlloc
ci-upstream-kasan-gce-root 2022/09/25 08:02 upstream 1a61b828566f 0042f2b4 .config log report syz C UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/21 04:43 upstream eb7081409f94 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/21 02:39 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 23:45 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 23:14 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 22:10 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 19:52 upstream 77c51ba552a1 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 13:09 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 12:08 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 09:44 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 08:16 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 03:38 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/20 02:34 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 21:43 upstream fe24a97cf254 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 18:07 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 16:35 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 14:46 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 12:45 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 10:48 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 08:04 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 06:20 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/19 03:23 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/18 21:50 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/18 21:39 upstream ab290eaddc4c 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/18 18:35 upstream 84368d882b96 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/18 15:29 upstream 84368d882b96 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/18 11:33 upstream 84368d882b96 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/18 10:27 upstream 84368d882b96 5bb70014 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/18 00:24 upstream 81ac25651a62 4ba8ab94 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/17 14:08 upstream cc675d22e422 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/17 05:10 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/17 04:07 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/17 01:24 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/16 23:11 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/16 21:40 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/16 12:34 upstream 81e7cfa3a9eb 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/16 10:39 upstream 81e7cfa3a9eb 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/16 04:13 upstream 81e7cfa3a9eb 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/15 16:18 upstream e01d50cbd6ee 97de9cfc .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/15 06:21 upstream e01d50cbd6ee 97de9cfc .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci-upstream-kasan-gce-smack-root 2022/11/15 04:44 upstream 094226ad94f4 943f4cb8 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/14 19:06 upstream 094226ad94f4 943f4cb8 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/14 13:02 upstream 094226ad94f4 943f4cb8 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/13 17:49 upstream af7a05689189 7ba4d859 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/13 10:58 upstream fef7fd48922d f42ee5d8 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci2-upstream-fs 2022/11/13 09:17 upstream fef7fd48922d f42ee5d8 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci-upstream-kasan-gce-selinux-root 2022/11/06 03:54 upstream b208b9fbbcba 6d752409 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci-upstream-kasan-gce-root 2022/10/19 19:34 upstream 55be6084c8e0 b31320fc .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci-qemu-upstream-386 2022/12/06 09:25 upstream bce9332220bd 045cbb84 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci-qemu-upstream-386 2022/11/16 18:32 upstream 59d0d52c30d4 3a127a31 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci-upstream-linux-next-kasan-gce-root 2022/10/23 10:11 linux-next 4d48f589d294 c0b80a55 .config log report info UBSAN: shift-out-of-bounds in diAlloc
ci-upstream-linux-next-kasan-gce-root 2022/09/24 17:18 linux-next aaa11ce2ffc8 0042f2b4 .config log report info UBSAN: shift-out-of-bounds in diAlloc
* Struck through repros no longer work on HEAD.