LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* divide error in vivid_vid_cap_s_dv_timings
@ 2018-10-29 17:13 syzbot
  2018-10-30 22:17 ` syzbot
  0 siblings, 1 reply; 2+ messages in thread
From: syzbot @ 2018-10-29 17:13 UTC (permalink / raw)
  To: hverkuil, linux-kernel, linux-media, mchehab, syzkaller-bugs

Hello,

syzbot found the following crash on:

HEAD commit:    b179f0826c6a Add linux-next specific files for 20181029
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=175ea9c5400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=6b2b22387bad67fc
dashboard link: https://syzkaller.appspot.com/bug?extid=57c3d83d71187054d56f
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+57c3d83d71187054d56f@syzkaller.appspotmail.com

divide error: 0000 [#1] PREEMPT SMP KASAN
netlink: 20 bytes leftover after parsing attributes in process  
`syz-executor5'.
CPU: 0 PID: 26335 Comm: syz-executor2 Not tainted 4.19.0-next-20181029+ #100
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:valid_cvt_gtf_timings  
drivers/media/platform/vivid/vivid-vid-cap.c:1633 [inline]
RIP: 0010:vivid_vid_cap_s_dv_timings+0x60e/0x11e0  
drivers/media/platform/vivid/vivid-vid-cap.c:1664
Code: c6 84 c9 0f 95 c1 40 84 ce 0f 85 ce 0a 00 00 83 e0 07 38 c2 0f 9e c1  
84 d2 0f 95 c0 84 c1 0f 85 b9 0a 00 00 48 8b 43 14 31 d2 <41> f7 f7 48 ba  
00 00 00 00 00 fc ff df 4c 8d 7b 40 89 85 64 ff ff
RSP: 0018:ffff880180caf630 EFLAGS: 00010246
RAX: 0000000002000000 RBX: ffff8801ce323700 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801ce323714
RBP: ffff880180caf6f0 R08: 0000000000000001 R09: ffffed003971a024
R10: ffffed003971a024 R11: ffff8801cb8d0123 R12: ffff8801cb8d0080
R13: 1ffff10030195ecd R14: 0000000000000000 R15: 0000000000000000
FS:  00007f3d49d6e700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000727e4c CR3: 00000001d9174000 CR4: 00000000001426f0
Call Trace:
  vidioc_s_dv_timings+0xa4/0xc0 drivers/media/platform/vivid/vivid-core.c:323
  v4l_stub_s_dv_timings+0x4f/0x60 drivers/media/v4l2-core/v4l2-ioctl.c:2581
  __video_do_ioctl+0x519/0xf00 drivers/media/v4l2-core/v4l2-ioctl.c:2833
kobject: 'loop5' (00000000a1276308): kobject_uevent_env
  video_usercopy+0x5c1/0x1750 drivers/media/v4l2-core/v4l2-ioctl.c:3013
kobject: 'loop5' (00000000a1276308): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
netlink: 20 bytes leftover after parsing attributes in process  
`syz-executor5'.
kobject: 'loop5' (00000000a1276308): kobject_uevent_env
  video_ioctl2+0x2c/0x33 drivers/media/v4l2-core/v4l2-ioctl.c:3057
  v4l2_ioctl+0x154/0x1b0 drivers/media/v4l2-core/v4l2-dev.c:364
kobject: 'loop5' (00000000a1276308): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
  vfs_ioctl fs/ioctl.c:46 [inline]
  file_ioctl fs/ioctl.c:501 [inline]
  do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:688
netlink: 20 bytes leftover after parsing attributes in process  
`syz-executor5'.
  ksys_ioctl+0xa9/0xd0 fs/ioctl.c:705
  __do_sys_ioctl fs/ioctl.c:712 [inline]
  __se_sys_ioctl fs/ioctl.c:710 [inline]
  __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
  do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
kobject: 'loop5' (00000000a1276308): kobject_uevent_env
kobject: 'loop5' (00000000a1276308): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
netlink: 20 bytes leftover after parsing attributes in process  
`syz-executor5'.
RIP: 0033:0x457569
Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3d49d6dc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569
RDX: 0000000020000040 RSI: 00000000c0845657 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3d49d6e6d4
kobject: 'loop5' (00000000a1276308): kobject_uevent_env
R13: 00000000004c1e32 R14: 00000000004d2e40 R15: 00000000ffffffff
Modules linked in:
---[ end trace c59f37d57fa3eae0 ]---
kobject: 'loop5' (00000000a1276308): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
RIP: 0010:valid_cvt_gtf_timings  
drivers/media/platform/vivid/vivid-vid-cap.c:1633 [inline]
RIP: 0010:vivid_vid_cap_s_dv_timings+0x60e/0x11e0  
drivers/media/platform/vivid/vivid-vid-cap.c:1664
kobject: 'loop4' (00000000e1a0902a): kobject_uevent_env
kobject: 'loop4' (00000000e1a0902a): fill_kobj_path: path  
= '/devices/virtual/block/loop4'
Code: c6 84 c9 0f 95 c1 40 84 ce 0f 85 ce 0a 00 00 83 e0 07 38 c2 0f 9e c1  
84 d2 0f 95 c0 84 c1 0f 85 b9 0a 00 00 48 8b 43 14 31 d2 <41> f7 f7 48 ba  
00 00 00 00 00 fc ff df 4c 8d 7b 40 89 85 64 ff ff
kobject: 'loop5' (00000000a1276308): kobject_uevent_env
kobject: 'kvm' (0000000010b8511c): kobject_uevent_env
kobject: 'kvm' (0000000010b8511c): fill_kobj_path: path  
= '/devices/virtual/misc/kvm'
kobject: 'loop5' (00000000a1276308): fill_kobj_path: path  
= '/devices/virtual/block/loop5'
RSP: 0018:ffff880180caf630 EFLAGS: 00010246
RAX: 0000000002000000 RBX: ffff8801ce323700 RCX: 0000000000000001
kobject: 'loop1' (00000000c8fe2913): kobject_uevent_env
kobject: 'kvm' (0000000010b8511c): kobject_uevent_env
kobject: 'loop1' (00000000c8fe2913): fill_kobj_path: path  
= '/devices/virtual/block/loop1'
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801ce323714
kobject: 'kvm' (0000000010b8511c): fill_kobj_path: path  
= '/devices/virtual/misc/kvm'
kobject: 'kvm' (0000000010b8511c): kobject_uevent_env
kobject: 'kvm' (0000000010b8511c): fill_kobj_path: path  
= '/devices/virtual/misc/kvm'
RBP: ffff880180caf6f0 R08: 0000000000000001 R09: ffffed003971a024
kobject: 'kvm' (0000000010b8511c): kobject_uevent_env
kobject: 'kvm' (0000000010b8511c): fill_kobj_path: path  
= '/devices/virtual/misc/kvm'
R10: ffffed003971a024 R11: ffff8801cb8d0123 R12: ffff8801cb8d0080
R13: 1ffff10030195ecd R14: 0000000000000000 R15: 0000000000000000
FS:  00007f3d49d6e700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
kobject: 'loop4' (00000000e1a0902a): kobject_uevent_env
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
kobject: 'loop4' (00000000e1a0902a): fill_kobj_path: path  
= '/devices/virtual/block/loop4'
CR2: 00007fd3f654b000 CR3: 00000001d9174000 CR4: 00000000001426f0


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with  
syzbot.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: divide error in vivid_vid_cap_s_dv_timings
  2018-10-29 17:13 divide error in vivid_vid_cap_s_dv_timings syzbot
@ 2018-10-30 22:17 ` syzbot
  0 siblings, 0 replies; 2+ messages in thread
From: syzbot @ 2018-10-30 22:17 UTC (permalink / raw)
  To: hverkuil, linux-kernel, linux-media, mchehab, syzkaller-bugs

syzbot has found a reproducer for the following crash on:

HEAD commit:    6201f31a39f8 Add linux-next specific files for 20181030
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=178f6999400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=2a22859d870756c1
dashboard link: https://syzkaller.appspot.com/bug?extid=57c3d83d71187054d56f
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=13c44dbd400000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=15210599400000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+57c3d83d71187054d56f@syzkaller.appspotmail.com

divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5676 Comm: syz-executor345 Not tainted 4.19.0-next-20181030+  
#101
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:valid_cvt_gtf_timings  
drivers/media/platform/vivid/vivid-vid-cap.c:1633 [inline]
RIP: 0010:vivid_vid_cap_s_dv_timings+0x60e/0x11e0  
drivers/media/platform/vivid/vivid-vid-cap.c:1664
Code: c6 84 c9 0f 95 c1 40 84 ce 0f 85 ce 0a 00 00 83 e0 07 38 c2 0f 9e c1  
84 d2 0f 95 c0 84 c1 0f 85 b9 0a 00 00 48 8b 43 14 31 d2 <41> f7 f7 48 ba  
00 00 00 00 00 fc ff df 4c 8d 7b 40 89 85 64 ff ff
RSP: 0018:ffff8801d80a7630 EFLAGS: 00010246
RAX: 0000000000d59f80 RBX: ffff8801d7a9e600 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801d7a9e614
RBP: ffff8801d80a76f0 R08: 0000000000000001 R09: ffffed0039694024
R10: ffffed0039694024 R11: ffff8801cb4a0123 R12: ffff8801cb4a0080
R13: 1ffff1003b014ecd R14: 0000000000000000 R15: 0000000000000000
FS:  000000000228d880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cf090 CR3: 00000001d7948000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
  vidioc_s_dv_timings+0xa4/0xc0 drivers/media/platform/vivid/vivid-core.c:323
  v4l_stub_s_dv_timings+0x4f/0x60 drivers/media/v4l2-core/v4l2-ioctl.c:2581
  __video_do_ioctl+0x519/0xf00 drivers/media/v4l2-core/v4l2-ioctl.c:2833
  video_usercopy+0x5c1/0x1750 drivers/media/v4l2-core/v4l2-ioctl.c:3013
  video_ioctl2+0x2c/0x33 drivers/media/v4l2-core/v4l2-ioctl.c:3057
  v4l2_ioctl+0x154/0x1b0 drivers/media/v4l2-core/v4l2-dev.c:364
  vfs_ioctl fs/ioctl.c:46 [inline]
  file_ioctl fs/ioctl.c:501 [inline]
  do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:688
  ksys_ioctl+0xa9/0xd0 fs/ioctl.c:705
  __do_sys_ioctl fs/ioctl.c:712 [inline]
  __se_sys_ioctl fs/ioctl.c:710 [inline]
  __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
  do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x444c19
Code: e8 0c ad 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 0f 83 db ce fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffce23353f8 EFLAGS: 00000213 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c19
RDX: 0000000020000000 RSI: 00000000c0845657 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000ffff00000000 R09: 00000000004002e0
R10: 000000000000f8ff R11: 0000000000000213 R12: 000000000000c1b9
R13: 0000000000402010 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace eca9bbb7e84ba3e6 ]---
RIP: 0010:valid_cvt_gtf_timings  
drivers/media/platform/vivid/vivid-vid-cap.c:1633 [inline]
RIP: 0010:vivid_vid_cap_s_dv_timings+0x60e/0x11e0  
drivers/media/platform/vivid/vivid-vid-cap.c:1664
Code: c6 84 c9 0f 95 c1 40 84 ce 0f 85 ce 0a 00 00 83 e0 07 38 c2 0f 9e c1  
84 d2 0f 95 c0 84 c1 0f 85 b9 0a 00 00 48 8b 43 14 31 d2 <41> f7 f7 48 ba  
00 00 00 00 00 fc ff df 4c 8d 7b 40 89 85 64 ff ff
RSP: 0018:ffff8801d80a7630 EFLAGS: 00010246
RAX: 0000000000d59f80 RBX: ffff8801d7a9e600 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801d7a9e614
RBP: ffff8801d80a76f0 R08: 0000000000000001 R09: ffffed0039694024
R10: ffffed0039694024 R11: ffff8801cb4a0123 R12: ffff8801cb4a0080
R13: 1ffff1003b014ecd R14: 0000000000000000 R15: 0000000000000000
FS:  000000000228d880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cf090 CR3: 00000001d7948000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-30 22:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-29 17:13 divide error in vivid_vid_cap_s_dv_timings syzbot
2018-10-30 22:17 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).