syzbot


divide error in vivid_vid_cap_s_dv_timings

Status: fixed on 2019/01/11 01:22
Subsystems: media
[Documentation on labels]
Reported-by: syzbot+57c3d83d71187054d56f@syzkaller.appspotmail.com
Fix commit: 9729d6d282a6 media: vivid: set min width/height to a value > 0
First crash: 2003d, last: 1946d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 4.19 00/99] 4.19.17-stable review 109 (109) 2019/04/22 19:40
[PATCH 4.4 000/104] 4.4.172-stable review 111 (111) 2019/01/30 07:30
[PATCH 3.18 00/52] 3.18.133-stable review 55 (55) 2019/01/25 23:16
[PATCH 4.14 00/59] 4.14.95-stable review 65 (65) 2019/01/23 12:55
[PATCH 4.9 00/51] 4.9.152-stable review 56 (56) 2019/01/23 09:06
[PATCH 4.20 000/111] 4.20.4-stable review 120 (120) 2019/01/23 06:43
divide error in vivid_vid_cap_s_dv_timings 0 (2) 2018/10/30 22:17
[PATCH] vivid: set min width/height to a value > 0 1 (1) 2018/10/29 17:32

Sample crash report:
audit: type=1800 audit(1540972643.869:30): pid=5573 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0
divide error: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5731 Comm: syz-executor967 Not tainted 4.19.0+ #312
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:ffff8801d3a6f630 EFLAGS: 00010246
RAX: 0000000000d59f80 RBX: ffff8801d798a800 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801d798a814
RBP: ffff8801d3a6f6f0 R08: 0000000000000001 R09: ffffed00397f8024
R10: ffffed00397f8024 R11: ffff8801cbfc0123 R12: ffff8801cbfc0080
R13: 1ffff1003a74decd R14: 0000000000000000 R15: 0000000000000000
FS:  000000000078b880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cf090 CR3: 00000001d4a9d000 CR4: 00000000001406e0
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/0x1760 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/0x1720 fs/ioctl.c:685
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702
 __do_sys_ioctl fs/ioctl.c:709 [inline]
 __se_sys_ioctl fs/ioctl.c:707 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707
 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:00007ffdc4892588 EFLAGS: 00000213 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c19
RDX: 0000000020000000 RSI: 00000000c0845657 RDI: 0000000000000003
RBP: 0000000000000000 R08: 000000000078b880 R09: 00000000004002e0
R10: 000000000000000f R11: 0000000000000213 R12: 000000000000ec6f
R13: 0000000000402010 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 423cbeb20573dd38 ]---
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:ffff8801d3a6f630 EFLAGS: 00010246
RAX: 0000000000d59f80 RBX: ffff8801d798a800 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8801d798a814
RBP: ffff8801d3a6f6f0 R08: 0000000000000001 R09: ffffed00397f8024
R10: ffffed00397f8024 R11: ffff8801cbfc0123 R12: ffff8801cbfc0080
R13: 1ffff1003a74decd R14: 0000000000000000 R15: 0000000000000000
FS:  000000000078b880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cf090 CR3: 00000001d4a9d000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (108):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/31 08:06 upstream 310c7585e830 4ccf7bb4 .config console log report syz C ci-upstream-kasan-gce-root
2018/10/31 07:42 upstream 310c7585e830 4ccf7bb4 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/10/30 22:18 upstream 11743c56785c 8dbb755a .config console log report syz C ci-upstream-kasan-gce
2018/10/31 06:48 upstream 310c7585e830 4ccf7bb4 .config console log report syz C ci-upstream-kasan-gce-386
2018/10/30 22:16 linux-next 6201f31a39f8 8dbb755a .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/25 20:25 upstream 8fe28cb58bcb 8a41a0ad .config console log report ci-upstream-kasan-gce-root
2018/12/25 11:13 upstream 8fe28cb58bcb 8a41a0ad .config console log report ci-upstream-kasan-gce-smack-root
2018/12/24 16:07 upstream 8fe28cb58bcb be79df56 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/23 10:23 upstream 9105b8aa50c1 e3bd7ab8 .config console log report ci-upstream-kasan-gce
2018/12/23 01:14 upstream 23203e3f34c9 e3bd7ab8 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/19 17:14 upstream 62393dbcbe0f fe2dc057 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/19 01:00 upstream ddfbab46539f 4edaba93 .config console log report ci-upstream-kasan-gce
2018/12/18 15:20 upstream 1a9430db2835 4edaba93 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/17 23:19 upstream 7566ec393f41 def91db3 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/16 04:33 upstream 6531e115b7ab def91db3 .config console log report ci-upstream-kasan-gce
2018/12/16 01:29 upstream 6531e115b7ab def91db3 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/15 13:25 upstream 6531e115b7ab c9128939 .config console log report ci-upstream-kasan-gce
2018/12/15 05:31 upstream eb6cf9f8cb9d 7624ddd6 .config console log report ci-upstream-kasan-gce
2018/12/14 17:03 upstream 65e08c5e8631 7624ddd6 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/14 09:40 upstream 65e08c5e8631 fe7127be .config console log report ci-upstream-kasan-gce-smack-root
2018/12/14 07:45 upstream 65e08c5e8631 fe7127be .config console log report ci-upstream-kasan-gce
2018/12/13 16:35 upstream f5d582777bcb f3d9d594 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/10 09:47 upstream 0844895a2e51 96cc4c50 .config console log report ci-upstream-kasan-gce
2018/12/09 08:24 upstream 8214bdf7d3e6 c7918378 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/08 18:29 upstream 5f179793f0a7 60562a1d .config console log report ci-upstream-kasan-gce-smack-root
2018/12/08 06:21 upstream 5f179793f0a7 65ed2472 .config console log report ci-upstream-kasan-gce
2018/12/07 20:28 upstream b72f711a4efa 1eb6a7e4 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/07 17:25 upstream b72f711a4efa 1eb6a7e4 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/06 20:04 upstream cf76c364a1e1 3ab38479 .config console log report ci-upstream-kasan-gce
2018/12/06 10:18 upstream d08970904582 764b42c4 .config console log report ci-upstream-kasan-gce
2018/12/06 06:01 upstream d08970904582 764b42c4 .config console log report ci-upstream-kasan-gce-root
2018/12/05 16:10 upstream 0072a0c14d5b ac6c0578 .config console log report ci-upstream-kasan-gce
2018/12/05 12:54 upstream 0072a0c14d5b ac6c0578 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/05 03:14 upstream 0072a0c14d5b f162ad97 .config console log report ci-upstream-kasan-gce
2018/12/04 19:30 upstream 0072a0c14d5b 6ad0ae61 .config console log report ci-upstream-kasan-gce
2018/12/04 08:36 upstream 0072a0c14d5b 03f94a45 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/30 18:31 upstream 94f371cb7394 ade12e91 .config console log report ci-upstream-kasan-gce-root
2018/11/30 15:25 upstream 94f371cb7394 ade12e91 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/30 08:43 upstream f92a2ebb3d55 66071e27 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/29 15:52 upstream 60b548237fed 4b6d14f2 .config console log report ci-upstream-kasan-gce-selinux-root
2018/11/29 05:58 upstream 121b018f8c74 4b6d14f2 .config console log report ci-upstream-kasan-gce-root
2018/11/28 20:17 upstream 121b018f8c74 4b6d14f2 .config console log report ci-upstream-kasan-gce
2018/11/27 09:41 upstream 6f8b52ba442c ac912200 .config console log report ci-upstream-kasan-gce
2018/11/26 16:09 upstream 2e6e902d1850 ac912200 .config console log report ci-upstream-kasan-gce
2018/11/26 08:04 upstream d6d460b89378 3d3ec907 .config console log report ci-upstream-kasan-gce-root
2018/11/25 22:59 upstream d6d460b89378 3d3ec907 .config console log report ci-upstream-kasan-gce
2018/11/25 16:58 upstream e195ca6cb6f2 3d3ec907 .config console log report ci-upstream-kasan-gce
2018/11/24 19:48 upstream 7c98a4261827 ecc7c870 .config console log report ci-upstream-kasan-gce
2018/11/24 06:50 upstream e6005d3c4233 eb9ed731 .config console log report ci-upstream-kasan-gce
2018/11/24 03:02 upstream e6005d3c4233 eb9ed731 .config console log report ci-upstream-kasan-gce-smack-root
2018/11/16 19:39 upstream da5322e65940 f5e275d1 .config console log report ci-upstream-kasan-gce-386
2018/12/06 17:50 linux-next 442b8cea2477 3ab38479 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/06 02:47 linux-next 442b8cea2477 764b42c4 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/12/04 03:55 linux-next 442b8cea2477 03f94a45 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/30 05:56 linux-next 442b8cea2477 66071e27 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/28 04:59 linux-next 442b8cea2477 4b6d14f2 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/11/27 19:58 linux-next 442b8cea2477 4b6d14f2 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/29 15:13 linux-next b179f0826c6a 7df9db2e .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.