RDX: 0000000020000040 RSI: 0000000020000180 RDI: 0000000020000140
kasan: GPF could be caused by NULL-ptr deref or user memory access
RBP: 000000000078bf00 R08: 0000000005e796ed R09: 0000000000000000
R10: 00000000000001d4 R11: 0000000000000246 R12: 0000000000000003
R13: 000000000000001d R14: 00000000004c2bcd R15: 00007f3791ca26d4
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 16536 Comm: syz-executor.5 Not tainted 4.14.180-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888043242140 task.stack: ffff88804e618000
RIP: 0010:vb2_vmalloc_put_userptr+0x6a/0x210 drivers/media/v4l2-core/videobuf2-vmalloc.c:136
RSP: 0018:ffff88804e61fc90 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffffffff0e3a28c
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000009
RBP: ffff8880a0a20c00 R08: dffffc0000000000 R09: ffffffff8a09a0d0
R10: ffff88804e61fd50 R11: ffff888043242140 R12: 0000000000000000
R13: ffff8880a0a20c08 R14: ffffc900127cc000 R15: dffffc0000000000
FS:  0000000001867940(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004f0db0 CR3: 00000000855f1000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 __vb2_buf_userptr_put drivers/media/v4l2-core/videobuf2-core.c:256 [inline]
 __vb2_free_mem drivers/media/v4l2-core/videobuf2-core.c:413 [inline]
 __vb2_queue_free+0x395/0x7b0 drivers/media/v4l2-core/videobuf2-core.c:454
 vb2_core_queue_release+0x5b/0x70 drivers/media/v4l2-core/videobuf2-core.c:2043
 vb2_queue_release drivers/media/v4l2-core/videobuf2-v4l2.c:669 [inline]
 _vb2_fop_release+0x1c1/0x280 drivers/media/v4l2-core/videobuf2-v4l2.c:840
 vivid_fop_release+0x17d/0x3e0 drivers/media/platform/vivid/vivid-core.c:486
 v4l2_release+0xf4/0x190 drivers/media/v4l2-core/v4l2-dev.c:446
 __fput+0x25f/0x790 fs/file_table.c:210
 task_work_run+0x113/0x190 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:191 [inline]
 exit_to_usermode_loop+0x1d6/0x220 arch/x86/entry/common.c:164
 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
 do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x416421
RSP: 002b:00007ffdc3c37780 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000416421
RDX: 0000000000000000 RSI: 0000000000001bb6 RDI: 0000000000000004
RBP: 0000000000000001 R08: 00000000f6c41bb6 R09: 00000000f6c41bba
R10: 00007ffdc3c37870 R11: 0000000000000293 R12: 0000000000792378
R13: 0000000000065189 R14: ffffffffffffffff R15: 000000000078bf0c
Code: 4c 89 ea 48 c1 ea 03 80 3c 02 00 0f 85 8c 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 65 08 49 8d 7c 24 09 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 3b 01 00 
RIP: vb2_vmalloc_put_userptr+0x6a/0x210 drivers/media/v4l2-core/videobuf2-vmalloc.c:136 RSP: ffff88804e61fc90
---[ end trace fbd3cccc1313fbf0 ]---