Warning: Permanently added '10.128.0.123' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 36.321265] ================================================================== [ 36.328822] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 36.334780] Read of size 8 at addr ffff8801c21cc940 by task syz-executor645/6018 [ 36.342293] [ 36.343910] CPU: 1 PID: 6018 Comm: syz-executor645 Not tainted 4.20.0-rc1+ #330 [ 36.351338] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.360712] Call Trace: [ 36.363296] dump_stack+0x244/0x39d [ 36.366912] ? dump_stack_print_info.cold.1+0x20/0x20 [ 36.372094] ? printk+0xa7/0xcf [ 36.375377] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.380148] print_address_description.cold.7+0x9/0x1ff [ 36.385505] kasan_report.cold.8+0x242/0x309 [ 36.389909] ? vb2_mmap+0x662/0x6f0 [ 36.393526] __asan_report_load8_noabort+0x14/0x20 [ 36.398440] vb2_mmap+0x662/0x6f0 [ 36.401901] ? vb2_poll+0x1d0/0x1d0 [ 36.405514] vb2_fop_mmap+0x4b/0x70 [ 36.409128] v4l2_mmap+0x153/0x200 [ 36.412656] mmap_region+0xe85/0x1cd0 [ 36.416446] ? __x64_sys_brk+0x8b0/0x8b0 [ 36.420495] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 36.425754] ? rcu_softirq_qs+0x20/0x20 [ 36.429759] ? mpx_unmapped_area_check+0xd8/0x108 [ 36.434608] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 36.440062] ? arch_get_unmapped_area+0x750/0x750 [ 36.444897] ? lock_acquire+0x1ed/0x520 [ 36.448875] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 36.453889] ? cap_mmap_addr+0x52/0x130 [ 36.457957] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.463493] ? security_mmap_addr+0x80/0xa0 [ 36.467814] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.473342] ? get_unmapped_area+0x292/0x3b0 [ 36.477735] do_mmap+0xa22/0x1230 [ 36.481187] ? mmap_region+0x1cd0/0x1cd0 [ 36.485233] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 36.489282] ? down_read_killable+0x150/0x150 [ 36.493762] ? security_mmap_file+0x174/0x1b0 [ 36.498253] vm_mmap_pgoff+0x213/0x2c0 [ 36.502145] ? vma_is_stack_for_current+0xd0/0xd0 [ 36.506987] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.512530] ? __fget_light+0x2e9/0x430 [ 36.516495] ? fget_raw+0x20/0x20 [ 36.519934] ? up_read+0x225/0x2c0 [ 36.523489] ksys_mmap_pgoff+0x4da/0x660 [ 36.527544] ? do_syscall_64+0x9a/0x820 [ 36.531506] ? find_mergeable_anon_vma+0xd0/0xd0 [ 36.536262] ? trace_hardirqs_on+0xbd/0x310 [ 36.540572] ? security_file_ioctl+0x94/0xc0 [ 36.544971] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.550328] ? trace_hardirqs_off_caller+0x310/0x310 [ 36.555440] __x64_sys_mmap+0xe9/0x1b0 [ 36.559317] do_syscall_64+0x1b9/0x820 [ 36.563192] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 36.568554] ? syscall_return_slowpath+0x5e0/0x5e0 [ 36.573471] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.578304] ? trace_hardirqs_on_caller+0x310/0x310 [ 36.583318] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.588323] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.593327] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.598162] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.603355] RIP: 0033:0x444c89 [ 36.606540] Code: e8 ac e8 ff ff 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 2b ce fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 36.625445] RSP: 002b:00007ffda721f468 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 36.633160] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 36.640415] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 36.647670] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 36.654923] R10: 0000000000000011 R11: 0000000000000216 R12: 0000000000008dbd [ 36.662184] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 36.669466] [ 36.671096] Allocated by task 6015: [ 36.674756] save_stack+0x43/0xd0 [ 36.678202] kasan_kmalloc+0xc7/0xe0 [ 36.682007] __kmalloc+0x15b/0x760 [ 36.685537] __vb2_queue_alloc+0xf7/0xf90 [ 36.689670] vb2_core_create_bufs+0x401/0x8c0 [ 36.694166] vb2_create_bufs+0x3c6/0x7f0 [ 36.698217] vb2_ioctl_create_bufs+0x25e/0x3d0 [ 36.702786] v4l_create_bufs+0x152/0x230 [ 36.706849] __video_do_ioctl+0x8b1/0x1050 [ 36.711086] video_usercopy+0x5c1/0x1760 [ 36.715137] video_ioctl2+0x2c/0x33 [ 36.718753] v4l2_ioctl+0x154/0x1b0 [ 36.722367] do_vfs_ioctl+0x1de/0x1790 [ 36.726249] ksys_ioctl+0xa9/0xd0 [ 36.729695] __x64_sys_ioctl+0x73/0xb0 [ 36.733570] do_syscall_64+0x1b9/0x820 [ 36.737460] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.742635] [ 36.744255] Freed by task 6015: [ 36.747527] save_stack+0x43/0xd0 [ 36.750977] __kasan_slab_free+0x102/0x150 [ 36.755199] kasan_slab_free+0xe/0x10 [ 36.759078] kfree+0xcf/0x230 [ 36.762285] __vb2_queue_free+0x5e2/0xa30 [ 36.766436] vb2_core_queue_release+0x62/0x80 [ 36.770948] _vb2_fop_release+0x1d2/0x2b0 [ 36.775086] vb2_fop_release+0x77/0xc0 [ 36.778963] vivid_fop_release+0x18e/0x440 [ 36.783191] v4l2_release+0x224/0x3a0 [ 36.786988] __fput+0x385/0xa30 [ 36.790290] ____fput+0x15/0x20 [ 36.793559] task_work_run+0x1e8/0x2a0 [ 36.797434] do_exit+0x1ad6/0x26d0 [ 36.800968] do_group_exit+0x177/0x440 [ 36.804852] __x64_sys_exit_group+0x3e/0x50 [ 36.809188] do_syscall_64+0x1b9/0x820 [ 36.813060] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 36.818229] [ 36.819848] The buggy address belongs to the object at ffff8801c21cc940 [ 36.819848] which belongs to the cache kmalloc-1k of size 1024 [ 36.832506] The buggy address is located 0 bytes inside of [ 36.832506] 1024-byte region [ffff8801c21cc940, ffff8801c21ccd40) [ 36.844279] The buggy address belongs to the page: [ 36.849196] page:ffffea0007087300 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 36.859181] flags: 0x2fffc0000010200(slab|head) [ 36.863839] raw: 02fffc0000010200 ffffea000708da08 ffffea0007086908 ffff8801da800ac0 [ 36.871756] raw: 0000000000000000 ffff8801c21cc040 0000000100000007 0000000000000000 [ 36.879615] page dumped because: kasan: bad access detected [ 36.885305] [ 36.886924] Memory state around the buggy address: [ 36.891855] ffff8801c21cc800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.899209] ffff8801c21cc880: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 36.906554] >ffff8801c21cc900: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.913897] ^ [ 36.919338] ffff8801c21cc980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.926689] ffff8801c21cca00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.934036] ================================================================== [ 36.941379] Disabling lock debugging due to kernel taint [ 36.947834] Kernel panic - not syncing: panic_on_warn set ... [ 36.953735] CPU: 1 PID: 6018 Comm: syz-executor645 Tainted: G B 4.20.0-rc1+ #330 [ 36.962551] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.971894] Call Trace: [ 36.974480] dump_stack+0x244/0x39d [ 36.978112] ? dump_stack_print_info.cold.1+0x20/0x20 [ 36.983293] panic+0x2ad/0x55c [ 36.986476] ? add_taint.cold.5+0x16/0x16 [ 36.990612] ? preempt_schedule+0x4d/0x60 [ 36.994747] ? ___preempt_schedule+0x16/0x18 [ 36.999154] ? trace_hardirqs_on+0xb4/0x310 [ 37.003463] kasan_end_report+0x47/0x4f [ 37.007434] kasan_report.cold.8+0x76/0x309 [ 37.011750] ? vb2_mmap+0x662/0x6f0 [ 37.015368] __asan_report_load8_noabort+0x14/0x20 [ 37.020296] vb2_mmap+0x662/0x6f0 [ 37.023750] ? vb2_poll+0x1d0/0x1d0 [ 37.027370] vb2_fop_mmap+0x4b/0x70 [ 37.030993] v4l2_mmap+0x153/0x200 [ 37.034517] mmap_region+0xe85/0x1cd0 [ 37.038569] ? __x64_sys_brk+0x8b0/0x8b0 [ 37.042630] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 37.047911] ? rcu_softirq_qs+0x20/0x20 [ 37.051884] ? mpx_unmapped_area_check+0xd8/0x108 [ 37.056723] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 37.062160] ? arch_get_unmapped_area+0x750/0x750 [ 37.066990] ? lock_acquire+0x1ed/0x520 [ 37.070956] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 37.075965] ? cap_mmap_addr+0x52/0x130 [ 37.079933] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.085458] ? security_mmap_addr+0x80/0xa0 [ 37.089765] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.095305] ? get_unmapped_area+0x292/0x3b0 [ 37.099708] do_mmap+0xa22/0x1230 [ 37.103156] ? mmap_region+0x1cd0/0x1cd0 [ 37.107203] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 37.111251] ? down_read_killable+0x150/0x150 [ 37.115738] ? security_mmap_file+0x174/0x1b0 [ 37.120225] vm_mmap_pgoff+0x213/0x2c0 [ 37.124100] ? vma_is_stack_for_current+0xd0/0xd0 [ 37.128932] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.134459] ? __fget_light+0x2e9/0x430 [ 37.138421] ? fget_raw+0x20/0x20 [ 37.141861] ? up_read+0x225/0x2c0 [ 37.145387] ksys_mmap_pgoff+0x4da/0x660 [ 37.149440] ? do_syscall_64+0x9a/0x820 [ 37.153402] ? find_mergeable_anon_vma+0xd0/0xd0 [ 37.158146] ? trace_hardirqs_on+0xbd/0x310 [ 37.162452] ? security_file_ioctl+0x94/0xc0 [ 37.166848] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.172206] ? trace_hardirqs_off_caller+0x310/0x310 [ 37.177297] __x64_sys_mmap+0xe9/0x1b0 [ 37.181173] do_syscall_64+0x1b9/0x820 [ 37.185047] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.190404] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.195441] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.200279] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.205290] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.210291] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.215297] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.220136] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.225315] RIP: 0033:0x444c89 [ 37.228495] Code: e8 ac e8 ff ff 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 2b ce fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 37.247394] RSP: 002b:00007ffda721f468 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 37.255115] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 37.262371] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 37.269624] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 37.276888] R10: 0000000000000011 R11: 0000000000000216 R12: 0000000000008dbd [ 37.284150] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 37.292783] Kernel Offset: disabled [ 37.296418] Rebooting in 86400 seconds..