syzbot


BUG: unable to handle kernel paging request in tpg_fill_plane_buffer (2)

Status: auto-closed as invalid on 2022/05/15 07:48
Reported-by: syzbot+153553a068a5fa6cda52@syzkaller.appspotmail.com
First crash: 1025d, last: 1025d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 BUG: unable to handle kernel paging request in tpg_fill_plane_buffer 4 1637d 1910d 0/1 auto-closed as invalid on 2020/09/11 05:35
linux-4.19 BUG: unable to handle kernel paging request in tpg_fill_plane_buffer (2) syz error 8 691d 1192d 0/1 upstream: reported syz repro on 2021/08/02 00:51
linux-4.14 BUG: unable to handle kernel paging request in tpg_fill_plane_buffer 1 1741d 1741d 0/1 auto-closed as invalid on 2020/05/29 08:05
upstream BUG: unable to handle kernel paging request in tpg_fill_plane_buffer (2) media 1 575d 571d 0/28 auto-obsoleted due to no activity on 2023/07/09 12:46
upstream KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer (2) media C inconclusive done 14 645d 1157d 22/28 fixed on 2023/02/24 13:51
upstream BUG: unable to handle kernel paging request in tpg_fill_plane_buffer media ntfs3 syz done 17 1801d 2170d 0/28 auto-obsoleted due to no activity on 2022/12/18 03:07
upstream KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer (3) media 18 1d21h 111d 0/28 upstream: reported on 2024/07/17 09:01
linux-5.15 KASAN: vmalloc-out-of-bounds Write in tpg_fill_plane_buffer 1 567d 567d 0/3 auto-obsoleted due to no activity on 2023/08/17 04:37

Sample crash report:
BUG: unable to handle kernel paging request at ffffc9000c16d000
IP: memcpy_erms+0x6/0x10 arch/x86/lib/memcpy_64.S:54
PGD b60bb067 P4D b60bb067 PUD 23f832067 PMD 99a1b067 PTE 0
Oops: 0002 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 16798 Comm: vivid-002-vid-c Not tainted 4.14.262-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88808d9385c0 task.stack: ffff888055ff0000
RIP: 0010:memcpy_erms+0x6/0x10 arch/x86/lib/memcpy_64.S:54
RSP: 0018:ffff888055ff7870 EFLAGS: 00010246
RAX: ffffc9000c16cea0 RBX: 0000000000000168 RCX: 0000000000000008
RDX: 0000000000000168 RSI: ffffc90002681160 RDI: ffffc9000c16d000
RBP: ffffc90002681000 R08: 0000000000000001 R09: fffff5200182da00
R10: ffffc9000c16d007 R11: 0000000000000000 R12: ffffc90002681000
R13: 0000000000000000 R14: ffff888237675648 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000c16d000 CR3: 000000008fbf8000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 memcpy include/linux/string.h:376 [inline]
 tpg_fill_plane_pattern drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2353 [inline]
 tpg_fill_plane_buffer+0xf81/0x2c00 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2441
 vivid_fillbuff+0x16cb/0x5ff0 drivers/media/platform/vivid/vivid-kthread-cap.c:485
 vivid_thread_vid_cap_tick drivers/media/platform/vivid/vivid-kthread-cap.c:719 [inline]
 vivid_thread_vid_cap+0x8b9/0x1ed0 drivers/media/platform/vivid/vivid-kthread-cap.c:821
 kthread+0x30d/0x420 kernel/kthread.c:232
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404
Code: 90 90 90 90 90 eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 <f3> a4 c3 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 
RIP: memcpy_erms+0x6/0x10 arch/x86/lib/memcpy_64.S:54 RSP: ffff888055ff7870
CR2: ffffc9000c16d000
---[ end trace c39231d2588ee158 ]---
----------------
Code disassembly (best guess):
   0:	90                   	nop
   1:	90                   	nop
   2:	90                   	nop
   3:	90                   	nop
   4:	90                   	nop
   5:	eb 1e                	jmp    0x25
   7:	0f 1f 00             	nopl   (%rax)
   a:	48 89 f8             	mov    %rdi,%rax
   d:	48 89 d1             	mov    %rdx,%rcx
  10:	48 c1 e9 03          	shr    $0x3,%rcx
  14:	83 e2 07             	and    $0x7,%edx
  17:	f3 48 a5             	rep movsq %ds:(%rsi),%es:(%rdi)
  1a:	89 d1                	mov    %edx,%ecx
  1c:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi)
  1e:	c3                   	retq
  1f:	66 0f 1f 44 00 00    	nopw   0x0(%rax,%rax,1)
  25:	48 89 f8             	mov    %rdi,%rax
  28:	48 89 d1             	mov    %rdx,%rcx
* 2b:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction
  2d:	c3                   	retq
  2e:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
  35:	48 89 f8             	mov    %rdi,%rax
  38:	48 83 fa 20          	cmp    $0x20,%rdx
  3c:	72 7e                	jb     0xbc
  3e:	40                   	rex
  3f:	38                   	.byte 0x38

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/15 07:48 linux-4.14.y 4ba8e26127c3 723cfaf0 .config console log report info ci2-linux-4-14 BUG: unable to handle kernel paging request in tpg_fill_plane_buffer
* Struck through repros no longer work on HEAD.