syzbot


BUG: unable to handle kernel paging request in z_erofs_decompress_pcluster

Status: auto-obsoleted due to no activity on 2023/06/08 02:37
Subsystems: erofs
[Documentation on labels]
Reported-by: syzbot+95082e4560bd0460034d@syzkaller.appspotmail.com
First crash: 540d, last: 442d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/05/19 04:55 14m retest repro android13-5.10-lts OK log
2022/12/12 08:47 7m tudor.ambarus@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.15.y report log
2022/12/12 08:47 8m tudor.ambarus@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git linux-5.10.y report log
2022/12/12 08:47 13m tudor.ambarus@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/03/10 02:38 0m bisect fix android12-5.10-lts error job log (0)
2023/01/21 07:03 21m bisect fix android12-5.10-lts job log (0) log

Sample crash report:
attempt to access beyond end of device
loop0: rw=0, want=2201354232, limit=264192
BUG: unable to handle page fault for address: fffff52100164e27
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffef067 P4D 23ffef067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 371 Comm: syz-executor209 Not tainted 5.10.149-syzkaller-01350-g0118fb827bc7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0010:z_erofs_decompress_pcluster+0x7a0/0x1d70 fs/erofs/zdata.c:914
Code: 00 e8 b4 1b 85 ff 41 8a 04 1e 84 c0 0f 85 13 02 00 00 41 8b 07 c1 f8 02 89 c0 48 8b 4c 24 58 4c 8d 34 c1 4d 89 f7 49 c1 ef 03 <41> 80 3c 1f 00 74 08 4c 89 f7 e8 91 19 85 ff 4d 8b 26 4d 85 e4 0f
RSP: 0018:ffffc90000b27060 EFLAGS: 00010a06
RAX: 00000000ffffffff RBX: dffffc0000000000 RCX: ffffc90000b27140
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea000477cd68
RBP: ffffc90000b27570 R08: dffffc0000000000 R09: fffff940008ef9ae
R10: fffff940008ef9ae R11: 1ffffd40008ef9ad R12: ffffea000477cd40
R13: 0000000000000000 R14: ffffc90800b27138 R15: 1ffff92100164e27
FS:  0000555555cc0300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffff52100164e27 CR3: 000000011c15d000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 z_erofs_decompress_queue fs/erofs/zdata.c:1059 [inline]
 z_erofs_runqueue+0xbbb/0xcd0 fs/erofs/zdata.c:1380
 z_erofs_readpage+0x2fc/0x5f0 fs/erofs/zdata.c:1398
 do_read_cache_page+0x717/0x8f0 mm/filemap.c:3156
 read_cache_page+0x4d/0x70 mm/filemap.c:3255
 read_mapping_page include/linux/pagemap.h:498 [inline]
 find_target_block_classic+0x133/0xa30 fs/erofs/namei.c:105
 erofs_namei+0x1c0/0x9e0 fs/erofs/namei.c:185
 erofs_lookup+0x141/0x3b0 fs/erofs/namei.c:229
 __lookup_hash+0x141/0x290 fs/namei.c:1531
 filename_create+0x207/0x770 fs/namei.c:3547
 user_path_create fs/namei.c:3604 [inline]
 do_mknodat+0x15f/0x430 fs/namei.c:3667
 __do_sys_mknodat fs/namei.c:3702 [inline]
 __se_sys_mknodat fs/namei.c:3699 [inline]
 __x64_sys_mknodat+0x9b/0xb0 fs/namei.c:3699
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fa7ffe6de19
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:00007fff54649de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000103
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa7ffe6de19
RDX: 0000000000000004 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007fa7ffe2d610 R08: 0000555555cc02c0 R09: 0000000000000000
R10: 0000000000000700 R11: 0000000000000246 R12: 00007fa7ffe2d6a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: fffff52100164e27
---[ end trace d4694d95192b3555 ]---
RIP: 0010:z_erofs_decompress_pcluster+0x7a0/0x1d70 fs/erofs/zdata.c:914
Code: 00 e8 b4 1b 85 ff 41 8a 04 1e 84 c0 0f 85 13 02 00 00 41 8b 07 c1 f8 02 89 c0 48 8b 4c 24 58 4c 8d 34 c1 4d 89 f7 49 c1 ef 03 <41> 80 3c 1f 00 74 08 4c 89 f7 e8 91 19 85 ff 4d 8b 26 4d 85 e4 0f
RSP: 0018:ffffc90000b27060 EFLAGS: 00010a06
RAX: 00000000ffffffff RBX: dffffc0000000000 RCX: ffffc90000b27140
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea000477cd68
RBP: ffffc90000b27570 R08: dffffc0000000000 R09: fffff940008ef9ae
R10: fffff940008ef9ae R11: 1ffffd40008ef9ad R12: ffffea000477cd40
R13: 0000000000000000 R14: ffffc90800b27138 R15: 1ffff92100164e27
FS:  0000555555cc0300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffff52100164e27 CR3: 000000011c15d000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 e8                	add    %ch,%al
   2:	b4 1b                	mov    $0x1b,%ah
   4:	85 ff                	test   %edi,%edi
   6:	41 8a 04 1e          	mov    (%r14,%rbx,1),%al
   a:	84 c0                	test   %al,%al
   c:	0f 85 13 02 00 00    	jne    0x225
  12:	41 8b 07             	mov    (%r15),%eax
  15:	c1 f8 02             	sar    $0x2,%eax
  18:	89 c0                	mov    %eax,%eax
  1a:	48 8b 4c 24 58       	mov    0x58(%rsp),%rcx
  1f:	4c 8d 34 c1          	lea    (%rcx,%rax,8),%r14
  23:	4d 89 f7             	mov    %r14,%r15
  26:	49 c1 ef 03          	shr    $0x3,%r15
* 2a:	41 80 3c 1f 00       	cmpb   $0x0,(%r15,%rbx,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 91 19 85 ff       	callq  0xff8519ca
  39:	4d 8b 26             	mov    (%r14),%r12
  3c:	4d 85 e4             	test   %r12,%r12
  3f:	0f                   	.byte 0xf

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/02 03:22 android12-5.10-lts 0118fb827bc7 08977f5d .config strace log report syz C [mounted in repro] ci2-android-5-10 BUG: unable to handle kernel paging request in z_erofs_decompress_pcluster
2023/02/08 02:37 android12-5.10-lts 416c4356f372 15c3d445 .config console log report info ci2-android-5-10 BUG: unable to handle kernel paging request in z_erofs_decompress_pcluster
2022/11/02 03:12 android12-5.10-lts 0118fb827bc7 08977f5d .config console log report info ci2-android-5-10 BUG: unable to handle kernel paging request in z_erofs_decompress_pcluster
* Struck through repros no longer work on HEAD.