syzbot


BUG: unable to handle kernel paging request in copy_user_handle_tail

Status: closed as dup on 2017/12/19 12:17
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+3eb502e4ffc8d10e954c93b17c5898e460af8908@syzkaller.appspotmail.com
First crash: 2347d, last: 2340d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
BUG: unable to handle kernel paging request in __switch_to kernel 1 2346d 2342d

Sample crash report:
netlink: 8 bytes leftover after parsing attributes in process `syz-executor2'.
BUG: unable to handle kernel paging request at 000000003edc2e71
IP: copy_user_handle_tail+0x31/0x80 arch/x86/lib/usercopy_64.c:69
PGD 5e28067 P4D 5e28067 PUD 5e2a067 PMD 0 
Oops: 0002 [#1] SMP KASAN
Dumping ftrace buffer:
   (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 19658 Comm: syz-executor7 Not tainted 4.15.0-rc2-next-20171205+ #59
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: 00000000026e34bf task.stack: 0000000025fda91c
RIP: 0010:copy_user_handle_tail+0x31/0x80 arch/x86/lib/usercopy_64.c:69
RSP: 0018:ffff8801d1606f80 EFLAGS: 00010246
RAX: 0000000000010000 RBX: 0000000000000000 RCX: ffffffff85165c95
RDX: 0000000000000da6 RSI: ffffc900027a6000 RDI: ffff8801d0274340
RBP: ffff8801d1606fa8 R08: 0000000000000030 R09: 0000000000001b4e
R10: 0000000000000002 R11: ffffed003a04e869 R12: 000000000000000f
R13: ffff8801d0274340 R14: 0000000020000007 R15: 0000000020000030
FS:  00007f30d2fc9700(0000) GS:ffff8801db400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffff8 CR3: 00000001c04ca000 CR4: 00000000001426f0
DR0: 0000000020000000 DR1: 0000000020001000 DR2: 0000000020000000
DR3: 0000000020000000 DR6: 00000000ffff0ff1 DR7: 00000000000b0602
Call Trace:
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:55 [inline]
 __copy_from_user include/linux/uaccess.h:75 [inline]
 __kvm_read_guest_page+0x81/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1711
 kvm_vcpu_read_guest_page+0x44/0x60 arch/x86/kvm/../../../virt/kvm/kvm_main.c:1731
 kvm_fetch_guest_virt+0x10e/0x180 arch/x86/kvm/x86.c:4506
 __do_insn_fetch_bytes+0x5e9/0x8a0 arch/x86/kvm/emulate.c:881
 x86_decode_insn+0x13d5/0x4990 arch/x86/kvm/emulate.c:5035
 x86_emulate_instruction+0x5e2/0x1ad0 arch/x86/kvm/x86.c:5732
 kvm_mmu_page_fault+0x1d3/0x2f0 arch/x86/kvm/mmu.c:4953
 handle_ept_violation+0x198/0x550 arch/x86/kvm/vmx.c:6544
 vmx_handle_exit+0x25d/0x1ce0 arch/x86/kvm/vmx.c:8893
 vcpu_enter_guest arch/x86/kvm/x86.c:7084 [inline]
 vcpu_run arch/x86/kvm/x86.c:7146 [inline]
 kvm_arch_vcpu_ioctl_run+0x1cb4/0x5c60 arch/x86/kvm/x86.c:7314
 kvm_vcpu_ioctl+0x64c/0x1010 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2555
 vfs_ioctl fs/ioctl.c:46 [inline]
 do_vfs_ioctl+0x1b1/0x1530 fs/ioctl.c:686
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
 entry_SYSCALL_64_fastpath+0x1f/0x96
RIP: 0033:0x4529d9
RSP: 002b:00007f30d2fc8c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000758020 RCX: 00000000004529d9
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 000000000000001a
RBP: 00000000000004ad R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f40d8
R13: 00000000ffffffff R14: 00007f30d2fc96d4 R15: 0000000000000000
Code: 41 56 41 55 41 54 41 89 d4 53 49 89 fd 49 89 f7 e8 f5 df 59 fc 45 85 e4 74 3d e8 eb df 59 fc 0f 1f 00 31 db 4d 8d 77 01 45 8a 3f <0f> 1f 00 85 db 75 2a e8 d3 df 59 fc 0f 1f 00 45 88 7d 00 0f 1f 
RIP: copy_user_handle_tail+0x31/0x80 arch/x86/lib/usercopy_64.c:69 RSP: ffff8801d1606f80
CR2: fffffffffffffff8
---[ end trace f9aaef8f7c83b9f1 ]---

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/12/06 02:05 linux-next 7ceb97a071e8 de212f1a .config console log report ci-upstream-next-kasan-gce
2017/12/04 13:04 linux-next 7cc61a0a562c 48359b97 .config console log report ci-upstream-next-kasan-gce
2017/12/04 09:01 mmots 4131d5166185 29b0fd90 .config console log report ci-upstream-mmots-kasan-gce
2017/11/29 18:11 linux-next d127129e85a0 29b0fd90 .config console log report ci-upstream-next-kasan-gce
2017/11/29 03:29 mmots a4f586bceda4 34f2c233 .config console log report ci-upstream-mmots-kasan-gce
2017/11/28 11:24 linux-next 5bef2980adef 1808de66 .config console log report ci-upstream-next-kasan-gce
2017/11/28 06:19 linux-next 5bef2980adef 1808de66 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.