UBSAN: undefined-behaviour in diReadSpecial

7 views
Skip to first unread message

syzbot

unread,
Sep 21, 2020, 4:52:23 PM9/21/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 015e94d0 Linux 4.19.146
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16e1b6c3900000
kernel config: https://syzkaller.appspot.com/x/.config?x=243dd74ad58a8a57
dashboard link: https://syzkaller.appspot.com/bug?extid=d435fc5677c7fbf65a9e
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d435fc...@syzkaller.appspotmail.com

================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:458:7
shift exponent -1 is negative
CPU: 0 PID: 13572 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
NILFS (loop4): couldn't find nilfs on the device
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diReadSpecial.cold+0x1b/0x3e fs/jfs/jfs_imap.c:458
jfs_mount+0x83/0x3d0 fs/jfs/jfs_mount.c:98
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
NILFS (loop2): couldn't find nilfs on the device
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
NILFS (loop4): couldn't find nilfs on the device
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop4): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
================================================================================
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UBSAN: Undefined behaviour in fs/jfs/jfs_mount.c:385:25
shift exponent 32 is too large for 32-bit type 'int'
CPU: 1 PID: 13658 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
chkSuper.cold+0x1e/0x98 fs/jfs/jfs_mount.c:385
jfs_mount+0x47/0x3d0 fs/jfs/jfs_mount.c:94
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
UDF-fs: Scanning with blocksize 2048 failed
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
NILFS (loop4): couldn't find nilfs on the device
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
Cannot find add_set index 0 as target
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
Cannot find add_set index 0 as target
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
Cannot find add_set index 0 as target
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
Cannot find add_set index 0 as target
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: Scanning with blocksize 4096 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop4): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop2): couldn't find nilfs on the device
print_req_error: I/O error, dev loop6, sector 0
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
================================================================================
NILFS (loop0): couldn't find nilfs on the device
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:126:7
shift exponent -512 is negative
CPU: 1 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
NILFS (loop2): couldn't find nilfs on the device
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diMount.cold+0x17/0x1c fs/jfs/jfs_imap.c:126
jfs_mount+0xbf/0x3d0 fs/jfs/jfs_mount.c:111
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_xtree.c:166:62
shift exponent 524 is too large for 64-bit type 'long long unsigned int'
CPU: 1 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
xtLookup.cold+0x1a/0x1f fs/jfs/jfs_xtree.c:166
metapage_get_blocks+0x23b/0x310 fs/jfs/jfs_metapage.c:262
metapage_readpage+0x63e/0x8d0 fs/jfs/jfs_metapage.c:503
do_read_cache_page+0x533/0x1080 mm/filemap.c:2828
read_mapping_page include/linux/pagemap.h:402 [inline]
__get_metapage+0x28c/0x1480 fs/jfs/jfs_metapage.c:634
diMount+0x108/0x860 fs/jfs/jfs_imap.c:126
jfs_mount+0xbf/0x3d0 fs/jfs/jfs_mount.c:111
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_dmap.c:181:7
shift exponent -512 is negative
CPU: 1 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
dbMount.cold+0x17/0x1c fs/jfs/jfs_dmap.c:181
jfs_mount+0x124/0x3d0 fs/jfs/jfs_mount.c:132
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:444:36
shift exponent -512 is negative
CPU: 0 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diReadSpecial.cold+0x39/0x3e fs/jfs/jfs_imap.c:444
jfs_mount+0x25b/0x3d0 fs/jfs/jfs_mount.c:149
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
================================================================================
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:2674:10
shift exponent -512 is negative
CPU: 1 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
diIAGRead.cold+0x1b/0x20 fs/jfs/jfs_imap.c:2674
diRead+0x182/0x8a0 fs/jfs/jfs_imap.c:330
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
jfs_iget+0x82/0x4d0 fs/jfs/inode.c:47
jfs_fill_super+0x657/0xb50 fs/jfs/super.c:613
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:352:10
shift exponent -512 is negative
CPU: 1 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diRead.cold+0xf6/0x195 fs/jfs/jfs_imap.c:352
jfs_iget+0x82/0x4d0 fs/jfs/inode.c:47
jfs_fill_super+0x657/0xb50 fs/jfs/super.c:613
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:360:17
shift exponent -512 is negative
CPU: 1 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diRead.cold+0x18/0x195 fs/jfs/jfs_imap.c:360
jfs_iget+0x82/0x4d0 fs/jfs/inode.c:47
jfs_fill_super+0x657/0xb50 fs/jfs/super.c:613
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:378:7
shift exponent -512 is negative
CPU: 1 PID: 14035 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diRead.cold+0x35/0x195 fs/jfs/jfs_imap.c:378
jfs_iget+0x82/0x4d0 fs/jfs/inode.c:47
jfs_fill_super+0x657/0xb50 fs/jfs/super.c:613
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f5acff62a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f5acff62b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f5acff62ae0
RBP: 00007f5acff62ae0 R08: 00007f5acff62b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020064f00
================================================================================
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:230:7
shift exponent -512 is negative
CPU: 0 PID: 6494 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diSync.cold+0x17/0x1c fs/jfs/jfs_imap.c:230
diUnmount+0xba/0x120 fs/jfs/jfs_imap.c:200
jfs_umount+0xce/0x310 fs/jfs/jfs_umount.c:76
jfs_put_super+0x61/0x140 fs/jfs/super.c:223
generic_shutdown_super+0x144/0x370 fs/super.c:456
kill_block_super+0x97/0xf0 fs/super.c:1185
deactivate_locked_super+0x8c/0x100 fs/super.c:329
deactivate_super+0x174/0x1a0 fs/super.c:360
cleanup_mnt+0x1da/0x300 fs/namespace.c:1098
task_work_run+0x141/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x269/0x2c0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x57c/0x670 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x460027
Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc106b52b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000460027
RDX: 0000000000403188 RSI: 0000000000000002 RDI: 00007ffc106b5360
RBP: 00000000000013b9 R08: 0000000000000000 R09: 000000000000000c
R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffc106b63f0
R13: 0000000002d01a60 R14: 0000000000000000 R15: 00007ffc106b63f0
================================================================================
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:529:7
shift exponent -512 is negative
CPU: 0 PID: 6494 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diWriteSpecial.cold+0x6c/0x7b fs/jfs/jfs_imap.c:529
diSync+0x55a/0x740 fs/jfs/jfs_imap.c:265
diUnmount+0xba/0x120 fs/jfs/jfs_imap.c:200
jfs_umount+0xce/0x310 fs/jfs/jfs_umount.c:76
jfs_put_super+0x61/0x140 fs/jfs/super.c:223
generic_shutdown_super+0x144/0x370 fs/super.c:456
kill_block_super+0x97/0xf0 fs/super.c:1185
deactivate_locked_super+0x8c/0x100 fs/super.c:329
deactivate_super+0x174/0x1a0 fs/super.c:360
NILFS (loop4): couldn't find nilfs on the device
cleanup_mnt+0x1da/0x300 fs/namespace.c:1098
task_work_run+0x141/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x269/0x2c0 arch/x86/entry/common.c:167
NILFS (loop0): couldn't find nilfs on the device
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x57c/0x670 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x460027
Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc106b52b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000460027
RDX: 0000000000403188 RSI: 0000000000000002 RDI: 00007ffc106b5360
RBP: 00000000000013b9 R08: 0000000000000000 R09: 000000000000000c
R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffc106b63f0
R13: 0000000002d01a60 R14: 0000000000000000 R15: 00007ffc106b63f0
================================================================================
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_dmap.c:274:7
shift exponent -512 is negative
CPU: 0 PID: 6494 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
dbSync.cold+0x17/0x1c fs/jfs/jfs_dmap.c:274
dbUnmount+0xcc/0x140 fs/jfs/jfs_dmap.c:247
jfs_umount+0x1cc/0x310 fs/jfs/jfs_umount.c:102
jfs_put_super+0x61/0x140 fs/jfs/super.c:223
generic_shutdown_super+0x144/0x370 fs/super.c:456
kill_block_super+0x97/0xf0 fs/super.c:1185
deactivate_locked_super+0x8c/0x100 fs/super.c:329
deactivate_super+0x174/0x1a0 fs/super.c:360
cleanup_mnt+0x1da/0x300 fs/namespace.c:1098
task_work_run+0x141/0x1c0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x269/0x2c0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x57c/0x670 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x460027
Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc106b52b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000460027
RDX: 0000000000403188 RSI: 0000000000000002 RDI: 00007ffc106b5360
RBP: 00000000000013b9 R08: 0000000000000000 R09: 000000000000000c
R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffc106b63f0
R13: 0000000002d01a60 R14: 0000000000000000 R15: 00007ffc106b63f0
================================================================================
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 512 failed
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 1024 failed
NILFS (loop2): couldn't find nilfs on the device
print_req_error: I/O error, dev loop6, sector 128
Buffer I/O error on dev loop6, logical block 16, lost async page write
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=256, location=256
NILFS (loop4): couldn't find nilfs on the device
NILFS (loop0): couldn't find nilfs on the device
UDF-fs: error (device loop1): udf_read_tagged: read failed, block=512, location=512
NILFS (loop2): couldn't find nilfs on the device
UDF-fs: warning (device loop1): udf_load_vrs: No anchor found
UDF-fs: Scanning with blocksize 2048 failed
UDF-fs: warning (device loop1): udf_load_vrs: No VRS found
UDF-fs: Scanning with blocksize 4096 failed
NILFS (loop0): couldn't find nilfs on the device


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Sep 21, 2020, 11:45:22 PM9/21/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 015e94d0 Linux 4.19.146
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14c954e3900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10609f07900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10963dd9900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+d435fc...@syzkaller.appspotmail.com

audit: type=1400 audit(1600746196.933:8): avc: denied { execmem } for pid=6480 comm="syz-executor445" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
================================================================================
UBSAN: Undefined behaviour in fs/jfs/jfs_imap.c:458:7
shift exponent -1 is negative
CPU: 1 PID: 6480 Comm: syz-executor445 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
diReadSpecial.cold+0x1b/0x3e fs/jfs/jfs_imap.c:458
jfs_mount+0x83/0x3d0 fs/jfs/jfs_mount.c:98
jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44cb0a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd ad fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da ad fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffc64c90a18 EFLAGS: 00000283 ORIG_RAX: 00000000000000a5
RAX: fffff

Reply all
Reply to author
Forward
0 new messages