syzbot


general protection fault in virtio_gpu_poll

Status: auto-closed as invalid on 2022/03/11 03:19
Subsystems: dri virt
[Documentation on labels]
Reported-by: syzbot+4af2eec0d32a135ba67e@syzkaller.appspotmail.com
First crash: 904d, last: 897d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] general protection fault in virtio_gpu_poll 0 (1) 2021/11/07 22:13

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 12167 Comm: syz-executor.3 Not tainted 5.15.0-syzkaller #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:virtio_gpu_poll+0x7c/0x440 drivers/gpu/drm/virtio/virtgpu_drv.c:169
Code: 48 c1 ea 03 80 3c 02 00 0f 85 2b 03 00 00 4c 8b ab b0 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7d 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 19 03 00 00 4d 8b 6d 18 31 ff 4c 89 ee e8 9c e6
RSP: 0018:ffffc9000d3df920 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880162d8000 RCX: ffffc90025fd7000
RDX: 0000000000000003 RSI: ffffffff84631895 RDI: 0000000000000018
RBP: ffff888023d1d080 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81cdc0dd R11: 0000000000000000 R12: ffffc9000d3dfb68
R13: 0000000000000000 R14: ffff888023d1d080 R15: dffffc0000000000
FS:  00007f793c14b700(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c322000 CR3: 0000000075efb000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vfs_poll include/linux/poll.h:90 [inline]
 do_pollfd fs/select.c:869 [inline]
 do_poll fs/select.c:917 [inline]
 do_sys_poll+0x60a/0xeb0 fs/select.c:1011
 __do_sys_poll fs/select.c:1076 [inline]
 __se_sys_poll fs/select.c:1064 [inline]
 __x64_sys_poll+0x18c/0x480 fs/select.c:1064
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f793ebd5ae9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f793c14b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000007
RAX: ffffffffffffffda RBX: 00007f793ece8f60 RCX: 00007f793ebd5ae9
RDX: 0000000000000008 RSI: 0000000000000001 RDI: 0000000020000440
RBP: 00007f793ec2ff6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff2169901f R14: 00007f793c14b300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 37727ab5da1f42ef ]---
RIP: 0010:virtio_gpu_poll+0x7c/0x440 drivers/gpu/drm/virtio/virtgpu_drv.c:169
Code: 48 c1 ea 03 80 3c 02 00 0f 85 2b 03 00 00 4c 8b ab b0 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d 7d 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 19 03 00 00 4d 8b 6d 18 31 ff 4c 89 ee e8 9c e6
RSP: 0018:ffffc9000d3df920 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff8880162d8000 RCX: ffffc90025fd7000
RDX: 0000000000000003 RSI: ffffffff84631895 RDI: 0000000000000018
RBP: ffff888023d1d080 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff81cdc0dd R11: 0000000000000000 R12: ffffc9000d3dfb68
R13: 0000000000000000 R14: ffff888023d1d080 R15: dffffc0000000000
FS:  00007f793c14b700(0000) GS:ffff88802cb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2c322000 CR3: 0000000075efb000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	48 c1 ea 03          	shr    $0x3,%rdx
   4:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   8:	0f 85 2b 03 00 00    	jne    0x339
   e:	4c 8b ab b0 01 00 00 	mov    0x1b0(%rbx),%r13
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	49 8d 7d 18          	lea    0x18(%r13),%rdi
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 19 03 00 00    	jne    0x34d
  34:	4d 8b 6d 18          	mov    0x18(%r13),%r13
  38:	31 ff                	xor    %edi,%edi
  3a:	4c 89 ee             	mov    %r13,%rsi
  3d:	e8                   	.byte 0xe8
  3e:	9c                   	pushfq
  3f:	e6                   	.byte 0xe6

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/11 03:18 upstream 89d714ab6043 75b04091 .config console log report info ci-qemu-upstream general protection fault in virtio_gpu_poll
2021/11/10 06:03 upstream cb690f5238d7 55fa030c .config console log report info ci-qemu-upstream general protection fault in virtio_gpu_poll
2021/11/06 00:14 upstream fe91c4725aee 4c1be0be .config console log report info ci-qemu-upstream general protection fault in virtio_gpu_poll
2021/11/04 21:31 upstream 7ddb58cb0eca 4c1be0be .config console log report info ci-qemu-upstream general protection fault in virtio_gpu_poll
2021/11/04 14:32 upstream ce840177930f 4c1be0be .config console log report info ci-qemu-upstream general protection fault in virtio_gpu_poll
2021/11/03 23:16 upstream dcd68326d29b 4c1be0be .config console log report info ci-qemu-upstream general protection fault in virtio_gpu_poll
2021/11/03 22:04 upstream dcd68326d29b 4c1be0be .config console log report info ci-qemu-upstream general protection fault in virtio_gpu_poll
* Struck through repros no longer work on HEAD.