syzbot


general protection fault in vb2_vmalloc_put

Status: upstream: reported C repro on 2019/06/09 19:19
Reported-by: syzbot+726378f0b65b367225de@syzkaller.appspotmail.com
First crash: 2027d, last: 1681d
Fix bisection: failed (error log, bisect log)
  
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/12/11 21:31 11m retest repro linux-4.14.y report log
2022/08/28 17:27 10m retest repro linux-4.14.y report log
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2020/06/19 19:50 0m bisect fix linux-4.14.y error job log
2020/05/20 19:18 22m bisect fix linux-4.14.y OK (0) job log log
2020/04/20 18:53 24m bisect fix linux-4.14.y OK (0) job log log
2020/03/21 16:58 25m bisect fix linux-4.14.y OK (0) job log log
2020/02/20 16:34 23m bisect fix linux-4.14.y OK (0) job log log
2020/01/21 16:10 24m bisect fix linux-4.14.y OK (0) job log log
2019/12/22 15:47 23m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
random: sshd: uninitialized urandom read (32 bytes read)
random: sshd: uninitialized urandom read (32 bytes read)
audit: type=1400 audit(1560105412.780:36): avc:  denied  { map } for  pid=6869 comm="syz-executor945" path="/root/syz-executor945611094" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 6869 Comm: syz-executor945 Not tainted 4.14.124 #18
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888094a12440 task.stack: ffff888097290000
RIP: 0010:__read_once_size include/linux/compiler.h:186 [inline]
RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:27 [inline]
RIP: 0010:refcount_sub_and_test+0x2b/0xf0 lib/refcount.c:179
RSP: 0018:ffff888097297a68 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff8880933a8a00 RCX: ffffffff8424bba0
RDX: 0000000000000004 RSI: 0000000000000020 RDI: 0000000000000001
RBP: ffff888097297a90 R08: 00000000561284a3 R09: ffff888094a12d08
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000020
R13: 0000000000000001 R14: ffff8880933a8a14 R15: 0000000000000000
FS:  0000000001a58880(0000) GS:ffff8880aee00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043ea00 CR3: 000000000766a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 refcount_dec_and_test+0x1b/0x20 lib/refcount.c:212
 vb2_vmalloc_put+0x18/0x70 drivers/media/v4l2-core/videobuf2-vmalloc.c:68
 __vb2_buf_mem_free+0x103/0x1e0 drivers/media/v4l2-core/videobuf2-core.c:240
 __vb2_free_mem drivers/media/v4l2-core/videobuf2-core.c:409 [inline]
 __vb2_queue_free+0x634/0x7d0 drivers/media/v4l2-core/videobuf2-core.c:454
 vb2_core_queue_release+0x64/0x80 drivers/media/v4l2-core/videobuf2-core.c:2043
 vb2_queue_release drivers/media/v4l2-core/videobuf2-v4l2.c:669 [inline]
 _vb2_fop_release+0x1cf/0x2a0 drivers/media/v4l2-core/videobuf2-v4l2.c:840
 vb2_fop_release+0x75/0xc0 drivers/media/v4l2-core/videobuf2-v4l2.c:854
 vivid_fop_release+0x180/0x3f0 drivers/media/platform/vivid/vivid-core.c:486
 v4l2_release+0xf9/0x190 drivers/media/v4l2-core/v4l2-dev.c:446
 __fput+0x275/0x7a0 fs/file_table.c:210
 ____fput+0x16/0x20 fs/file_table.c:244
 task_work_run+0x114/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x7df/0x2c10 kernel/exit.c:874
 do_group_exit+0x111/0x330 kernel/exit.c:977
 SYSC_exit_group kernel/exit.c:988 [inline]
 SyS_exit_group+0x1d/0x20 kernel/exit.c:986
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x442e88
RSP: 002b:00007ffd45432c28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442e88
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004c27a8 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d4180 R14: 0000000000000000 R15: 0000000000000000
Code: 55 48 89 e5 41 56 41 55 41 89 fd 41 54 49 89 f4 53 48 83 ec 08 e8 f6 c4 85 fe 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 4c 89 e0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 
RIP: __read_once_size include/linux/compiler.h:186 [inline] RSP: ffff888097297a68
RIP: atomic_read arch/x86/include/asm/atomic.h:27 [inline] RSP: ffff888097297a68
RIP: refcount_sub_and_test+0x2b/0xf0 lib/refcount.c:179 RSP: ffff888097297a68
---[ end trace 0c039e45dabf2113 ]---

Crashes (57):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/06/09 18:41 linux-4.14.y e6a95d8851f1 0159583c .config console log report syz C ci2-linux-4-14
2019/11/22 15:46 linux-4.14.y f56f3d0e65ad 598ca6c8 .config console log report ci2-linux-4-14
2019/11/18 22:50 linux-4.14.y 775d01b65b5d d5696d51 .config console log report ci2-linux-4-14
2019/11/15 02:55 linux-4.14.y 775d01b65b5d 048f2d49 .config console log report ci2-linux-4-14
2019/11/13 07:38 linux-4.14.y 4762bcd451a9 048f2d49 .config console log report ci2-linux-4-14
2019/11/09 10:19 linux-4.14.y c9fda4f22428 1e35461e .config console log report ci2-linux-4-14
2019/10/26 21:19 linux-4.14.y b98aebd29824 25bb509e .config console log report ci2-linux-4-14
2019/10/23 13:03 linux-4.14.y b98aebd29824 d0686497 .config console log report ci2-linux-4-14
2019/10/18 12:41 linux-4.14.y b98aebd29824 8c88c9c1 .config console log report ci2-linux-4-14
2019/10/15 18:58 linux-4.14.y e132c8d7b58d b5268b89 .config console log report ci2-linux-4-14
2019/10/13 17:14 linux-4.14.y e132c8d7b58d 2f661ec4 .config console log report ci2-linux-4-14
2019/10/03 23:53 linux-4.14.y f6e27dbb1afa fc17ba49 .config console log report ci2-linux-4-14
2019/09/29 03:19 linux-4.14.y f6e27dbb1afa eb6b9855 .config console log report ci2-linux-4-14
2019/09/25 04:25 linux-4.14.y f6e27dbb1afa e38a6630 .config console log report ci2-linux-4-14
2019/09/21 22:41 linux-4.14.y f6e27dbb1afa d96e88f3 .config console log report ci2-linux-4-14
2019/09/14 15:23 linux-4.14.y e2cd24b62938 32d59357 .config console log report ci2-linux-4-14
2019/09/10 01:50 linux-4.14.y 414510bc00a5 a60cb4cd .config console log report ci2-linux-4-14
2019/09/09 10:36 linux-4.14.y 414510bc00a5 a60cb4cd .config console log report ci2-linux-4-14
2019/09/08 10:17 linux-4.14.y 414510bc00a5 a60cb4cd .config console log report ci2-linux-4-14
2019/09/08 05:41 linux-4.14.y 414510bc00a5 a60cb4cd .config console log report ci2-linux-4-14
2019/09/05 05:27 linux-4.14.y 01fd1694b93c 040fda58 .config console log report ci2-linux-4-14
2019/09/03 07:11 linux-4.14.y 01fd1694b93c 14544a56 .config console log report ci2-linux-4-14
2019/08/31 23:38 linux-4.14.y 01fd1694b93c bad3cce2 .config console log report ci2-linux-4-14
2019/08/31 07:51 linux-4.14.y 01fd1694b93c bcd7bcc2 .config console log report ci2-linux-4-14
2019/08/26 11:58 linux-4.14.y b5260801526c d21c5d9d .config console log report ci2-linux-4-14
2019/08/24 23:26 linux-4.14.y 45f092f9e9cb d21c5d9d .config console log report ci2-linux-4-14
2019/08/23 11:29 linux-4.14.y 45f092f9e9cb ca6f3cfa .config console log report ci2-linux-4-14
2019/08/22 22:44 linux-4.14.y 45f092f9e9cb c6c81a0b .config console log report ci2-linux-4-14
2019/08/21 18:53 linux-4.14.y 45f092f9e9cb 4ea67ff8 .config console log report ci2-linux-4-14
2019/08/18 00:04 linux-4.14.y 45f092f9e9cb 55bf8926 .config console log report ci2-linux-4-14
2019/08/17 03:48 linux-4.14.y 45f092f9e9cb 8fd428a1 .config console log report ci2-linux-4-14
2019/08/17 02:19 linux-4.14.y 45f092f9e9cb 8fd428a1 .config console log report ci2-linux-4-14
2019/08/14 16:41 linux-4.14.y 3ffe1e79c174 5576551b .config console log report ci2-linux-4-14
2019/08/06 04:23 linux-4.14.y 7d80e1218adf 6affd8e8 .config console log report ci2-linux-4-14
2019/08/03 21:40 linux-4.14.y 10d6aa565d05 6affd8e8 .config console log report ci2-linux-4-14
2019/07/30 01:18 linux-4.14.y ff33472c282e f67095ee .config console log report ci2-linux-4-14
2019/07/28 23:53 linux-4.14.y ff33472c282e c85e1c5b .config console log report ci2-linux-4-14
2019/07/28 03:22 linux-4.14.y ff33472c282e c85e1c5b .config console log report ci2-linux-4-14
2019/07/24 07:41 linux-4.14.y ff33472c282e de453f34 .config console log report ci2-linux-4-14
2019/07/24 07:39 linux-4.14.y ff33472c282e de453f34 .config console log report ci2-linux-4-14
2019/07/22 15:51 linux-4.14.y ff33472c282e b3c615f5 .config console log report ci2-linux-4-14
2019/07/19 22:50 linux-4.14.y aea8526edf59 1656845f .config console log report ci2-linux-4-14
2019/07/18 18:20 linux-4.14.y aea8526edf59 7bb222f7 .config console log report ci2-linux-4-14
2019/07/18 18:17 linux-4.14.y aea8526edf59 7bb222f7 .config console log report ci2-linux-4-14
2019/07/01 06:00 linux-4.14.y f4cc0ed9b2c7 699d6448 .config console log report ci2-linux-4-14
2019/06/28 15:00 linux-4.14.y f4cc0ed9b2c7 7509bf36 .config console log report ci2-linux-4-14
2019/06/27 18:11 linux-4.14.y f4cc0ed9b2c7 7509bf36 .config console log report ci2-linux-4-14
2019/06/26 00:47 linux-4.14.y bc2bccef19ee 0a8d1a96 .config console log report ci2-linux-4-14
2019/06/24 01:17 linux-4.14.y a5758c531177 472f0082 .config console log report ci2-linux-4-14
2019/06/23 15:12 linux-4.14.y a5758c531177 3efccdd2 .config console log report ci2-linux-4-14
2019/06/21 20:27 linux-4.14.y bb263a2a2d43 34bf9440 .config console log report ci2-linux-4-14
2019/06/20 19:47 linux-4.14.y bb263a2a2d43 34bf9440 .config console log report ci2-linux-4-14
2019/06/20 05:53 linux-4.14.y bb263a2a2d43 34bf9440 .config console log report ci2-linux-4-14
2019/06/10 20:38 linux-4.14.y e6a95d8851f1 0159583c .config console log report ci2-linux-4-14
2019/06/10 20:35 linux-4.14.y e6a95d8851f1 0159583c .config console log report ci2-linux-4-14
2019/06/09 18:18 linux-4.14.y e6a95d8851f1 0159583c .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.