syzbot


general protection fault in drm_client_buffer_vunmap

Status: fixed on 2021/04/13 19:14
Subsystems: usb dri
[Documentation on labels]
Reported-by: syzbot+10328e8428a896b65119@syzkaller.appspotmail.com
Fix commit: 874a52f9b693 drm/fb-helper: only unmap if buffer not null
First crash: 1243d, last: 1138d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit c2edc1fe596e00e19a0e1a46dc56406ad2128ba7
Author: Lee Jones <lee.jones@linaro.org>
Date: Thu Nov 12 19:00:22 2020 +0000

  drm/atmel-hlcdc/atmel_hlcdc_crtc: Apply correct formatting to struct docs

Crash: BUG: sleeping function called from invalid context in sta_info_move_state (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 874a52f9b693ed8bf7a92b3592a547ce8a684e6f
Author: Tong Zhang <ztong0001@gmail.com>
Date: Sun Feb 28 04:46:25 2021 +0000

  drm/fb-helper: only unmap if buffer not null

  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in drm_client_buffer_vunmap 1 (3) 2021/04/11 18:10
Last patch testing requests (1)
Created Duration User Patch Repo Result
2021/03/10 13:54 10m igormtorrente@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master report log

Sample crash report:
[drm:udl_get_edid_block] *ERROR* Read EDID byte 0 failed err ffffffb9
udl 1-1:0.0: [drm] Cannot find any crtc or sizes
usb 1-1: USB disconnect, device number 2
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 0 PID: 3139 Comm: kworker/0:3 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: usb_hub_wq hub_event
RIP: 0010:drm_client_buffer_vunmap+0x26/0x50 drivers/gpu/drm/drm_client.c:347
Code: 00 00 66 90 53 48 89 fb 48 83 ec 08 e8 63 61 39 fd 48 8d 7b 10 48 b8 00 00 00 00 00 fc ff df 48 8d 73 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 0e 48 8b 7b 10 48 83 c4 08 5b e9 96 33 f7 ff 48 89
RSP: 0018:ffffc9000254f700 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: 0000000000000018 RDI: 0000000000000010
RBP: ffff8880265468c8 R08: 0000000000000000 R09: ffff888026546a17
R10: ffffed1004ca8d42 R11: 1ffffffff1ed68ce R12: 0000000000000000
R13: ffff8880265468d8 R14: ffff888026546810 R15: dead000000000100
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe8ec251d0 CR3: 0000000018d4d000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 drm_fbdev_cleanup+0x380/0x440 drivers/gpu/drm/drm_fb_helper.c:2052
 drm_fbdev_release drivers/gpu/drm/drm_fb_helper.c:2059 [inline]
 drm_fbdev_client_unregister+0x61/0x80 drivers/gpu/drm/drm_fb_helper.c:2386
 drm_client_dev_unregister+0x239/0x3b0 drivers/gpu/drm/drm_client.c:175
 drm_dev_unregister+0xe9/0x2b0 drivers/gpu/drm/drm_drv.c:936
 drm_dev_unplug+0x4e/0xc0 drivers/gpu/drm/drm_drv.c:471
 usb_unbind_interface+0x1d8/0x8d0 drivers/usb/core/driver.c:458
 __device_release_driver+0x3bd/0x6f0 drivers/base/dd.c:1156
 device_release_driver_internal drivers/base/dd.c:1187 [inline]
 device_release_driver+0x26/0x40 drivers/base/dd.c:1210
 bus_remove_device+0x2eb/0x5a0 drivers/base/bus.c:533
 device_del+0x502/0xd40 drivers/base/core.c:3294
 usb_disable_device+0x35b/0x7b0 drivers/usb/core/message.c:1413
 usb_disconnect.cold+0x27d/0x791 drivers/usb/core/hub.c:2218
 hub_port_connect drivers/usb/core/hub.c:5074 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5363 [inline]
 port_event drivers/usb/core/hub.c:5509 [inline]
 hub_event+0x1c9c/0x4320 drivers/usb/core/hub.c:5591
 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275
 process_scheduled_works kernel/workqueue.c:2337 [inline]
 worker_thread+0x82b/0x1120 kernel/workqueue.c:2423
 kthread+0x3b1/0x4a0 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
Modules linked in:
---[ end trace a4392ef48d76f4aa ]---
RIP: 0010:drm_client_buffer_vunmap+0x26/0x50 drivers/gpu/drm/drm_client.c:347
Code: 00 00 66 90 53 48 89 fb 48 83 ec 08 e8 63 61 39 fd 48 8d 7b 10 48 b8 00 00 00 00 00 fc ff df 48 8d 73 18 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 0e 48 8b 7b 10 48 83 c4 08 5b e9 96 33 f7 ff 48 89
RSP: 0018:ffffc9000254f700 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000002 RSI: 0000000000000018 RDI: 0000000000000010
RBP: ffff8880265468c8 R08: 0000000000000000 R09: ffff888026546a17
R10: ffffed1004ca8d42 R11: 1ffffffff1ed68ce R12: 0000000000000000
R13: ffff8880265468d8 R14: ffff888026546810 R15: dead000000000100
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe8ec251d0 CR3: 0000000018d4d000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (247):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/24 20:59 upstream c03c21ba6f4e fcc6d71b .config console log report syz C ci-upstream-kasan-gce general protection fault in drm_client_buffer_vunmap
2021/01/27 19:09 upstream 2ab38c17aac1 a0ebf917 .config console log report syz C ci-upstream-kasan-gce general protection fault in drm_client_buffer_vunmap
2021/01/27 00:31 upstream 13391c60da33 55a7d4df .config console log report syz C ci-upstream-kasan-gce general protection fault in drm_client_buffer_vunmap
2021/01/05 06:44 upstream 36bbbd0e234d 2a28ff1f .config console log report syz C ci-upstream-kasan-gce
2021/01/05 19:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing ed054e4e95d6 a0234d98 .config console log report syz C ci2-upstream-usb
2020/11/26 18:42 linux-next 6147c83fd749 1d2b823e .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2021/02/17 01:31 upstream f40ddce88593 98682e5e .config console log report info ci-upstream-kasan-gce-root general protection fault in drm_client_buffer_vunmap
2021/02/15 11:04 upstream f40ddce88593 98682e5e .config console log report info ci-upstream-kasan-gce general protection fault in drm_client_buffer_vunmap
2021/01/29 16:04 upstream bec4c2968fce 6593fd32 .config console log report info ci-upstream-kasan-gce-386 general protection fault in drm_client_buffer_vunmap
2021/03/12 00:58 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 60a35ba9141f 429d8a6b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/11 03:33 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 60a35ba9141f 764067f3 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/10 20:50 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 60a35ba9141f 764067f3 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/08 06:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc 09fbf400 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/06 20:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc e4b4d570 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/05 15:25 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc 9d751681 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/05 06:13 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc 9d751681 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/04 21:49 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc f89ed068 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/04 13:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc d7e4e604 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/04 01:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc 06ed56cd .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/03 13:01 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5e17812c22bc e5b64d68 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/03 09:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bb9cdb320a5 e5b64d68 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/02 23:30 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5bb9cdb320a5 e5b64d68 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/01 13:53 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing fe07bfda2fb9 4c37c133 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/03/01 04:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 5695e5161974 4c37c133 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/28 07:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3fb6d0e00efc 4c37c133 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/27 20:52 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3fb6d0e00efc 4c37c133 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/27 15:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3fb6d0e00efc 4c37c133 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/26 13:48 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 2c87f7a38f93 4c37c133 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/26 10:23 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 2c87f7a38f93 4c37c133 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/26 03:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 29c395c77a9a 76f7fc95 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/25 11:58 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 29c395c77a9a fcc6d71b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/25 09:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 29c395c77a9a fcc6d71b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/25 04:29 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b9cdafb5358 fcc6d71b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/24 08:01 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b9cdafb5358 fcc6d71b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/24 02:41 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b9cdafb5358 fcc6d71b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/24 01:23 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b9cdafb5358 fcc6d71b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/23 15:18 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 3b9cdafb5358 fcc6d71b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/22 20:11 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31caf8b2a847 c26fb06b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/22 14:05 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 31caf8b2a847 c26fb06b .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/22 06:07 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 55f62bc87347 a659b3f1 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/21 13:01 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 55f62bc87347 3e5ed8b4 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/21 03:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 3e5ed8b4 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/20 00:02 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 f689d40a .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/19 22:31 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 f689d40a .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/18 02:31 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 14052202 .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/16 22:45 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/16 07:13 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/15 19:37 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/15 13:14 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/14 09:18 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/14 08:35 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/14 06:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/13 17:59 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/13 14:01 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/02/13 04:18 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing b5a12546e779 98682e5e .config console log report info ci2-upstream-usb general protection fault in drm_client_buffer_vunmap
2021/01/11 08:26 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing 841081d89d5a 2c1f2513 .config console log report info ci2-upstream-usb
2021/01/03 19:56 linux-next d7a03a44a5e9 79264ae3 .config console log report info ci-upstream-linux-next-kasan-gce-root
2020/11/26 16:05 linux-next 6147c83fd749 1d2b823e .config console log report info ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.