Warning: Permanently added '10.128.0.3' (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 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 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 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 executing program executing program executing program executing program syzkaller login: [ 49.629042] ================================================================== [ 49.636716] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 49.642674] Read of size 8 at addr ffff8881c0ef1200 by task syz-executor735/6231 [ 49.650185] [ 49.651802] CPU: 1 PID: 6231 Comm: syz-executor735 Not tainted 4.20.0-rc4+ #353 [ 49.659228] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.668715] Call Trace: [ 49.671302] dump_stack+0x244/0x39d [ 49.674917] ? dump_stack_print_info.cold.1+0x20/0x20 [ 49.680096] ? printk+0xa7/0xcf [ 49.683416] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 49.688166] print_address_description.cold.7+0x9/0x1ff [ 49.693519] kasan_report.cold.8+0x242/0x309 [ 49.697916] ? vb2_mmap+0x662/0x6f0 [ 49.701584] __asan_report_load8_noabort+0x14/0x20 [ 49.706505] vb2_mmap+0x662/0x6f0 [ 49.709952] ? vb2_poll+0x1d0/0x1d0 [ 49.713564] vb2_fop_mmap+0x4b/0x70 [ 49.717176] v4l2_mmap+0x153/0x200 [ 49.720703] mmap_region+0xe85/0x1cd0 [ 49.724504] ? __x64_sys_brk+0x8b0/0x8b0 [ 49.728561] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 49.733823] ? rcu_softirq_qs+0x20/0x20 [ 49.737805] ? mpx_unmapped_area_check+0xd8/0x108 [ 49.742646] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 49.748093] ? arch_get_unmapped_area+0x750/0x750 [ 49.752929] ? lock_acquire+0x1ed/0x520 [ 49.756931] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 49.761937] ? cap_mmap_addr+0x52/0x130 [ 49.765894] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.771423] ? security_mmap_addr+0x80/0xa0 [ 49.775738] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 49.781407] ? get_unmapped_area+0x292/0x3b0 [ 49.785804] do_mmap+0xa22/0x1230 [ 49.789243] ? mmap_region+0x1cd0/0x1cd0 [ 49.793289] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 49.797340] ? down_read_killable+0x150/0x150 [ 49.801833] ? security_mmap_file+0x174/0x1b0 [ 49.806321] vm_mmap_pgoff+0x213/0x2c0 [ 49.810200] ? vma_is_stack_for_current+0xd0/0xd0 [ 49.815029] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 49.820553] ? __fget_light+0x2e9/0x430 [ 49.824515] ? fget_raw+0x20/0x20 [ 49.827959] ? up_read+0x225/0x2c0 [ 49.831494] ksys_mmap_pgoff+0x4da/0x660 [ 49.835553] ? do_syscall_64+0x9a/0x820 [ 49.839524] ? find_mergeable_anon_vma+0xd0/0xd0 [ 49.844270] ? trace_hardirqs_on+0xbd/0x310 [ 49.848582] ? security_file_ioctl+0x94/0xc0 [ 49.852981] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 49.858335] ? trace_hardirqs_off_caller+0x310/0x310 [ 49.863441] __x64_sys_mmap+0xe9/0x1b0 [ 49.867323] do_syscall_64+0x1b9/0x820 [ 49.871196] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 49.876549] ? syscall_return_slowpath+0x5e0/0x5e0 [ 49.881473] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 49.886305] ? trace_hardirqs_on_caller+0x310/0x310 [ 49.891310] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 49.896312] ? prepare_exit_to_usermode+0x291/0x3b0 [ 49.901321] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 49.906171] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 49.911357] RIP: 0033:0x444c89 [ 49.914551] 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 [ 49.933439] RSP: 002b:00007ffcba4755d8 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 49.941305] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 49.948565] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 49.955819] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 49.963073] R10: 0000000000000011 R11: 0000000000000216 R12: 000000000000c1b4 [ 49.970324] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 49.977588] [ 49.979200] Allocated by task 6233: [ 49.982815] save_stack+0x43/0xd0 [ 49.986253] kasan_kmalloc+0xc7/0xe0 [ 49.989955] __kmalloc+0x15b/0x760 [ 49.993569] __vb2_queue_alloc+0xf7/0xf90 [ 49.997699] vb2_core_create_bufs+0x401/0x8c0 [ 50.002175] vb2_create_bufs+0x3c6/0x7f0 [ 50.006233] vb2_ioctl_create_bufs+0x25e/0x3d0 [ 50.010811] v4l_create_bufs+0x152/0x230 [ 50.014857] __video_do_ioctl+0x8b1/0x1050 [ 50.019075] video_usercopy+0x5c1/0x1760 [ 50.023126] video_ioctl2+0x2c/0x33 [ 50.026734] v4l2_ioctl+0x154/0x1b0 [ 50.030429] do_vfs_ioctl+0x1de/0x1790 [ 50.034303] ksys_ioctl+0xa9/0xd0 [ 50.037739] __x64_sys_ioctl+0x73/0xb0 [ 50.041613] do_syscall_64+0x1b9/0x820 [ 50.045510] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.050684] [ 50.052295] Freed by task 6233: [ 50.055559] save_stack+0x43/0xd0 [ 50.059010] __kasan_slab_free+0x102/0x150 [ 50.063243] kasan_slab_free+0xe/0x10 [ 50.067026] kfree+0xcf/0x230 [ 50.070120] __vb2_queue_free+0x5e2/0xa30 [ 50.074252] vb2_core_queue_release+0x62/0x80 [ 50.078740] _vb2_fop_release+0x1d2/0x2b0 [ 50.082874] vb2_fop_release+0x77/0xc0 [ 50.086750] vivid_fop_release+0x18e/0x440 [ 50.091210] v4l2_release+0x224/0x3a0 [ 50.095007] __fput+0x385/0xa30 [ 50.098271] ____fput+0x15/0x20 [ 50.101537] task_work_run+0x1e8/0x2a0 [ 50.105409] do_exit+0x1ad6/0x26d0 [ 50.108941] do_group_exit+0x177/0x440 [ 50.112815] __x64_sys_exit_group+0x3e/0x50 [ 50.117195] do_syscall_64+0x1b9/0x820 [ 50.121073] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.126238] [ 50.127850] The buggy address belongs to the object at ffff8881c0ef1200 [ 50.127850] which belongs to the cache kmalloc-1k of size 1024 [ 50.140615] The buggy address is located 0 bytes inside of [ 50.140615] 1024-byte region [ffff8881c0ef1200, ffff8881c0ef1600) [ 50.152393] The buggy address belongs to the page: [ 50.157310] page:ffffea000703bc00 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0x0 compound_mapcount: 0 [ 50.167263] flags: 0x2fffc0000010200(slab|head) [ 50.171963] raw: 02fffc0000010200 ffffea000703ba88 ffffea0007021588 ffff8881da800ac0 [ 50.179840] raw: 0000000000000000 ffff8881c0ef0000 0000000100000007 0000000000000000 [ 50.187705] page dumped because: kasan: bad access detected [ 50.193395] [ 50.195004] Memory state around the buggy address: [ 50.199914] ffff8881c0ef1100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.207265] ffff8881c0ef1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.214755] >ffff8881c0ef1200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.222137] ^ [ 50.225713] ffff8881c0ef1280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.233054] ffff8881c0ef1300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.240397] ================================================================== [ 50.247738] Disabling lock debugging due to kernel taint [ 50.253765] Kernel panic - not syncing: panic_on_warn set ... [ 50.259652] CPU: 1 PID: 6231 Comm: syz-executor735 Tainted: G B 4.20.0-rc4+ #353 [ 50.268466] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 50.277799] Call Trace: [ 50.280380] dump_stack+0x244/0x39d [ 50.283996] ? dump_stack_print_info.cold.1+0x20/0x20 [ 50.289182] panic+0x2ad/0x55c [ 50.292363] ? add_taint.cold.5+0x16/0x16 [ 50.296576] ? preempt_schedule+0x4d/0x60 [ 50.300950] ? ___preempt_schedule+0x16/0x18 [ 50.305351] ? trace_hardirqs_on+0xb4/0x310 [ 50.309660] kasan_end_report+0x47/0x4f [ 50.313619] kasan_report.cold.8+0x76/0x309 [ 50.317929] ? vb2_mmap+0x662/0x6f0 [ 50.321539] __asan_report_load8_noabort+0x14/0x20 [ 50.326452] vb2_mmap+0x662/0x6f0 [ 50.329891] ? vb2_poll+0x1d0/0x1d0 [ 50.333503] vb2_fop_mmap+0x4b/0x70 [ 50.337121] v4l2_mmap+0x153/0x200 [ 50.340647] mmap_region+0xe85/0x1cd0 [ 50.344433] ? __x64_sys_brk+0x8b0/0x8b0 [ 50.348480] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 50.353758] ? rcu_softirq_qs+0x20/0x20 [ 50.357725] ? mpx_unmapped_area_check+0xd8/0x108 [ 50.362554] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 50.367991] ? arch_get_unmapped_area+0x750/0x750 [ 50.372845] ? lock_acquire+0x1ed/0x520 [ 50.376984] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 50.381998] ? cap_mmap_addr+0x52/0x130 [ 50.385955] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 50.391474] ? security_mmap_addr+0x80/0xa0 [ 50.395779] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 50.401367] ? get_unmapped_area+0x292/0x3b0 [ 50.405765] do_mmap+0xa22/0x1230 [ 50.409200] ? mmap_region+0x1cd0/0x1cd0 [ 50.413245] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 50.417293] ? down_read_killable+0x150/0x150 [ 50.421778] ? security_mmap_file+0x174/0x1b0 [ 50.426260] vm_mmap_pgoff+0x213/0x2c0 [ 50.430131] ? vma_is_stack_for_current+0xd0/0xd0 [ 50.434961] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 50.440488] ? __fget_light+0x2e9/0x430 [ 50.444472] ? fget_raw+0x20/0x20 [ 50.447961] ? up_read+0x225/0x2c0 [ 50.451495] ksys_mmap_pgoff+0x4da/0x660 [ 50.455547] ? do_syscall_64+0x9a/0x820 [ 50.459509] ? find_mergeable_anon_vma+0xd0/0xd0 [ 50.464249] ? trace_hardirqs_on+0xbd/0x310 [ 50.468551] ? security_file_ioctl+0x94/0xc0 [ 50.472942] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.478292] ? trace_hardirqs_off_caller+0x310/0x310 [ 50.483390] __x64_sys_mmap+0xe9/0x1b0 [ 50.487262] do_syscall_64+0x1b9/0x820 [ 50.491136] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 50.496485] ? syscall_return_slowpath+0x5e0/0x5e0 [ 50.501400] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 50.506228] ? trace_hardirqs_on_caller+0x310/0x310 [ 50.511283] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 50.516298] ? prepare_exit_to_usermode+0x291/0x3b0 [ 50.521313] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 50.526157] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 50.531341] RIP: 0033:0x444c89 [ 50.534530] 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 [ 50.553420] RSP: 002b:00007ffcba4755d8 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 50.561109] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 50.568364] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 50.575633] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 50.582888] R10: 0000000000000011 R11: 0000000000000216 R12: 000000000000c1b4 [ 50.590135] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 50.598462] Kernel Offset: disabled [ 50.602087] Rebooting in 86400 seconds..