==================================================================
BUG: KASAN: use-after-free in __vb2_perform_fileio+0x1065/0x1140 drivers/media/common/videobuf2/videobuf2-core.c:2613
Read of size 4 at addr ffff88805a205e5c by task syz-executor.5/19762

CPU: 0 PID: 19762 Comm: syz-executor.5 Not tainted 5.1.0-rc5+ #72
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+0x172/0x1f0 lib/dump_stack.c:113
 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187
 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317
 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131
 __vb2_perform_fileio+0x1065/0x1140 drivers/media/common/videobuf2/videobuf2-core.c:2613
 vb2_read+0x3b/0x50 drivers/media/common/videobuf2/videobuf2-core.c:2724
 vb2_fop_read+0x212/0x410 drivers/media/common/videobuf2/videobuf2-v4l2.c:1090
 v4l2_read+0x1ce/0x230 drivers/media/v4l2-core/v4l2-dev.c:317
 __vfs_read+0x8d/0x110 fs/read_write.c:416
 vfs_read+0x194/0x3e0 fs/read_write.c:452
 ksys_pread64+0x183/0x1c0 fs/read_write.c:627
 __do_sys_pread64 fs/read_write.c:637 [inline]
 __se_sys_pread64 fs/read_write.c:634 [inline]
 __x64_sys_pread64+0x97/0xf0 fs/read_write.c:634
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458c29
Code: ad b8 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 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe2cc83cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000011
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000458c29
RDX: 00000000000000ac RSI: 0000000020000140 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe2cc83d6d4
R13: 00000000004c5961 R14: 00000000004d9cb0 R15: 00000000ffffffff

Allocated by task 19757:
 save_stack+0x45/0xd0 mm/kasan/common.c:75
 set_track mm/kasan/common.c:87 [inline]
 __kasan_kmalloc mm/kasan/common.c:497 [inline]
 __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:470
 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:511
 kmem_cache_alloc_trace+0x151/0x760 mm/slab.c:3623
 kmalloc include/linux/slab.h:547 [inline]
 kzalloc include/linux/slab.h:742 [inline]
 __vb2_init_fileio+0x1cb/0xbe0 drivers/media/common/videobuf2/videobuf2-core.c:2458
 __vb2_perform_fileio+0xc01/0x1140 drivers/media/common/videobuf2/videobuf2-core.c:2592
 vb2_read+0x3b/0x50 drivers/media/common/videobuf2/videobuf2-core.c:2724
 vb2_fop_read+0x212/0x410 drivers/media/common/videobuf2/videobuf2-v4l2.c:1090
 v4l2_read+0x1ce/0x230 drivers/media/v4l2-core/v4l2-dev.c:317
 __vfs_read+0x8d/0x110 fs/read_write.c:416
 vfs_read+0x194/0x3e0 fs/read_write.c:452
 ksys_pread64+0x183/0x1c0 fs/read_write.c:627
 __do_sys_pread64 fs/read_write.c:637 [inline]
 __se_sys_pread64 fs/read_write.c:634 [inline]
 __x64_sys_pread64+0x97/0xf0 fs/read_write.c:634
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

Freed by task 19756:
 save_stack+0x45/0xd0 mm/kasan/common.c:75
 set_track mm/kasan/common.c:87 [inline]
 __kasan_slab_free+0x102/0x150 mm/kasan/common.c:459
 kasan_slab_free+0xe/0x10 mm/kasan/common.c:467
 __cache_free mm/slab.c:3500 [inline]
 kfree+0xcf/0x230 mm/slab.c:3823
 __vb2_cleanup_fileio+0x100/0x170 drivers/media/common/videobuf2/videobuf2-core.c:2551
 vb2_core_queue_release+0x20/0x80 drivers/media/common/videobuf2/videobuf2-core.c:2274
 vb2_queue_release drivers/media/common/videobuf2/videobuf2-v4l2.c:864 [inline]
 _vb2_fop_release+0x1cf/0x2a0 drivers/media/common/videobuf2/videobuf2-v4l2.c:1035
 vb2_fop_release+0x75/0xc0 drivers/media/common/videobuf2/videobuf2-v4l2.c:1049
 vivid_fop_release+0x18e/0x430 drivers/media/platform/vivid/vivid-core.c:475
 v4l2_release+0x224/0x3a0 drivers/media/v4l2-core/v4l2-dev.c:456
 __fput+0x2e5/0x8d0 fs/file_table.c:278
 ____fput+0x16/0x20 fs/file_table.c:309
 task_work_run+0x14a/0x1c0 kernel/task_work.c:113
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:166
 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
 do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe

The buggy address belongs to the object at ffff88805a205b40
 which belongs to the cache kmalloc-1k of size 1024
The buggy address is located 796 bytes inside of
 1024-byte region [ffff88805a205b40, ffff88805a205f40)
The buggy address belongs to the page:
page:ffffea0001688100 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0
flags: 0x1fffc0000010200(slab|head)
raw: 01fffc0000010200 ffffea00021b5708 ffffea0002523008 ffff88812c3f0ac0
raw: 0000000000000000 ffff88805a204040 0000000100000007 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff88805a205d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805a205d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88805a205e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                    ^
 ffff88805a205e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff88805a205f00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc
==================================================================