syzbot


WARNING in z_erofs_unzip_lz4 (2)

Status: upstream: reported C repro on 2022/12/27 23:00
Subsystems: erofs
[Documentation on labels]
Reported-by: syzbot+ea12ff2b8cdc52372409@syzkaller.appspotmail.com
First crash: 485d, last: 485d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in z_erofs_unzip_lz4 1 803d 803d 0/1 auto-closed as invalid on 2022/06/13 16:25

Sample crash report:
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
 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: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
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/28 02:30 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in z_erofs_unzip_lz4
2022/12/27 23:00 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in z_erofs_unzip_lz4
* Struck through repros no longer work on HEAD.