Warning: Permanently added '10.128.10.44' (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 [ 43.791917] ================================================================== [ 43.799469] BUG: KASAN: use-after-free in vb2_mmap+0x65f/0x6e0 [ 43.805767] Read of size 8 at addr ffff8801d78aad40 by task syz-executor737/5732 [ 43.813290] [ 43.814922] CPU: 1 PID: 5732 Comm: syz-executor737 Not tainted 4.19.0+ #311 [ 43.822006] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.831371] Call Trace: [ 43.833964] dump_stack+0x244/0x39d [ 43.837588] ? dump_stack_print_info.cold.1+0x20/0x20 [ 43.842765] ? printk+0xa7/0xcf [ 43.846034] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 43.850794] print_address_description.cold.7+0x9/0x1ff [ 43.856165] kasan_report.cold.8+0x242/0x309 [ 43.860559] ? vb2_mmap+0x65f/0x6e0 [ 43.864177] __asan_report_load8_noabort+0x14/0x20 [ 43.869107] vb2_mmap+0x65f/0x6e0 [ 43.872566] ? vb2_poll+0x1d0/0x1d0 [ 43.876183] vb2_fop_mmap+0x4b/0x70 [ 43.879801] v4l2_mmap+0x153/0x200 [ 43.883334] mmap_region+0xe85/0x1cd0 [ 43.887126] ? __x64_sys_brk+0x8b0/0x8b0 [ 43.891195] ? zap_class+0x640/0x640 [ 43.894929] ? mpx_unmapped_area_check+0xd8/0x108 [ 43.899769] ? arch_get_unmapped_area+0x750/0x750 [ 43.904600] ? lock_acquire+0x1ed/0x520 [ 43.908562] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 43.913566] ? cap_mmap_addr+0x52/0x130 [ 43.917527] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.923060] ? security_mmap_addr+0x80/0xa0 [ 43.927386] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.932923] ? get_unmapped_area+0x292/0x3b0 [ 43.937323] do_mmap+0xa22/0x1230 [ 43.940766] ? mmap_region+0x1cd0/0x1cd0 [ 43.944815] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 43.948863] ? down_read_killable+0x150/0x150 [ 43.953348] ? security_mmap_file+0x174/0x1b0 [ 43.957837] vm_mmap_pgoff+0x213/0x2c0 [ 43.961735] ? vma_is_stack_for_current+0xd0/0xd0 [ 43.966581] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.972109] ? security_file_permission+0x1c2/0x220 [ 43.977122] ksys_mmap_pgoff+0x4da/0x660 [ 43.981177] ? do_syscall_64+0x9a/0x820 [ 43.985153] ? find_mergeable_anon_vma+0xd0/0xd0 [ 43.989909] ? trace_hardirqs_on+0xbd/0x310 [ 43.994223] ? __ia32_sys_read+0xb0/0xb0 [ 43.998275] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.003637] ? trace_hardirqs_off_caller+0x310/0x310 [ 44.008748] __x64_sys_mmap+0xe9/0x1b0 [ 44.012639] do_syscall_64+0x1b9/0x820 [ 44.016534] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 44.021909] ? syscall_return_slowpath+0x5e0/0x5e0 [ 44.026830] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.031666] ? trace_hardirqs_on_caller+0x310/0x310 [ 44.036682] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 44.041692] ? prepare_exit_to_usermode+0x291/0x3b0 [ 44.046723] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.051572] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.056748] RIP: 0033:0x444ba9 [ 44.059932] 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 [ 44.078819] RSP: 002b:00007ffd7a91fb08 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 44.086518] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444ba9 [ 44.093779] RDX: 0000000002000002 RSI: 0000000000001000 RDI: 0000000020fff000 [ 44.101036] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 44.108291] R10: 0000000000000013 R11: 0000000000000216 R12: 000000000000aace [ 44.115548] R13: 0000000000401ef0 R14: 0000000000000000 R15: 0000000000000000 [ 44.122812] [ 44.124427] Allocated by task 5733: [ 44.128044] save_stack+0x43/0xd0 [ 44.131500] kasan_kmalloc+0xc7/0xe0 [ 44.135212] __kmalloc+0x15b/0x760 [ 44.138750] __vb2_queue_alloc+0xf7/0xf20 [ 44.142905] vb2_core_reqbufs+0x971/0x1040 [ 44.147148] __vb2_init_fileio+0x344/0xc90 [ 44.151366] __vb2_perform_fileio+0xcfb/0x1210 [ 44.155931] vb2_write+0x38/0x50 [ 44.159283] vb2_fop_write+0x20a/0x400 [ 44.163156] v4l2_write+0x168/0x220 [ 44.166778] __vfs_write+0x119/0x9f0 [ 44.170491] vfs_write+0x1fc/0x560 [ 44.174015] ksys_write+0x101/0x260 [ 44.177626] __x64_sys_write+0x73/0xb0 [ 44.181507] do_syscall_64+0x1b9/0x820 [ 44.185395] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.190572] [ 44.192195] Freed by task 5733: [ 44.195464] save_stack+0x43/0xd0 [ 44.198911] __kasan_slab_free+0x102/0x150 [ 44.203142] kasan_slab_free+0xe/0x10 [ 44.206938] kfree+0xcf/0x230 [ 44.210029] __vb2_queue_free+0x5e2/0xa30 [ 44.214164] vb2_core_reqbufs+0x2da/0x1040 [ 44.218382] __vb2_cleanup_fileio+0xf0/0x160 [ 44.222780] vb2_core_queue_release+0x1e/0x80 [ 44.227260] _vb2_fop_release+0x1d2/0x2b0 [ 44.231399] vb2_fop_release+0x77/0xc0 [ 44.235302] vivid_fop_release+0x18e/0x440 [ 44.239539] v4l2_release+0xfb/0x1a0 [ 44.243243] __fput+0x385/0xa30 [ 44.246509] ____fput+0x15/0x20 [ 44.249783] task_work_run+0x1e8/0x2a0 [ 44.253667] exit_to_usermode_loop+0x318/0x380 [ 44.258234] do_syscall_64+0x6be/0x820 [ 44.262128] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.267327] [ 44.268950] The buggy address belongs to the object at ffff8801d78aad40 [ 44.268950] which belongs to the cache kmalloc-512 of size 512 [ 44.281607] The buggy address is located 0 bytes inside of [ 44.281607] 512-byte region [ffff8801d78aad40, ffff8801d78aaf40) [ 44.293289] The buggy address belongs to the page: [ 44.298217] page:ffffea00075e2a80 count:1 mapcount:0 mapping:ffff8801da800940 index:0xffff8801d78aaac0 [ 44.307661] flags: 0x2fffc0000000200(slab) [ 44.311907] raw: 02fffc0000000200 ffffea0006f6f308 ffffea00070b3988 ffff8801da800940 [ 44.319800] raw: ffff8801d78aaac0 ffff8801d78aa0c0 0000000100000005 0000000000000000 [ 44.327676] page dumped because: kasan: bad access detected [ 44.333374] [ 44.335004] Memory state around the buggy address: [ 44.339926] ffff8801d78aac00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.347270] ffff8801d78aac80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 44.354620] >ffff8801d78aad00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 44.361977] ^ [ 44.367414] ffff8801d78aad80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.374756] ffff8801d78aae00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.382099] ================================================================== [ 44.389454] Disabling lock debugging due to kernel taint [ 44.395784] Kernel panic - not syncing: panic_on_warn set ... [ 44.395784] [ 44.403162] CPU: 1 PID: 5732 Comm: syz-executor737 Tainted: G B 4.19.0+ #311 [ 44.411629] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.420971] Call Trace: [ 44.423591] dump_stack+0x244/0x39d [ 44.427207] ? dump_stack_print_info.cold.1+0x20/0x20 [ 44.432385] panic+0x238/0x4e7 [ 44.435571] ? add_taint.cold.5+0x16/0x16 [ 44.439718] ? preempt_schedule+0x4d/0x60 [ 44.443867] ? ___preempt_schedule+0x16/0x18 [ 44.448272] ? trace_hardirqs_on+0xb4/0x310 [ 44.452579] kasan_end_report+0x47/0x4f [ 44.456547] kasan_report.cold.8+0x76/0x309 [ 44.460874] ? vb2_mmap+0x65f/0x6e0 [ 44.464512] __asan_report_load8_noabort+0x14/0x20 [ 44.469427] vb2_mmap+0x65f/0x6e0 [ 44.472867] ? vb2_poll+0x1d0/0x1d0 [ 44.476494] vb2_fop_mmap+0x4b/0x70 [ 44.480120] v4l2_mmap+0x153/0x200 [ 44.483647] mmap_region+0xe85/0x1cd0 [ 44.487438] ? __x64_sys_brk+0x8b0/0x8b0 [ 44.491487] ? zap_class+0x640/0x640 [ 44.495192] ? mpx_unmapped_area_check+0xd8/0x108 [ 44.500024] ? arch_get_unmapped_area+0x750/0x750 [ 44.504854] ? lock_acquire+0x1ed/0x520 [ 44.508822] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 44.513833] ? cap_mmap_addr+0x52/0x130 [ 44.517796] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.523336] ? security_mmap_addr+0x80/0xa0 [ 44.527657] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 44.533203] ? get_unmapped_area+0x292/0x3b0 [ 44.537622] do_mmap+0xa22/0x1230 [ 44.541081] ? mmap_region+0x1cd0/0x1cd0 [ 44.545129] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 44.549174] ? down_read_killable+0x150/0x150 [ 44.553656] ? security_mmap_file+0x174/0x1b0 [ 44.558137] vm_mmap_pgoff+0x213/0x2c0 [ 44.562024] ? vma_is_stack_for_current+0xd0/0xd0 [ 44.566866] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.572421] ? security_file_permission+0x1c2/0x220 [ 44.577430] ksys_mmap_pgoff+0x4da/0x660 [ 44.581477] ? do_syscall_64+0x9a/0x820 [ 44.585448] ? find_mergeable_anon_vma+0xd0/0xd0 [ 44.590201] ? trace_hardirqs_on+0xbd/0x310 [ 44.594509] ? __ia32_sys_read+0xb0/0xb0 [ 44.598557] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.603916] ? trace_hardirqs_off_caller+0x310/0x310 [ 44.609006] __x64_sys_mmap+0xe9/0x1b0 [ 44.612883] do_syscall_64+0x1b9/0x820 [ 44.616783] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 44.622143] ? syscall_return_slowpath+0x5e0/0x5e0 [ 44.627069] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.631908] ? trace_hardirqs_on_caller+0x310/0x310 [ 44.636920] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 44.641943] ? prepare_exit_to_usermode+0x291/0x3b0 [ 44.646946] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.651778] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 44.656952] RIP: 0033:0x444ba9 [ 44.660145] 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 [ 44.679029] RSP: 002b:00007ffd7a91fb08 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 44.686721] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444ba9 [ 44.693975] RDX: 0000000002000002 RSI: 0000000000001000 RDI: 0000000020fff000 [ 44.701232] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 44.708489] R10: 0000000000000013 R11: 0000000000000216 R12: 000000000000aace [ 44.715743] R13: 0000000000401ef0 R14: 0000000000000000 R15: 0000000000000000 [ 44.723996] Kernel Offset: disabled [ 44.727620] Rebooting in 86400 seconds..