syzbot


WARNING in drm_gem_shmem_vm_open
Status: fixed on 2022/05/13 11:13
Reported-by: syzbot+91525b2bd4b5dff71619@syzkaller.appspotmail.com
Fix commit: 0499f419b76f video: vga16fb: Only probe for EGA and VGA 16 color graphic cards
First crash: 280d, last: 145d

Cause bisection: introduced by (bisect log) :
commit ea40d7857d5250e5400f38c69ef9e17321e9c4a2
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date: Fri Oct 9 23:21:56 2020 +0000

  drm/vkms: fbdev emulation support

Crash: WARNING in drm_gem_shmem_vm_open (log)
Repro: syz .config

Fix bisection: fixed by (bisect log) :
commit 0499f419b76f94ede08304aad5851144813ac55c
Author: Javier Martinez Canillas <javierm@redhat.com>
Date: Mon Jan 10 09:56:25 2022 +0000

  video: vga16fb: Only probe for EGA and VGA 16 color graphic cards


Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 25659 at drivers/gpu/drm/drm_gem_shmem_helper.c:562 drm_gem_shmem_vm_open+0x96/0xb0 drivers/gpu/drm/drm_gem_shmem_helper.c:562
Modules linked in:
CPU: 0 PID: 25659 Comm: syz-executor.1 Not tainted 5.15.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:drm_gem_shmem_vm_open+0x96/0xb0 drivers/gpu/drm/drm_gem_shmem_helper.c:562
Code: 89 c6 e8 cd ab 20 fd 85 db 75 1a e8 84 a4 20 fd 48 89 ef 5b 5d 41 5c e9 c8 66 f5 ff e8 73 a4 20 fd 0f 0b eb ca e8 6a a4 20 fd <0f> 0b eb dd e8 c1 f9 67 fd eb 89 e8 ba f9 67 fd eb a8 0f 1f 84 00
RSP: 0018:ffffc900065efb98 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000fffffffc RCX: 0000000000000000
RDX: ffff88801972b900 RSI: ffffffff84555a16 RDI: 0000000000000003
RBP: ffff8880600c6a50 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff845559f3 R11: 0000000000000001 R12: ffff888019463800
R13: ffff8880600c6d68 R14: 0000000020166000 R15: ffff8880600c6ae0
FS:  00007f61595a4700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6463b04058 CR3: 000000007e1cc000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __split_vma+0x23c/0x550 mm/mmap.c:2737
 __do_munmap+0x32a/0x11c0 mm/mmap.c:2841
 do_munmap mm/mmap.c:2895 [inline]
 munmap_vma_range mm/mmap.c:603 [inline]
 mmap_region+0x2fd/0x1650 mm/mmap.c:1742
 do_mmap+0x869/0xfb0 mm/mmap.c:1575
 vm_mmap_pgoff+0x1b7/0x290 mm/util.c:519
 ksys_mmap_pgoff+0x49f/0x620 mm/mmap.c:1624
 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:0x7f6159e2d8d9
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:00007f61595a4188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f6159f31f60 RCX: 00007f6159e2d8d9
RDX: 0000000000000000 RSI: 0000000000002000 RDI: 0000000020166000
RBP: 00007f6159e87cb4 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000000000013 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f615a465b2f R14: 00007f61595a4300 R15: 0000000000022000

Crashes (38):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce 2021/10/09 22:44 upstream 5d6ab0bb408f 838e7e2c .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/03 02:26 upstream ab2a7a35c4e7 db0f5787 .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/09/19 10:04 upstream 93ff9f13be91 70b76c1d .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/09/18 18:36 upstream 4357f03d6611 70b76c1d .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/09/18 08:08 upstream ddf21bd8ab98 70b76c1d .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/09/05 13:27 upstream 49624efa65ac d236a457 .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/08/31 10:25 upstream 7d2a07b76933 8f58a0ef .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/08/19 02:57 upstream 614cb2751d31 a2fe1cb5 .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/08/19 01:59 upstream 614cb2751d31 a2fe1cb5 .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-linux-next-kasan-gce-root 2021/09/11 18:33 linux-next aa14a3016182 5ae8508a .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-linux-next-kasan-gce-root 2021/09/04 05:49 linux-next c1b13fe76e95 d236a457 .config log report syz WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/11/01 19:37 upstream 8bb7eca972ad 098b5d53 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/31 04:21 upstream 119c85055d86 098b5d53 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/26 08:48 upstream c2b43854aad9 c1132b49 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-selinux-root 2021/10/25 08:02 upstream 87066fdd2e30 4f0000ee .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-selinux-root 2021/10/20 03:13 upstream d9abdee5fd5a 466b7db1 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-selinux-root 2021/10/17 14:19 upstream d999ade1cc86 0c5d9412 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/17 00:29 upstream 304040fb4909 0c5d9412 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/10 21:16 upstream efb52a7d9511 838e7e2c .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/09 16:06 upstream 5d6ab0bb408f 838e7e2c .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-smack-root 2021/10/09 02:53 upstream 741668ef7832 efe0f24d .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/08 14:03 upstream 1da38549dd64 efe0f24d .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/10/06 15:50 upstream 60a9483534ed 0a63fd36 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/09/26 03:13 upstream a5e0aceabef6 8cac236e .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/09/25 18:54 upstream 7d42e9818258 8cac236e .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/09/19 09:46 upstream 93ff9f13be91 70b76c1d .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/09/18 17:08 upstream 4357f03d6611 70b76c1d .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/09/17 00:05 upstream ff1ffd71d5f0 aae492f2 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/09/16 16:49 upstream ff1ffd71d5f0 aae492f2 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce 2021/09/16 04:58 upstream b7213ffa0e58 07e953c1 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/09/05 13:01 upstream 49624efa65ac d236a457 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/08/31 08:06 upstream 7d2a07b76933 8f58a0ef .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/08/19 00:37 upstream 614cb2751d31 a2fe1cb5 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-root 2021/08/19 00:37 upstream 614cb2751d31 a2fe1cb5 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-386 2021/10/09 02:01 upstream 5d6ab0bb408f efe0f24d .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-kasan-gce-386 2021/09/27 18:19 upstream 5816b3e6577e 78494d16 .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-linux-next-kasan-gce-root 2021/09/11 17:15 linux-next aa14a3016182 5ae8508a .config log report info WARNING in drm_gem_shmem_vm_open
ci-upstream-linux-next-kasan-gce-root 2021/09/04 03:48 linux-next c1b13fe76e95 d236a457 .config log report info WARNING in drm_gem_shmem_vm_open