Linux-Media Archive on
 help / color / Atom feed
* KASAN: global-out-of-bounds Read in precalculate_color
@ 2019-11-28 23:55 syzbot
  0 siblings, 0 replies; only message in thread
From: syzbot @ 2019-11-28 23:55 UTC (permalink / raw)
  To: hverkuil-cisco, linux-kernel, linux-media, mchehab,
	syzkaller-bugs, vivek.kasireddy


syzbot found the following crash on:

HEAD commit:    d7688697 Merge tag 'for-linus' of git://
git tree:       upstream
console output:
kernel config:
dashboard link:
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:

IMPORTANT: if you fix the bug, please add the following tag to the commit:

BUG: KASAN: global-out-of-bounds in precalculate_color+0x2154/0x2480  
Read of size 1 at addr ffffffff884787bf by task vivid-000-vid-c/8948

CPU: 1 PID: 8948 Comm: vivid-000-vid-c Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
Call Trace:
  __dump_stack lib/dump_stack.c:77 [inline]
  dump_stack+0x197/0x210 lib/dump_stack.c:118
  print_address_description.constprop.0.cold+0x5/0x30b mm/kasan/report.c:374
  __kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506
  kasan_report+0x12/0x20 mm/kasan/common.c:634
  __asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:129
  tpg_precalculate_colors drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:1093  
  tpg_recalc+0x561/0x2850 drivers/media/common/v4l2-tpg/v4l2-tpg-core.c:2118
  kthread+0x361/0x430 kernel/kthread.c:255
  ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352

The buggy address belongs to the variable:

Memory state around the buggy address:
  ffffffff88478680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  ffffffff88478700: 00 00 00 00 00 00 00 00 01 fa fa fa fa fa fa fa
> ffffffff88478780: 00 00 06 fa fa fa fa fa 04 fa fa fa fa fa fa fa
  ffffffff88478800: 05 fa fa fa fa fa fa fa 05 fa fa fa fa fa fa fa
  ffffffff88478880: 00 00 fa fa fa fa fa fa 00 00 00 00 00 00 fa fa

This bug is generated by a bot. It may contain errors.
See for more information about syzbot.
syzbot engineers can be reached at

syzbot will keep track of this bug report. See: for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-28 23:55 KASAN: global-out-of-bounds Read in precalculate_color syzbot

Linux-Media Archive on

Archives are clonable:
	git clone --mirror linux-media/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-media linux-media/ \
	public-inbox-index linux-media

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone