syzbot


BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff

Status: fixed on 2023/02/24 13:50
Subsystems: kvm
[Documentation on labels]
Reported-by: syzbot+8cdd16fd5a6c0565e227@syzkaller.appspotmail.com
Fix commit: 1cfaac2400c7 x86/kasan: Populate shadow for shared chunk of the CPU entry area
First crash: 541d, last: 519d
Cause bisection: failed (error log, bisect log)
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2 0/5] x86/kasan: Bug fixes for recent CEA changes 25 (25) 2022/12/17 18:55
[PATCH 0/3] x86/kasan: Populate shadow for read-only IDT mapping 8 (8) 2022/11/09 18:14
[syzbot] BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff 1 (3) 2022/11/03 18:42

Sample crash report:
BUG: unable to handle page fault for address: fffffbc0000001d8
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffe4067 P4D 23ffe4067 PUD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5719 Comm: syz-executor121 Not tainted 6.1.0-rc5-next-20221116-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:gate_offset arch/x86/include/asm/desc_defs.h:100 [inline]
RIP: 0010:handle_external_interrupt_irqoff arch/x86/kvm/vmx/vmx.c:6822 [inline]
RIP: 0010:vmx_handle_exit_irqoff arch/x86/kvm/vmx/vmx.c:6834 [inline]
RIP: 0010:vmx_handle_exit_irqoff+0x338/0x750 arch/x86/kvm/vmx/vmx.c:6826
Code: 00 01 be 01 03 00 00 48 89 ef e8 63 73 e8 ff e9 96 fd ff ff e8 f9 b1 5f 00 48 89 e8 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 <0f> b6 0c 10 48 8d 45 01 48 89 c6 48 c1 ee 03 0f b6 14 16 48 89 ee
RSP: 0018:ffffc9000535fb08 EFLAGS: 00010806
RAX: 1fffffc0000001d8 RBX: ffff88807bb98000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff8120f2e7 RDI: 0000000000000005
RBP: fffffe0000000ec0 R08: 0000000000000005 R09: 0000000080000000
R10: 0000000080000000 R11: 0000000000000000 R12: 00000000800000ec
R13: 0000000080000000 R14: ffff88807bb98038 R15: 0001000000000000
FS:  0000555556e25300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbc0000001d8 CR3: 000000002b673000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vcpu_enter_guest+0x3539/0x6100 arch/x86/kvm/x86.c:10810
 vcpu_run arch/x86/kvm/x86.c:10959 [inline]
 kvm_arch_vcpu_ioctl_run+0xa84/0x2b90 arch/x86/kvm/x86.c:11180
 kvm_vcpu_ioctl+0x574/0xfc0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4076
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f48b161ada9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 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:00007ffffcf47468 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000011d6d RCX: 00007f48b161ada9
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 0000000000000000 R08: 00007ffffcf47608 R09: 00007ffffcf47608
R10: 00007ffffcf47608 R11: 0000000000000246 R12: 00007ffffcf4747c
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
CR2: fffffbc0000001d8
---[ end trace 0000000000000000 ]---
RIP: 0010:gate_offset arch/x86/include/asm/desc_defs.h:100 [inline]
RIP: 0010:handle_external_interrupt_irqoff arch/x86/kvm/vmx/vmx.c:6822 [inline]
RIP: 0010:vmx_handle_exit_irqoff arch/x86/kvm/vmx/vmx.c:6834 [inline]
RIP: 0010:vmx_handle_exit_irqoff+0x338/0x750 arch/x86/kvm/vmx/vmx.c:6826
Code: 00 01 be 01 03 00 00 48 89 ef e8 63 73 e8 ff e9 96 fd ff ff e8 f9 b1 5f 00 48 89 e8 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 <0f> b6 0c 10 48 8d 45 01 48 89 c6 48 c1 ee 03 0f b6 14 16 48 89 ee
RSP: 0018:ffffc9000535fb08 EFLAGS: 00010806
RAX: 1fffffc0000001d8 RBX: ffff88807bb98000 RCX: 0000000000000000
RDX: dffffc0000000000 RSI: ffffffff8120f2e7 RDI: 0000000000000005
RBP: fffffe0000000ec0 R08: 0000000000000005 R09: 0000000080000000
R10: 0000000080000000 R11: 0000000000000000 R12: 00000000800000ec
R13: 0000000080000000 R14: ffff88807bb98038 R15: 0001000000000000
FS:  0000555556e25300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbc0000001d8 CR3: 000000002b673000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 01                	add    %al,(%rcx)
   2:	be 01 03 00 00       	mov    $0x301,%esi
   7:	48 89 ef             	mov    %rbp,%rdi
   a:	e8 63 73 e8 ff       	callq  0xffe87372
   f:	e9 96 fd ff ff       	jmpq   0xfffffdaa
  14:	e8 f9 b1 5f 00       	callq  0x5fb212
  19:	48 89 e8             	mov    %rbp,%rax
  1c:	48 ba 00 00 00 00 00 	movabs $0xdffffc0000000000,%rdx
  23:	fc ff df
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	0f b6 0c 10          	movzbl (%rax,%rdx,1),%ecx <-- trapping instruction
  2e:	48 8d 45 01          	lea    0x1(%rbp),%rax
  32:	48 89 c6             	mov    %rax,%rsi
  35:	48 c1 ee 03          	shr    $0x3,%rsi
  39:	0f b6 14 16          	movzbl (%rsi,%rdx,1),%edx
  3d:	48 89 ee             	mov    %rbp,%rsi

Crashes (7736):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/19 15:59 linux-next 15f3bff12cf6 5bb70014 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/03 02:58 linux-next 61c3426aca2c 08977f5d .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 12:42 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 12:25 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 11:49 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 11:39 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 10:27 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 09:22 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 08:21 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 07:20 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 07:09 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 06:03 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 04:42 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 04:07 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 03:40 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 03:21 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 02:57 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 02:06 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 01:39 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 01:29 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/24 00:28 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 23:01 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 21:57 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 21:34 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 20:22 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 19:05 linux-next 15f3bff12cf6 12c66417 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 18:03 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 17:39 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 17:14 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 16:24 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 15:55 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 15:31 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 15:09 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 14:24 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 13:39 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 12:24 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 11:11 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 10:20 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 09:17 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 08:00 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 06:50 linux-next 15f3bff12cf6 75740b3f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 05:23 linux-next 15f3bff12cf6 9da37ae8 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 05:01 linux-next 15f3bff12cf6 9da37ae8 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/23 04:32 linux-next 15f3bff12cf6 9da37ae8 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/02 16:04 linux-next 61c3426aca2c 08977f5d .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
2022/11/02 13:40 linux-next 61c3426aca2c edac4fd1 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel paging request in vmx_handle_exit_irqoff
* Struck through repros no longer work on HEAD.