syzbot


BUG: unable to handle kernel paging request in z_erofs_vle_unzip_all

Status: auto-obsoleted due to no activity on 2023/08/19 21:57
Reported-by: syzbot+d79323212b822552130a@syzkaller.appspotmail.com
First crash: 752d, last: 581d
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/07/01 14:04 35m retest repro android12-5.4 OK log
2023/04/21 21:49 8m retest repro android12-5.4 report log

Sample crash report:
erofs: (device loop0): mounted with opts: , root inode @ nid 36.
attempt to access beyond end of device
loop0: rw=0, want=2201354232, limit=264192
BUG: unable to handle page fault for address: ffffed113ba9decb
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23fff3067 P4D 23fff3067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 304 Comm: syz-executor246 Not tainted 5.4.210-syzkaller-00024-gbe0138c13b5d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:z_erofs_decompress_pcluster fs/erofs/zdata.c:828 [inline]
RIP: 0010:z_erofs_vle_unzip_all+0x6c5/0x1b50 fs/erofs/zdata.c:973
Code: 20 84 c0 0f 85 10 03 00 00 8b 03 c1 f8 02 89 c0 48 8b 4c 24 48 4c 8d 24 c1 4d 89 e6 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 06 00 74 08 4c 89 e7 e8 8c 1d 98 ff 4d 8b 2c 24 4d 85 ed
RSP: 0018:ffff8881dd4ef560 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: ffffea00077ef2e8 RCX: ffff8881dd4ef660
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea00077ef2e8
RBP: ffff8881dd4ef9a0 R08: dffffc0000000000 R09: fffff94000efde5e
R10: fffff94000efde5e R11: 1ffffd4000efde5d R12: ffff8889dd4ef658
R13: ffffea00077ef2c0 R14: 1ffff1113ba9decb R15: 0000000000000000
FS:  0000555556761300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed113ba9decb CR3: 00000001ddbc9000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 z_erofs_submit_and_unzip+0x134c/0x1400 fs/erofs/zdata.c:1328
 z_erofs_vle_normalaccess_readpage+0x24f/0x540 fs/erofs/zdata.c:1347
 do_read_cache_page+0x58d/0xa30 mm/filemap.c:2802
 read_mapping_page include/linux/pagemap.h:399 [inline]
 find_target_block_classic fs/erofs/namei.c:105 [inline]
 erofs_namei+0x138/0xfd0 fs/erofs/namei.c:185
 erofs_lookup+0xe8/0x350 fs/erofs/namei.c:229
 __lookup_hash+0x115/0x240 fs/namei.c:1623
 filename_create+0x193/0x6b0 fs/namei.c:3714
 user_path_create fs/namei.c:3771 [inline]
 do_mknodat+0x10f/0x3b0 fs/namei.c:3832
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f5df41cee19
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:00007ffdc77c6308 EFLAGS: 00000246 ORIG_RAX: 0000000000000103
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f5df41cee19
RDX: 0000000000000004 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007f5df418e610 R08: 00005555567612c0 R09: 0000000000000000
R10: 0000000000000700 R11: 0000000000000246 R12: 00007f5df418e6a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: ffffed113ba9decb
---[ end trace 6f641d94771428eb ]---
RIP: 0010:z_erofs_decompress_pcluster fs/erofs/zdata.c:828 [inline]
RIP: 0010:z_erofs_vle_unzip_all+0x6c5/0x1b50 fs/erofs/zdata.c:973
Code: 20 84 c0 0f 85 10 03 00 00 8b 03 c1 f8 02 89 c0 48 8b 4c 24 48 4c 8d 24 c1 4d 89 e6 49 c1 ee 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 06 00 74 08 4c 89 e7 e8 8c 1d 98 ff 4d 8b 2c 24 4d 85 ed
RSP: 0018:ffff8881dd4ef560 EFLAGS: 00010a02
RAX: dffffc0000000000 RBX: ffffea00077ef2e8 RCX: ffff8881dd4ef660
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea00077ef2e8
RBP: ffff8881dd4ef9a0 R08: dffffc0000000000 R09: fffff94000efde5e
R10: fffff94000efde5e R11: 1ffffd4000efde5d R12: ffff8889dd4ef658
R13: ffffea00077ef2c0 R14: 1ffff1113ba9decb R15: 0000000000000000
FS:  0000555556761300(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed113ba9decb CR3: 00000001ddbc9000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	20 84 c0 0f 85 10 03 	and    %al,0x310850f(%rax,%rax,8)
   7:	00 00                	add    %al,(%rax)
   9:	8b 03                	mov    (%rbx),%eax
   b:	c1 f8 02             	sar    $0x2,%eax
   e:	89 c0                	mov    %eax,%eax
  10:	48 8b 4c 24 48       	mov    0x48(%rsp),%rcx
  15:	4c 8d 24 c1          	lea    (%rcx,%rax,8),%r12
  19:	4d 89 e6             	mov    %r12,%r14
  1c:	49 c1 ee 03          	shr    $0x3,%r14
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	41 80 3c 06 00       	cmpb   $0x0,(%r14,%rax,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 e7             	mov    %r12,%rdi
  34:	e8 8c 1d 98 ff       	callq  0xff981dc5
  39:	4d 8b 2c 24          	mov    (%r12),%r13
  3d:	4d 85 ed             	test   %r13,%r13

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/02 03:38 android12-5.4 be0138c13b5d 08977f5d .config strace log report syz C [mounted in repro] ci2-android-5-4-kasan BUG: unable to handle kernel paging request in z_erofs_vle_unzip_all
* Struck through repros no longer work on HEAD.