syzbot


general protection fault in vgem_fence_attach_ioctl

Status: upstream: reported C repro on 2020/08/30 20:35
Reported-by: syzbot+072b2b7eb682bc673fa8@syzkaller.appspotmail.com
First crash: 1324d, last: 723d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in vgem_fence_attach_ioctl syz error 7 535d 1259d 0/1 upstream: reported syz repro on 2020/11/03 17:27
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2021/10/21 13:52 13m bisect fix linux-4.19.y error job log (0)
2021/09/21 12:35 43m bisect fix linux-4.19.y job log (0) log
2021/08/22 04:42 42m bisect fix linux-4.19.y job log (0) log
2021/05/24 12:51 28m bisect fix linux-4.19.y job log (0) log
2021/04/03 02:26 28m bisect fix linux-4.19.y job log (0) log
2021/02/25 02:46 26m bisect fix linux-4.19.y job log (0) log
2021/02/16 12:37 0m bisect fix linux-4.19.y error job log (0)
2021/01/17 12:05 31m bisect fix linux-4.19.y job log (0) log

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8153 Comm: syz-executor925 Not tainted 4.19.194-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:vgem_fence_attach_ioctl+0x27d/0x640 drivers/gpu/drm/vgem/vgem_fence.c:184
Code: 03 80 3c 02 00 0f 85 9b 03 00 00 4c 8b b5 10 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d be e0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 7f 03 00 00 4c 89 ea 4d 8b b6 e0 00 00 00 48 b8
RSP: 0018:ffff88809cb47af0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88809ce32000 RCX: 1ffff11013968f4b
RDX: 000000000000001c RSI: ffffffff8153be2f RDI: 00000000000000e0
RBP: ffff8880ab9bd500 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a4f73140
R13: ffff88809ce32004 R14: 0000000000000000 R15: ffff8880a4f731d8
FS:  00007f013649e700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe205369c0 CR3: 00000000981b7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 drm_ioctl_kernel+0x208/0x2a0 drivers/gpu/drm/drm_ioctl.c:757
 drm_ioctl+0x507/0x9c0 drivers/gpu/drm/drm_ioctl.c:857
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x449f49
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f013649e308 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004ca428 RCX: 0000000000449f49
RDX: 0000000020000140 RSI: 00000000c10c5541 RDI: 0000000000000004
RBP: 00000000004ca420 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004ca42c
R13: 000000000049a074 R14: 6972642f7665642f R15: 0000000000022000
Modules linked in:
---[ end trace dc17a1d7cfa2085f ]---
RIP: 0010:vgem_fence_attach_ioctl+0x27d/0x640 drivers/gpu/drm/vgem/vgem_fence.c:184
Code: 03 80 3c 02 00 0f 85 9b 03 00 00 4c 8b b5 10 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d be e0 00 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 7f 03 00 00 4c 89 ea 4d 8b b6 e0 00 00 00 48 b8
RSP: 0018:ffff88809cb47af0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88809ce32000 RCX: 1ffff11013968f4b
RDX: 000000000000001c RSI: ffffffff8153be2f RDI: 00000000000000e0
RBP: ffff8880ab9bd500 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a4f73140
R13: ffff88809ce32004 R14: 0000000000000000 R15: ffff8880a4f731d8
FS:  00007f013649e700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe205369c0 CR3: 00000000981b7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/11 16:49 linux-4.19.y 9a2dc0e6c531 1ba81399 .config console log report syz C ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/04/10 22:13 linux-4.19.y 830a059cbba6 6a81331a .config console log report syz ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/04/03 16:36 linux-4.19.y 2034d6f0838e 6a81331a .config console log report syz ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/03/04 02:26 linux-4.19.y 2d19be4653f5 06ed56cd .config console log report syz ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2020/08/31 11:48 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config console log report syz ci2-linux-4-19
2022/04/23 11:37 linux-4.19.y 3f8a27f9e27b 131df97d .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/07/23 04:20 linux-4.19.y 4938296e03bd bc5f1d88 .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/07/19 09:44 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/07/09 18:19 linux-4.19.y 9f84340f012e 281e815f .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/07/08 20:08 linux-4.19.y 9f84340f012e 1b20171a .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/07/06 22:23 linux-4.19.y 9f84340f012e cca78469 .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/04/24 12:42 linux-4.19.y 2965db2e004c 17f0b706 .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/04/21 21:11 linux-4.19.y 2965db2e004c 2bc8999a .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2021/03/04 02:07 linux-4.19.y 2d19be4653f5 06ed56cd .config console log report info ci2-linux-4-19 general protection fault in vgem_fence_attach_ioctl
2020/12/18 12:05 linux-4.19.y 13d2ce42de8c 04201c06 .config console log report info ci2-linux-4-19
2020/11/28 11:13 linux-4.19.y 0c88e405c97e 486f93ef .config console log report info ci2-linux-4-19
2020/11/24 09:25 linux-4.19.y 76bda503e640 1ab681a4 .config console log report info ci2-linux-4-19
2020/11/22 10:27 linux-4.19.y 76bda503e640 0d27f508 .config console log report info ci2-linux-4-19
2020/11/17 23:00 linux-4.19.y 31acccdc8774 09323409 .config console log report info ci2-linux-4-19
2020/11/04 10:27 linux-4.19.y f5d8eef067ac cba33199 .config console log report info ci2-linux-4-19
2020/10/23 20:08 linux-4.19.y ad326970d25c 2bb6666c .config console log report info ci2-linux-4-19
2020/10/07 08:37 linux-4.19.y a1b977b49b66 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/05 15:05 linux-4.19.y b09c34517e1a 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/02 13:10 linux-4.19.y b09c34517e1a 062c9832 .config console log report info ci2-linux-4-19
2020/09/29 00:34 linux-4.19.y 10ad6cfd5736 1b88c6d5 .config console log report info ci2-linux-4-19
2020/09/24 12:08 linux-4.19.y d09b80172c22 54289b08 .config console log report info ci2-linux-4-19
2020/09/04 05:50 linux-4.19.y c37da90efff5 abf9ba4f .config console log report ci2-linux-4-19
2020/08/30 20:34 linux-4.19.y f6d5cb9e2c06 d5a3ae1f .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.