syzbot


BUG: unable to handle kernel paging request in drm_fb_helper_damage_work (3)

Status: auto-obsoleted due to no activity on 2022/09/25 13:12
Reported-by: syzbot+38cf2d663fcac29c9e0b@syzkaller.appspotmail.com
First crash: 325d, last: 128d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in drm_fb_helper_damage_work (2) 1 494d 490d 0/24 auto-closed as invalid on 2021/09/24 01:26
upstream BUG: unable to handle kernel paging request in drm_fb_helper_damage_work 3 593d 600d 0/24 auto-closed as invalid on 2021/05/18 08:43

Sample crash report:
BUG: unable to handle page fault for address: ffffc900067db000
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 10c00067 P4D 10c00067 PUD 10dc4067 PMD 19c90067 PTE 0
Oops: 0002 [#1] PREEMPT SMP KASAN
CPU: 2 PID: 5017 Comm: kworker/2:9 Not tainted 5.18.0-syzkaller-10643-g9d004b2f4fea #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
Workqueue: events drm_fb_helper_damage_work
RIP: 0010:rep_movs arch/x86/lib/iomem.c:12 [inline]
RIP: 0010:string_memcpy_toio arch/x86/lib/iomem.c:56 [inline]
RIP: 0010:memcpy_toio+0x83/0xe0 arch/x86/lib/iomem.c:102
Code: 5b fd 49 89 dd 31 ff 41 83 e5 02 4c 89 ee e8 54 0f 5b fd 4d 85 ed 75 2e e8 ea 12 5b fd 48 89 e9 48 89 df 4c 89 e6 48 c1 e9 02 <f3> a5 40 f6 c5 02 74 02 66 a5 40 f6 c5 01 74 01 a4 5b 5d 41 5c 41
RSP: 0018:ffffc90028d9fbc0 EFLAGS: 00010206
RAX: 0000000000000000 RBX: ffffc900067db000 RCX: 0000000000000400
RDX: ffff888019cb9d80 RSI: ffffc90004514000 RDI: ffffc900067db000
RBP: 0000000000001000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90004514000
R13: 0000000000000000 R14: ffffc90004514000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff88802cc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc900067db000 CR3: 000000006f26e000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 iosys_map_memcpy_to include/linux/iosys-map.h:276 [inline]
 drm_fb_helper_damage_blit_real drivers/gpu/drm/drm_fb_helper.c:388 [inline]
 drm_fb_helper_damage_blit drivers/gpu/drm/drm_fb_helper.c:419 [inline]
 drm_fb_helper_damage_work+0x733/0xac0 drivers/gpu/drm/drm_fb_helper.c:450
 process_one_work+0x996/0x1610 kernel/workqueue.c:2289
 worker_thread+0x665/0x1080 kernel/workqueue.c:2436
 kthread+0x2e9/0x3a0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302
 </TASK>
Modules linked in:
CR2: ffffc900067db000
---[ end trace 0000000000000000 ]---
RIP: 0010:rep_movs arch/x86/lib/iomem.c:12 [inline]
RIP: 0010:string_memcpy_toio arch/x86/lib/iomem.c:56 [inline]
RIP: 0010:memcpy_toio+0x83/0xe0 arch/x86/lib/iomem.c:102
Code: 5b fd 49 89 dd 31 ff 41 83 e5 02 4c 89 ee e8 54 0f 5b fd 4d 85 ed 75 2e e8 ea 12 5b fd 48 89 e9 48 89 df 4c 89 e6 48 c1 e9 02 <f3> a5 40 f6 c5 02 74 02 66 a5 40 f6 c5 01 74 01 a4 5b 5d 41 5c 41
RSP: 0018:ffffc90028d9fbc0 EFLAGS: 00010206
RAX: 0000000000000000 RBX: ffffc900067db000 RCX: 0000000000000400
RDX: ffff888019cb9d80 RSI: ffffc90004514000 RDI: ffffc900067db000
RBP: 0000000000001000 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000001 R12: ffffc90004514000
R13: 0000000000000000 R14: ffffc90004514000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff88802cc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc900067db000 CR3: 000000006f26e000 CR4: 0000000000150ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	5b                   	pop    %rbx
   1:	fd                   	std
   2:	49 89 dd             	mov    %rbx,%r13
   5:	31 ff                	xor    %edi,%edi
   7:	41 83 e5 02          	and    $0x2,%r13d
   b:	4c 89 ee             	mov    %r13,%rsi
   e:	e8 54 0f 5b fd       	callq  0xfd5b0f67
  13:	4d 85 ed             	test   %r13,%r13
  16:	75 2e                	jne    0x46
  18:	e8 ea 12 5b fd       	callq  0xfd5b1307
  1d:	48 89 e9             	mov    %rbp,%rcx
  20:	48 89 df             	mov    %rbx,%rdi
  23:	4c 89 e6             	mov    %r12,%rsi
  26:	48 c1 e9 02          	shr    $0x2,%rcx
* 2a:	f3 a5                	rep movsl %ds:(%rsi),%es:(%rdi) <-- trapping instruction
  2c:	40 f6 c5 02          	test   $0x2,%bpl
  30:	74 02                	je     0x34
  32:	66 a5                	movsw  %ds:(%rsi),%es:(%rdi)
  34:	40 f6 c5 01          	test   $0x1,%bpl
  38:	74 01                	je     0x3b
  3a:	a4                   	movsb  %ds:(%rsi),%es:(%rdi)
  3b:	5b                   	pop    %rbx
  3c:	5d                   	pop    %rbp
  3d:	41 5c                	pop    %r12
  3f:	41                   	rex.B

Crashes (9):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-qemu-upstream-386 2022/05/28 13:11 upstream 9d004b2f4fea a46af346 .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream-386 2022/02/26 11:24 upstream 9137eda53752 45a13a73 .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream-386 2022/02/08 16:06 upstream 555f3d7be91a 0b33604d .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream-386 2022/01/20 14:08 upstream fa2e1ba3e9e3 5da9499f .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream-386 2021/12/17 03:33 upstream fa36bbe6d43f 44068e19 .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream-386 2021/12/08 02:00 upstream 2a987e65025e 0230ba3e .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream-386 2021/11/28 14:37 upstream 3498e7f2bb41 63eeac02 .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream-386 2021/11/12 02:23 upstream 5833291ab6de 75b04091 .config log report info BUG: unable to handle kernel paging request in drm_fb_helper_damage_work
ci-qemu-upstream 2022/01/15 05:11 upstream 112450df61b7 723cfaf0 .config log report info KASAN: vmalloc-out-of-bounds Read in drm_fb_helper_damage_work
* Struck through repros no longer work on HEAD.