Warning: Permanently added '10.128.10.25' (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 [ 312.638678] ================================================================== [ 312.646433] BUG: KASAN: use-after-free in __vb2_cleanup_fileio+0x13d/0x160 [ 312.653458] Write of size 4 at addr ffff8801d7730040 by task syz-executor965/5707 [ 312.661072] [ 312.662704] CPU: 1 PID: 5707 Comm: syz-executor965 Not tainted 4.19.0+ #309 [ 312.669902] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 312.679256] Call Trace: [ 312.681892] dump_stack+0x244/0x39d [ 312.685512] ? dump_stack_print_info.cold.1+0x20/0x20 [ 312.690855] ? printk+0xa7/0xcf [ 312.694132] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 312.698928] print_address_description.cold.7+0x9/0x1ff [ 312.704405] kasan_report.cold.8+0x242/0x309 [ 312.708802] ? __vb2_cleanup_fileio+0x13d/0x160 [ 312.713464] __asan_report_store4_noabort+0x17/0x20 [ 312.718476] __vb2_cleanup_fileio+0x13d/0x160 [ 312.722956] vb2_core_queue_release+0x1e/0x80 [ 312.727436] _vb2_fop_release+0x1d2/0x2b0 [ 312.731569] vb2_fop_release+0x77/0xc0 [ 312.735613] vivid_fop_release+0x18e/0x440 [ 312.739846] ? vivid_remove+0x460/0x460 [ 312.744095] ? dev_debug_store+0x140/0x140 [ 312.748323] v4l2_release+0xfb/0x1a0 [ 312.752088] __fput+0x385/0xa30 [ 312.755367] ? get_max_files+0x20/0x20 [ 312.759275] ? trace_hardirqs_on+0xbd/0x310 [ 312.763597] ? kasan_check_read+0x11/0x20 [ 312.767774] ? task_work_run+0x1af/0x2a0 [ 312.771828] ? trace_hardirqs_off_caller+0x310/0x310 [ 312.776915] ? filp_close+0x1cd/0x250 [ 312.780708] ____fput+0x15/0x20 [ 312.783975] task_work_run+0x1e8/0x2a0 [ 312.787864] ? task_work_cancel+0x240/0x240 [ 312.792225] ? copy_fd_bitmaps+0x210/0x210 [ 312.796465] ? do_syscall_64+0x9a/0x820 [ 312.800434] exit_to_usermode_loop+0x318/0x380 [ 312.805014] ? __bpf_trace_sys_exit+0x30/0x30 [ 312.809561] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 312.815250] do_syscall_64+0x6be/0x820 [ 312.819196] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 312.824554] ? syscall_return_slowpath+0x5e0/0x5e0 [ 312.829517] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 312.834353] ? trace_hardirqs_on_caller+0x310/0x310 [ 312.839354] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 312.844355] ? prepare_exit_to_usermode+0x291/0x3b0 [ 312.849359] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 312.854188] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 312.859360] RIP: 0033:0x400f30 [ 312.862544] Code: 01 f0 ff ff 0f 83 b0 0a 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 9d 57 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 84 0a 00 00 c3 48 83 ec 08 e8 3a 01 00 00 [ 312.881436] RSP: 002b:00007ffd05f62478 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 312.889134] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000400f30 [ 312.896389] RDX: 0000000000000001 RSI: 0000000020000280 RDI: 0000000000000003 [ 312.903762] RBP: 0000000000000000 R08: 00000000004002e0 R09: 00000000004002e0 [ 312.911267] R10: 0000000000a73880 R11: 0000000000000246 R12: 0000000000401e40 [ 312.918537] R13: 0000000000401ed0 R14: 0000000000000000 R15: 0000000000000000 [ 312.925803] [ 312.927415] Allocated by task 5702: [ 312.931038] save_stack+0x43/0xd0 [ 312.934497] kasan_kmalloc+0xc7/0xe0 [ 312.938210] kmem_cache_alloc_trace+0x152/0x750 [ 312.942863] __vb2_init_fileio+0x1ce/0xc90 [ 312.947086] __vb2_perform_fileio+0xcfb/0x1210 [ 312.951679] vb2_read+0x3b/0x50 [ 312.954950] vb2_fop_read+0x20a/0x400 [ 312.958793] v4l2_read+0x168/0x220 [ 312.962328] do_iter_read+0x4a3/0x650 [ 312.966116] vfs_readv+0x175/0x1c0 [ 312.969647] do_readv+0x11a/0x310 [ 312.973091] __x64_sys_readv+0x75/0xb0 [ 312.976965] do_syscall_64+0x1b9/0x820 [ 312.980857] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 312.986032] [ 312.987646] Freed by task 5702: [ 312.990917] save_stack+0x43/0xd0 [ 312.994373] __kasan_slab_free+0x102/0x150 [ 312.998592] kasan_slab_free+0xe/0x10 [ 313.002377] kfree+0xcf/0x230 [ 313.005469] __vb2_cleanup_fileio+0xf8/0x160 [ 313.009864] vb2_core_queue_release+0x1e/0x80 [ 313.014355] _vb2_fop_release+0x1d2/0x2b0 [ 313.018496] vb2_fop_release+0x77/0xc0 [ 313.022374] vivid_fop_release+0x18e/0x440 [ 313.026596] v4l2_release+0xfb/0x1a0 [ 313.030317] __fput+0x385/0xa30 [ 313.033608] ____fput+0x15/0x20 [ 313.036900] task_work_run+0x1e8/0x2a0 [ 313.040785] exit_to_usermode_loop+0x318/0x380 [ 313.045421] do_syscall_64+0x6be/0x820 [ 313.049312] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 313.054496] [ 313.056108] The buggy address belongs to the object at ffff8801d7730040 [ 313.056108] which belongs to the cache kmalloc-1k of size 1024 [ 313.068760] The buggy address is located 0 bytes inside of [ 313.068760] 1024-byte region [ffff8801d7730040, ffff8801d7730440) [ 313.080544] The buggy address belongs to the page: [ 313.085456] page:ffffea00075dcc00 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 313.095404] flags: 0x2fffc0000010200(slab|head) [ 313.100058] raw: 02fffc0000010200 ffffea00075dcb88 ffffea00075dde08 ffff8801da800ac0 [ 313.107922] raw: 0000000000000000 ffff8801d7730040 0000000100000007 0000000000000000 [ 313.115780] page dumped because: kasan: bad access detected [ 313.121464] [ 313.123073] Memory state around the buggy address: [ 313.127984] ffff8801d772ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 313.135331] ffff8801d772ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 313.142685] >ffff8801d7730000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 313.150040] ^ [ 313.155472] ffff8801d7730080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 313.162814] ffff8801d7730100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 313.170153] ================================================================== [ 313.177497] Disabling lock debugging due to kernel taint [ 313.183795] Kernel panic - not syncing: panic_on_warn set ... [ 313.183795] [ 313.191167] CPU: 1 PID: 5707 Comm: syz-executor965 Tainted: G B 4.19.0+ #309 [ 313.199637] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 313.208967] Call Trace: [ 313.211539] dump_stack+0x244/0x39d [ 313.215153] ? dump_stack_print_info.cold.1+0x20/0x20 [ 313.220343] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 313.225121] panic+0x238/0x4e7 [ 313.228310] ? add_taint.cold.5+0x16/0x16 [ 313.232465] ? preempt_schedule+0x4d/0x60 [ 313.236626] ? ___preempt_schedule+0x16/0x18 [ 313.241021] ? trace_hardirqs_on+0xb4/0x310 [ 313.245329] kasan_end_report+0x47/0x4f [ 313.249298] kasan_report.cold.8+0x76/0x309 [ 313.253620] ? __vb2_cleanup_fileio+0x13d/0x160 [ 313.258297] __asan_report_store4_noabort+0x17/0x20 [ 313.263308] __vb2_cleanup_fileio+0x13d/0x160 [ 313.267789] vb2_core_queue_release+0x1e/0x80 [ 313.272291] _vb2_fop_release+0x1d2/0x2b0 [ 313.276427] vb2_fop_release+0x77/0xc0 [ 313.280311] vivid_fop_release+0x18e/0x440 [ 313.284566] ? vivid_remove+0x460/0x460 [ 313.288617] ? dev_debug_store+0x140/0x140 [ 313.292836] v4l2_release+0xfb/0x1a0 [ 313.296539] __fput+0x385/0xa30 [ 313.300046] ? get_max_files+0x20/0x20 [ 313.304080] ? trace_hardirqs_on+0xbd/0x310 [ 313.308403] ? kasan_check_read+0x11/0x20 [ 313.312541] ? task_work_run+0x1af/0x2a0 [ 313.316596] ? trace_hardirqs_off_caller+0x310/0x310 [ 313.321714] ? filp_close+0x1cd/0x250 [ 313.325525] ____fput+0x15/0x20 [ 313.328791] task_work_run+0x1e8/0x2a0 [ 313.332666] ? task_work_cancel+0x240/0x240 [ 313.336974] ? copy_fd_bitmaps+0x210/0x210 [ 313.341190] ? do_syscall_64+0x9a/0x820 [ 313.345159] exit_to_usermode_loop+0x318/0x380 [ 313.349747] ? __bpf_trace_sys_exit+0x30/0x30 [ 313.354244] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 313.359775] do_syscall_64+0x6be/0x820 [ 313.363651] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 313.368999] ? syscall_return_slowpath+0x5e0/0x5e0 [ 313.374200] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 313.379038] ? trace_hardirqs_on_caller+0x310/0x310 [ 313.384046] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 313.389269] ? prepare_exit_to_usermode+0x291/0x3b0 [ 313.394300] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 313.399134] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 313.404305] RIP: 0033:0x400f30 [ 313.407489] Code: 01 f0 ff ff 0f 83 b0 0a 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 9d 57 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 84 0a 00 00 c3 48 83 ec 08 e8 3a 01 00 00 [ 313.426447] RSP: 002b:00007ffd05f62478 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 313.434150] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000400f30 [ 313.441398] RDX: 0000000000000001 RSI: 0000000020000280 RDI: 0000000000000003 [ 313.448779] RBP: 0000000000000000 R08: 00000000004002e0 R09: 00000000004002e0 [ 313.456085] R10: 0000000000a73880 R11: 0000000000000246 R12: 0000000000401e40 [ 313.463511] R13: 0000000000401ed0 R14: 0000000000000000 R15: 0000000000000000 [ 313.471787] Kernel Offset: disabled [ 313.475412] Rebooting in 86400 seconds..