WARNING in z_erofs_unzip_lz4 (2)

4 views
Skip to first unread message

syzbot

unread,
Dec 27, 2022, 6:00:46 PM12/27/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1710ea18480000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=ea12ff2b8cdc52372409
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

erofs: read_super, device -> /dev/loop2
erofs: options ->
erofs: z_erofs_unzip_lz4, failed to decompress, in[00000000a9df4c40, 4096] outlen[000000000f9b57db, 9000]
------------[ cut here ]------------
WARNING: CPU: 1 PID: 9275 at drivers/staging/erofs/unzip_lz4.c:244 z_erofs_unzip_lz4.cold+0x44/0xa8 drivers/staging/erofs/unzip_lz4.c:244
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 9275 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:z_erofs_unzip_lz4.cold+0x44/0xa8 drivers/staging/erofs/unzip_lz4.c:244
Code: 74 24 30 4c 8b 7c 24 40 48 8b 5c 24 38 49 89 e9 4d 89 f0 4c 89 f9 48 89 da e8 7c 1e e3 ff 48 c7 c7 20 cc 3f 89 e8 70 1e e3 ff <0f> 0b 41 b8 01 00 00 00 6a 01 49 89 d9 b9 10 00 00 00 41 57 ba 02
RSP: 0018:ffff88804a4a6658 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff88808f661000 RCX: 0000000000000000
RDX: 0000000000028bb4 RSI: ffffffff814dff01 RDI: ffffed1009494cbd
RBP: 0000000000002328 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 000000000000007f
R13: ffffffff8dd58812 R14: ffffffff8dd56be0 R15: 0000000000001000
z_erofs_vle_unzip_fast_percpu+0xff/0x530 drivers/staging/erofs/unzip_vle_lz4.c:130
z_erofs_vle_unzip.isra.0+0x11fb/0x2460 drivers/staging/erofs/unzip_vle.c:960
z_erofs_vle_unzip_all drivers/staging/erofs/unzip_vle.c:1056 [inline]
z_erofs_submit_and_unzip.isra.0+0x10dc/0x1930 drivers/staging/erofs/unzip_vle.c:1339
__z_erofs_vle_normalaccess_readpages drivers/staging/erofs/unzip_vle.c:1420 [inline]
z_erofs_vle_normalaccess_readpages+0x6b0/0xa80 drivers/staging/erofs/unzip_vle.c:1435
read_pages.isra.0+0xf6/0x5d0 mm/readahead.c:123
__do_page_cache_readahead+0x5c6/0x6c0 mm/readahead.c:211
ra_submit mm/internal.h:66 [inline]
ondemand_readahead.isra.0+0x575/0xd40 mm/readahead.c:493
page_cache_sync_readahead mm/readahead.c:528 [inline]
page_cache_sync_readahead+0x275/0x520 mm/readahead.c:510
generic_file_buffered_read mm/filemap.c:2115 [inline]
generic_file_read_iter+0x1497/0x2b60 mm/filemap.c:2385
call_read_iter include/linux/fs.h:1815 [inline]
new_sync_read fs/read_write.c:406 [inline]
__vfs_read+0x518/0x750 fs/read_write.c:418
integrity_kernel_read+0x147/0x1f0 security/integrity/iint.c:200
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:364 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:393 [inline]
ima_calc_file_hash+0x4b2/0x8a0 security/integrity/ima/ima_crypto.c:450
ima_collect_measurement+0x4c4/0x570 security/integrity/ima/ima_api.c:231
process_measurement+0xddd/0x1440 security/integrity/ima/ima_main.c:284
ima_file_check+0xb9/0x100 security/integrity/ima/ima_main.c:391
do_last fs/namei.c:3425 [inline]
path_openat+0x7e4/0x2df0 fs/namei.c:3537
do_filp_open+0x18c/0x3f0 fs/namei.c:3567
do_sys_open+0x3b3/0x520 fs/open.c:1085
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fad81cdf0a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007fad80251168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fad81dfef80 RCX: 00007fad81cdf0a9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007fad81d3aae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff8dd71e4f R14: 00007fad80251300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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,
Dec 27, 2022, 9:31:50 PM12/27/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1341b338480000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=ea12ff2b8cdc52372409
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13a6e73c480000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15c688b0480000
mounted in repro: https://storage.googleapis.com/syzbot-assets/06a4b1f5ee5e/mount_0.gz

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

erofs: read_super, device -> /dev/loop0
erofs: options ->
erofs: z_erofs_unzip_lz4, failed to decompress, in[00000000a504e643, 4096] outlen[0000000017234169, 9000]
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8092 at drivers/staging/erofs/unzip_lz4.c:244 z_erofs_unzip_lz4.cold+0x44/0xa8 drivers/staging/erofs/unzip_lz4.c:244
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8092 Comm: syz-executor239 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:z_erofs_unzip_lz4.cold+0x44/0xa8 drivers/staging/erofs/unzip_lz4.c:244
Code: 74 24 30 4c 8b 7c 24 40 48 8b 5c 24 38 49 89 e9 4d 89 f0 4c 89 f9 48 89 da e8 7c 1e e3 ff 48 c7 c7 20 cc 3f 89 e8 70 1e e3 ff <0f> 0b 41 b8 01 00 00 00 6a 01 49 89 d9 b9 10 00 00 00 41 57 ba 02
RSP: 0018:ffff88809d92e658 EFLAGS: 00010282
RAX: 0000000000000024 RBX: ffff8880b3234000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1013b25cbd
RBP: 0000000000002328 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 000000000000007f
R13: ffffffff8dd55812 R14: ffffffff8dd53be0 R15: 0000000000001000
RIP: 0033:0x7fbc7b693779
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffea13f62f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fbc7b693779
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007fbc7b653010 R08: 00000000000001e0 R09: 0000000000000000
R10: 00007ffea13f61c0 R11: 0000000000000246 R12: 00007fbc7b6530a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Reply all
Reply to author
Forward
0 new messages