syzbot


UBSAN: shift-out-of-bounds in extAlloc

Status: upstream: reported C repro on 2022/09/26 09:44
Reported-by: syzbot+5f088f29593e6b4c8db8@syzkaller.appspotmail.com
First crash: 67d, last: 7h07m

Cause bisection: failed (bisect log)

Sample crash report:
loop0: detected capacity change from 0 to 32768
================================================================================
UBSAN: shift-out-of-bounds in fs/jfs/jfs_extent.c:314:16
shift exponent -1 is negative
CPU: 0 PID: 3636 Comm: syz-executor228 Not tainted 6.1.0-rc6-syzkaller #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
 extBalloc fs/jfs/jfs_extent.c:314 [inline]
 extAlloc+0xe40/0xff0 fs/jfs/jfs_extent.c:122
 jfs_get_block+0x342/0xce0 fs/jfs/inode.c:248
 __block_write_begin_int+0x54c/0x1a80 fs/buffer.c:1991
 __block_write_begin fs/buffer.c:2041 [inline]
 block_write_begin+0x93/0x1e0 fs/buffer.c:2102
 jfs_write_begin+0x2d/0x60 fs/jfs/inode.c:304
 generic_perform_write+0x2e4/0x5e0 mm/filemap.c:3753
 __generic_file_write_iter+0x176/0x400 mm/filemap.c:3881
 generic_file_write_iter+0xab/0x310 mm/filemap.c:3913
 call_write_iter include/linux/fs.h:2191 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x7dc/0xc50 fs/read_write.c:584
 ksys_write+0x177/0x2a0 fs/read_write.c:637
 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:0x7f1e14cd7299
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:00007ffc704d4518 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f1e14cd7299
RDX: 0000000001670e68 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007f1e14d4aec0 R09: 00007f1e14d4aec0
R10: 0000000000000002 R11: 0000000000000246 R12: 00007ffc704d4540
R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000
 </TASK>
================================================================================

Crashes (2798):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-fs 2022/11/22 17:26 upstream eb7081409f94 9da37ae8 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/21 15:13 upstream eb7081409f94 5bb70014 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/19 01:50 upstream ab290eaddc4c 5bb70014 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/15 20:50 upstream e01d50cbd6ee 97de9cfc .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/11 15:08 upstream 4bbf3422df78 f42ee5d8 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/02 04:46 upstream b229b6ca5abb edac4fd1 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/10/30 07:12 upstream b229b6ca5abb 2a71366b .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/10/30 04:53 upstream b229b6ca5abb 2a71366b .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/10/27 15:26 upstream 98555239e4c3 86777b7f .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/10/24 00:22 upstream d47136c28015 23bf86af .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/10/23 17:44 upstream d47136c28015 23bf86af .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/10/20 04:59 upstream 493ffd6605b2 b31320fc .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/10/20 02:07 upstream 493ffd6605b2 b31320fc .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/10/16 16:23 upstream 493ffd6605b2 67cb024c .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/10/09 14:03 upstream a6afa4199d3d aea5da89 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/10/08 17:17 upstream e8bc52cb8df8 aea5da89 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/10/03 02:38 upstream a962b54e162c feb56351 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/09/25 21:20 upstream 105a36f3694e 0042f2b4 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/09/25 06:56 upstream 3db61221f4e8 0042f2b4 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-linux-next-kasan-gce-root 2022/11/05 05:16 linux-next 0cdb3579f1ee 6d752409 .config log report syz C UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/18 19:56 upstream 84368d882b96 5bb70014 .config log report syz UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/17 05:41 upstream 59d0d52c30d4 3a127a31 .config log report syz UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-selinux-root 2022/11/30 23:51 upstream 04aa64375f48 4c2a66e8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/30 12:16 upstream 01f856ae6d0c 4c2a66e8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/30 11:03 upstream 01f856ae6d0c 579a3740 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/30 08:18 upstream 01f856ae6d0c 05dc7993 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/30 01:44 upstream ca57f02295f1 579a3740 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/29 09:50 upstream ca57f02295f1 ca9683b8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/29 07:54 upstream ca57f02295f1 ca9683b8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/28 17:35 upstream b7b275e60bcd 247de55b .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-smack-root 2022/11/28 08:41 upstream bf82d38c91f8 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/28 07:32 upstream bf82d38c91f8 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/28 07:24 upstream bf82d38c91f8 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/28 04:13 upstream bf82d38c91f8 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/28 02:56 upstream bf82d38c91f8 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-selinux-root 2022/11/27 23:51 upstream faf68e3523c2 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-qemu-upstream 2022/11/27 22:37 upstream bf82d38c91f8 f4470a7b .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-qemu-upstream 2022/11/27 20:56 upstream bf82d38c91f8 f4470a7b .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/27 19:34 upstream faf68e3523c2 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/27 15:40 upstream faf68e3523c2 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/27 14:37 upstream faf68e3523c2 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/27 11:21 upstream faf68e3523c2 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/27 09:34 upstream faf68e3523c2 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-selinux-root 2022/11/27 05:11 upstream 644e9524388a 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-smack-root 2022/11/27 03:55 upstream 644e9524388a 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-smack-root 2022/11/27 01:32 upstream 644e9524388a 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-selinux-root 2022/11/26 23:47 upstream 644e9524388a 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/26 23:12 upstream 644e9524388a 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/26 19:38 upstream 644e9524388a 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/26 18:32 upstream 644e9524388a f4470a7b .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-qemu-upstream 2022/11/26 15:30 upstream 644e9524388a f4470a7b .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-selinux-root 2022/11/26 10:58 upstream 0b1dcc2cf55a 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/26 03:25 upstream 08ad43d554ba f4470a7b .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/25 18:41 upstream 08ad43d554ba 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-smack-root 2022/11/25 17:29 upstream 08ad43d554ba 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/25 12:56 upstream 08ad43d554ba 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/24 07:19 upstream 4312098baf37 ff68ff8f .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/24 04:56 upstream eb7081409f94 52fdf57a .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/24 03:19 upstream 4312098baf37 12c66417 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/23 22:02 upstream eb7081409f94 52fdf57a .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/23 20:47 upstream eb7081409f94 52fdf57a .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-selinux-root 2022/11/23 05:11 upstream eb7081409f94 9da37ae8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/23 04:58 upstream eb7081409f94 9da37ae8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-smack-root 2022/11/23 02:58 upstream eb7081409f94 9da37ae8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/22 23:55 upstream eb7081409f94 9da37ae8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/22 22:51 upstream eb7081409f94 9da37ae8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/11/22 21:02 upstream eb7081409f94 9da37ae8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-kasan-gce-root 2022/11/22 15:51 upstream eb7081409f94 1c576c23 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci2-upstream-fs 2022/09/25 06:13 upstream 3db61221f4e8 0042f2b4 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-qemu-upstream-386 2022/12/01 02:59 upstream 04aa64375f48 4c2a66e8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-qemu-upstream-386 2022/11/26 05:41 upstream 0b1dcc2cf55a f4470a7b .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-qemu-upstream-386 2022/11/24 01:08 upstream 4312098baf37 ff68ff8f .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-linux-next-kasan-gce-root 2022/11/30 21:18 linux-next 9e46a7996732 4c2a66e8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-linux-next-kasan-gce-root 2022/11/30 16:15 linux-next 9e46a7996732 4c2a66e8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-linux-next-kasan-gce-root 2022/11/29 11:00 linux-next 9e46a7996732 ca9683b8 .config log report info UBSAN: shift-out-of-bounds in extAlloc
ci-upstream-linux-next-kasan-gce-root 2022/11/26 04:26 linux-next 9e46a7996732 74a66371 .config log report info UBSAN: shift-out-of-bounds in extAlloc
* Struck through repros no longer work on HEAD.