Warning: Permanently added '10.128.0.52' (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 syzkaller login: [ 44.294242] ================================================================== [ 44.301838] BUG: KASAN: use-after-free in vb2_mmap+0x65f/0x6e0 [ 44.307797] Read of size 8 at addr ffff8801be5632c0 by task syz-executor580/5670 [ 44.315310] [ 44.316926] CPU: 1 PID: 5670 Comm: syz-executor580 Not tainted 4.19.0+ #214 [ 44.324005] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.333347] Call Trace: [ 44.335931] dump_stack+0x244/0x39d [ 44.339551] ? dump_stack_print_info.cold.1+0x20/0x20 [ 44.344726] ? printk+0xa7/0xcf [ 44.347999] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 44.352753] print_address_description.cold.7+0x9/0x1ff [ 44.358108] kasan_report.cold.8+0x242/0x309 [ 44.362504] ? vb2_mmap+0x65f/0x6e0 [ 44.366117] __asan_report_load8_noabort+0x14/0x20 [ 44.371030] vb2_mmap+0x65f/0x6e0 [ 44.374619] ? vb2_poll+0x1d0/0x1d0 [ 44.378286] vb2_fop_mmap+0x4b/0x70 [ 44.381909] v4l2_mmap+0x153/0x200 [ 44.385581] mmap_region+0xe85/0x1cd0 [ 44.389375] ? __x64_sys_brk+0x8b0/0x8b0 [ 44.393424] ? zap_class+0x640/0x640 [ 44.397132] ? __kernel_text_address+0xd/0x40 [ 44.401613] ? mpx_unmapped_area_check+0xd8/0x108 [ 44.406449] ? arch_get_unmapped_area+0x750/0x750 [ 44.411340] ? lock_acquire+0x1ed/0x520 [ 44.415310] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 44.420315] ? cap_mmap_addr+0x52/0x130 [ 44.424276] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.429797] ? security_mmap_addr+0x80/0xa0 [ 44.434105] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 44.439698] ? get_unmapped_area+0x292/0x3b0 [ 44.444100] do_mmap+0xa22/0x1230 [ 44.447665] ? mmap_region+0x1cd0/0x1cd0 [ 44.451712] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 44.455759] ? down_read_killable+0x150/0x150 [ 44.460239] ? security_mmap_file+0x174/0x1b0 [ 44.464721] vm_mmap_pgoff+0x213/0x2c0 [ 44.468601] ? vma_is_stack_for_current+0xd0/0xd0 [ 44.473428] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 44.478949] ? security_file_permission+0x1c2/0x220 [ 44.483956] ksys_mmap_pgoff+0x4da/0x660 [ 44.488005] ? do_fast_syscall_32+0x150/0xfb2 [ 44.492490] ? find_mergeable_anon_vma+0xd0/0xd0 [ 44.497231] ? trace_hardirqs_on+0xbd/0x310 [ 44.501537] ? __ia32_sys_read+0xb0/0xb0 [ 44.505587] ? entry_SYSENTER_compat+0x70/0x7f [ 44.510156] ? trace_hardirqs_off_caller+0x310/0x310 [ 44.515243] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 44.519736] do_fast_syscall_32+0x34d/0xfb2 [ 44.524102] ? do_int80_syscall_32+0x890/0x890 [ 44.528679] ? entry_SYSENTER_compat+0x68/0x7f [ 44.533251] ? trace_hardirqs_off_caller+0xbb/0x310 [ 44.538254] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.543149] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.547983] ? trace_hardirqs_on_caller+0x310/0x310 [ 44.552986] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 44.557987] ? prepare_exit_to_usermode+0x291/0x3b0 [ 44.562998] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 44.567832] entry_SYSENTER_compat+0x70/0x7f [ 44.572226] RIP: 0023:0xf7ff1a29 [ 44.575576] Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 [ 44.594460] RSP: 002b:00000000fff016bc EFLAGS: 00000286 ORIG_RAX: 00000000000000c0 [ 44.602155] RAX: ffffffffffffffda RBX: 0000000020fff000 RCX: 0000000000001000 [ 44.609483] RDX: 0000000002000002 RSI: 0000000000000013 RDI: 0000000000000003 [ 44.616743] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 44.623994] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 44.631291] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 44.638567] [ 44.640179] Allocated by task 5669: [ 44.643797] save_stack+0x43/0xd0 [ 44.647235] kasan_kmalloc+0xc7/0xe0 [ 44.650931] __kmalloc+0x15b/0x760 [ 44.654453] __vb2_queue_alloc+0xf7/0xf20 [ 44.658591] vb2_core_reqbufs+0x971/0x1040 [ 44.662807] __vb2_init_fileio+0x344/0xc90 [ 44.667028] __vb2_perform_fileio+0xcfb/0x1210 [ 44.671671] vb2_write+0x38/0x50 [ 44.675030] vb2_fop_write+0x20a/0x400 [ 44.678901] v4l2_write+0x168/0x220 [ 44.682509] __vfs_write+0x119/0x9f0 [ 44.686204] vfs_write+0x1fc/0x560 [ 44.689723] ksys_write+0x101/0x260 [ 44.693337] __ia32_sys_write+0x71/0xb0 [ 44.697296] do_fast_syscall_32+0x34d/0xfb2 [ 44.701603] entry_SYSENTER_compat+0x70/0x7f [ 44.706057] [ 44.707751] Freed by task 5669: [ 44.711024] save_stack+0x43/0xd0 [ 44.714461] __kasan_slab_free+0x102/0x150 [ 44.718688] kasan_slab_free+0xe/0x10 [ 44.722482] kfree+0xcf/0x230 [ 44.725574] __vb2_queue_free+0x5e2/0xa30 [ 44.729705] vb2_core_reqbufs+0x2da/0x1040 [ 44.733926] __vb2_cleanup_fileio+0xf0/0x160 [ 44.738324] vb2_core_queue_release+0x1e/0x80 [ 44.742813] _vb2_fop_release+0x1d2/0x2b0 [ 44.746951] vb2_fop_release+0x77/0xc0 [ 44.750822] vivid_fop_release+0x18e/0x440 [ 44.755039] v4l2_release+0xfb/0x1a0 [ 44.758745] __fput+0x385/0xa30 [ 44.762015] ____fput+0x15/0x20 [ 44.765284] task_work_run+0x1e8/0x2a0 [ 44.769155] exit_to_usermode_loop+0x318/0x380 [ 44.773719] do_fast_syscall_32+0xcd5/0xfb2 [ 44.778027] entry_SYSENTER_compat+0x70/0x7f [ 44.782412] [ 44.784022] The buggy address belongs to the object at ffff8801be5632c0 [ 44.784022] which belongs to the cache kmalloc-512 of size 512 [ 44.796696] The buggy address is located 0 bytes inside of [ 44.796696] 512-byte region [ffff8801be5632c0, ffff8801be5634c0) [ 44.808387] The buggy address belongs to the page: [ 44.813308] page:ffffea0006f958c0 count:1 mapcount:0 mapping:ffff8801da800940 index:0xffff8801be563a40 [ 44.822737] flags: 0x2fffc0000000200(slab) [ 44.826958] raw: 02fffc0000000200 ffffea0006f89488 ffffea0006f95b08 ffff8801da800940 [ 44.834824] raw: ffff8801be563a40 ffff8801be563040 0000000100000005 0000000000000000 [ 44.842731] page dumped because: kasan: bad access detected [ 44.848527] [ 44.850134] Memory state around the buggy address: [ 44.855048] ffff8801be563180: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc [ 44.862440] ffff8801be563200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.869798] >ffff8801be563280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 44.877135] ^ [ 44.882564] ffff8801be563300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.889916] ffff8801be563380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.897258] ================================================================== [ 44.904596] Disabling lock debugging due to kernel taint [ 44.910728] Kernel panic - not syncing: panic_on_warn set ... [ 44.910728] [ 44.918093] CPU: 1 PID: 5670 Comm: syz-executor580 Tainted: G B 4.19.0+ #214 [ 44.926558] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 44.935892] Call Trace: [ 44.938470] dump_stack+0x244/0x39d [ 44.942084] ? dump_stack_print_info.cold.1+0x20/0x20 [ 44.947262] panic+0x238/0x4e7 [ 44.950436] ? add_taint.cold.5+0x16/0x16 [ 44.954565] ? preempt_schedule+0x4d/0x60 [ 44.958694] ? ___preempt_schedule+0x16/0x18 [ 44.963087] ? trace_hardirqs_on+0xb4/0x310 [ 44.967390] kasan_end_report+0x47/0x4f [ 44.971348] kasan_report.cold.8+0x76/0x309 [ 44.975652] ? vb2_mmap+0x65f/0x6e0 [ 44.979263] __asan_report_load8_noabort+0x14/0x20 [ 44.984171] vb2_mmap+0x65f/0x6e0 [ 44.987666] ? vb2_poll+0x1d0/0x1d0 [ 44.991282] vb2_fop_mmap+0x4b/0x70 [ 44.994894] v4l2_mmap+0x153/0x200 [ 44.998419] mmap_region+0xe85/0x1cd0 [ 45.002204] ? __x64_sys_brk+0x8b0/0x8b0 [ 45.006245] ? zap_class+0x640/0x640 [ 45.009947] ? __kernel_text_address+0xd/0x40 [ 45.014428] ? mpx_unmapped_area_check+0xd8/0x108 [ 45.019309] ? arch_get_unmapped_area+0x750/0x750 [ 45.024144] ? lock_acquire+0x1ed/0x520 [ 45.028104] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 45.033102] ? cap_mmap_addr+0x52/0x130 [ 45.037061] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.042587] ? security_mmap_addr+0x80/0xa0 [ 45.046899] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.052421] ? get_unmapped_area+0x292/0x3b0 [ 45.056821] do_mmap+0xa22/0x1230 [ 45.060269] ? mmap_region+0x1cd0/0x1cd0 [ 45.064317] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 45.068404] ? down_read_killable+0x150/0x150 [ 45.072889] ? security_mmap_file+0x174/0x1b0 [ 45.077378] vm_mmap_pgoff+0x213/0x2c0 [ 45.081256] ? vma_is_stack_for_current+0xd0/0xd0 [ 45.086084] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.091606] ? security_file_permission+0x1c2/0x220 [ 45.096609] ksys_mmap_pgoff+0x4da/0x660 [ 45.100655] ? do_fast_syscall_32+0x150/0xfb2 [ 45.105132] ? find_mergeable_anon_vma+0xd0/0xd0 [ 45.109874] ? trace_hardirqs_on+0xbd/0x310 [ 45.114181] ? __ia32_sys_read+0xb0/0xb0 [ 45.118235] ? entry_SYSENTER_compat+0x70/0x7f [ 45.122804] ? trace_hardirqs_off_caller+0x310/0x310 [ 45.127892] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 45.132374] do_fast_syscall_32+0x34d/0xfb2 [ 45.136682] ? do_int80_syscall_32+0x890/0x890 [ 45.141252] ? entry_SYSENTER_compat+0x68/0x7f [ 45.145822] ? trace_hardirqs_off_caller+0xbb/0x310 [ 45.150821] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.155649] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.160480] ? trace_hardirqs_on_caller+0x310/0x310 [ 45.165482] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 45.170500] ? prepare_exit_to_usermode+0x291/0x3b0 [ 45.175556] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.180397] entry_SYSENTER_compat+0x70/0x7f [ 45.184791] RIP: 0023:0xf7ff1a29 [ 45.188143] Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 [ 45.207157] RSP: 002b:00000000fff016bc EFLAGS: 00000286 ORIG_RAX: 00000000000000c0 [ 45.214910] RAX: ffffffffffffffda RBX: 0000000020fff000 RCX: 0000000000001000 [ 45.222181] RDX: 0000000002000002 RSI: 0000000000000013 RDI: 0000000000000003 [ 45.229511] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 45.236858] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 45.244125] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.252388] Kernel Offset: disabled [ 45.256016] Rebooting in 86400 seconds..