syzbot


usb-testing boot error: BUG: unable to handle kernel paging request in __handle_mm_fault

Status: internal: reported on 2022/08/15 23:58
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: 9993a4f989c7 virtio: Revert "virtio: find_vqs() add arg sizes"
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 166d, last: 166d

Sample crash report:
BUG: unable to handle page fault for address: ffffeedd2000006f
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 0 P4D 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1183 Comm: udevd Not tainted 6.0.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
RIP: 0010:handle_pte_fault mm/memory.c:4889 [inline]
RIP: 0010:__handle_mm_fault+0x443/0x31c0 mm/memory.c:5053
Code: 00 00 00 00 80 88 ff ff 49 01 c4 4c 21 ed 48 b8 00 00 00 00 00 fc ff df 4c 01 e5 48 89 ea 48 89 ac 24 b8 00 00 00 48 c1 ea 03 <80> 3c 02 00 0f 85 f8 28 00 00 48 8b 45 00 81 8c 24 88 00 00 00 00
RSP: 0000:ffffc900005e7d28 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: 1ffff920000bcfab RCX: 0000000000000000
RDX: 1ffff2dd2000006f RSI: ffffffff816a1a27 RDI: 0000000000000007
RBP: ffff96e900000378 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888000000378
R13: 000ffffffffff000 R14: 000000010e69b067 R15: 000000010e69b007
FS:  00007f2499b00840(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffeedd2000006f CR3: 000000010e69d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 handle_mm_fault+0x1c8/0x780 mm/memory.c:5151
 do_user_addr_fault+0x475/0x1210 arch/x86/mm/fault.c:1397
 handle_page_fault arch/x86/mm/fault.c:1488 [inline]
 exc_page_fault+0x94/0x170 arch/x86/mm/fault.c:1544
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:570
RIP: 0033:0x55664166f9fe
Code: Unable to access opcode bytes at RIP 0x55664166f9d4.
RSP: 002b:00007ffc16a72e80 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 00007f2499c65e46
RDX: 0000000000000004 RSI: 00007ffc16a72eb8 RDI: 0000000000000004
RBP: 00005566422dba10 R08: 0000000000000007 R09: 00005566422ea740
R10: 00000000ffffffff R11: 0000000000000246 R12: 00005566422fde30
R13: 00007ffc16a72eb8 R14: 00000000ffffffff R15: 00005566422c7910
 </TASK>
Modules linked in:
CR2: ffffeedd2000006f
---[ end trace 0000000000000000 ]---
RIP: 0010:handle_pte_fault mm/memory.c:4889 [inline]
RIP: 0010:__handle_mm_fault+0x443/0x31c0 mm/memory.c:5053
Code: 00 00 00 00 80 88 ff ff 49 01 c4 4c 21 ed 48 b8 00 00 00 00 00 fc ff df 4c 01 e5 48 89 ea 48 89 ac 24 b8 00 00 00 48 c1 ea 03 <80> 3c 02 00 0f 85 f8 28 00 00 48 8b 45 00 81 8c 24 88 00 00 00 00
RSP: 0000:ffffc900005e7d28 EFLAGS: 00010a06
RAX: dffffc0000000000 RBX: 1ffff920000bcfab RCX: 0000000000000000
RDX: 1ffff2dd2000006f RSI: ffffffff816a1a27 RDI: 0000000000000007
RBP: ffff96e900000378 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffff888000000378
R13: 000ffffffffff000 R14: 000000010e69b067 R15: 000000010e69b007
FS:  00007f2499b00840(0000) GS:ffff8881f6900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055664166f9d4 CR3: 000000010e69d000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	80 88 ff ff 49 01 c4 	orb    $0xc4,0x149ffff(%rax)
   b:	4c 21 ed             	and    %r13,%rbp
   e:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  15:	fc ff df
  18:	4c 01 e5             	add    %r12,%rbp
  1b:	48 89 ea             	mov    %rbp,%rdx
  1e:	48 89 ac 24 b8 00 00 	mov    %rbp,0xb8(%rsp)
  25:	00
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 f8 28 00 00    	jne    0x292c
  34:	48 8b 45 00          	mov    0x0(%rbp),%rax
  38:	81                   	.byte 0x81
  39:	8c 24 88             	mov    %fs,(%rax,%rcx,4)
  3c:	00 00                	add    %al,(%rax)

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-usb 2022/08/15 23:57 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 568035b01cfb 7a7cb304 .config console log report usb-testing boot error: BUG: unable to handle kernel paging request in __handle_mm_fault
* Struck through repros no longer work on HEAD.