Warning: Permanently added '10.128.10.33' (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 syzkaller login: [ 55.243298] ================================================================== [ 55.250882] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 55.256849] Read of size 8 at addr ffff8801b43cd200 by task syz-executor269/6009 [ 55.264362] [ 55.266000] CPU: 1 PID: 6009 Comm: syz-executor269 Not tainted 4.20.0-rc1-next-20181109+ #110 [ 55.274642] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.283979] Call Trace: [ 55.286560] dump_stack+0x244/0x39d [ 55.290299] ? dump_stack_print_info.cold.1+0x20/0x20 [ 55.295482] ? printk+0xa7/0xcf [ 55.298749] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 55.303498] print_address_description.cold.7+0x9/0x1ff [ 55.308848] kasan_report.cold.8+0x242/0x309 [ 55.313239] ? vb2_mmap+0x662/0x6f0 [ 55.316859] __asan_report_load8_noabort+0x14/0x20 [ 55.321789] vb2_mmap+0x662/0x6f0 [ 55.325313] ? vb2_poll+0x1d0/0x1d0 [ 55.328949] vb2_fop_mmap+0x4b/0x70 [ 55.332713] v4l2_mmap+0x153/0x200 [ 55.336266] mmap_region+0xe85/0x1cd0 [ 55.340060] ? __x64_sys_brk+0x8b0/0x8b0 [ 55.344111] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 55.349378] ? rcu_read_unlock_special+0x370/0x370 [ 55.354301] ? mpx_unmapped_area_check+0xd8/0x108 [ 55.359150] ? refcount_dec_if_one+0x180/0x180 [ 55.363742] ? arch_get_unmapped_area+0x750/0x750 [ 55.368578] ? lock_acquire+0x1ed/0x520 [ 55.372540] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 55.377542] ? cap_mmap_addr+0x52/0x130 [ 55.381505] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.387030] ? security_mmap_addr+0x80/0xa0 [ 55.391346] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 55.396877] ? get_unmapped_area+0x292/0x3b0 [ 55.401275] do_mmap+0xa22/0x1230 [ 55.404722] ? mmap_region+0x1cd0/0x1cd0 [ 55.408779] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 55.412842] ? down_read_killable+0x150/0x150 [ 55.417326] ? security_mmap_file+0x174/0x1b0 [ 55.421813] vm_mmap_pgoff+0x213/0x2c0 [ 55.425693] ? vma_is_stack_for_current+0xd0/0xd0 [ 55.430548] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.436202] ? __fget_light+0x2e9/0x430 [ 55.440171] ? fget_raw+0x20/0x20 [ 55.443623] ? up_read+0x225/0x2c0 [ 55.447153] ksys_mmap_pgoff+0x4da/0x660 [ 55.451406] ? do_syscall_64+0x9a/0x820 [ 55.455384] ? find_mergeable_anon_vma+0xd0/0xd0 [ 55.460150] ? trace_hardirqs_on+0xbd/0x310 [ 55.464456] ? security_file_ioctl+0x94/0xc0 [ 55.468863] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.474351] ? trace_hardirqs_off_caller+0x300/0x300 [ 55.479454] __x64_sys_mmap+0xe9/0x1b0 [ 55.483334] do_syscall_64+0x1b9/0x820 [ 55.487209] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 55.492573] ? syscall_return_slowpath+0x5e0/0x5e0 [ 55.497502] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 55.502330] ? trace_hardirqs_on_caller+0x310/0x310 [ 55.507348] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 55.512373] ? prepare_exit_to_usermode+0x291/0x3b0 [ 55.517488] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 55.522589] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.528003] RIP: 0033:0x444c89 [ 55.531197] 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 [ 55.550099] RSP: 002b:00007fffa898e688 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 55.558082] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 55.565351] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 55.572614] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 55.580106] R10: 0000000000000011 R11: 0000000000000212 R12: 000000000000d793 [ 55.587381] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 55.594652] [ 55.596272] Allocated by task 6007: [ 55.599950] save_stack+0x43/0xd0 [ 55.603489] kasan_kmalloc+0xc7/0xe0 [ 55.607208] __kmalloc+0x15b/0x760 [ 55.610744] __vb2_queue_alloc+0xf7/0xf90 [ 55.614873] vb2_core_create_bufs+0x401/0x8c0 [ 55.619470] vb2_create_bufs+0x3c6/0x7f0 [ 55.623519] vb2_ioctl_create_bufs+0x25e/0x3d0 [ 55.628086] v4l_create_bufs+0x152/0x230 [ 55.632261] __video_do_ioctl+0x8b1/0x1050 [ 55.636493] video_usercopy+0x5c1/0x1750 [ 55.640662] video_ioctl2+0x2c/0x33 [ 55.644273] v4l2_ioctl+0x154/0x1b0 [ 55.647900] do_vfs_ioctl+0x1de/0x1790 [ 55.651774] ksys_ioctl+0xa9/0xd0 [ 55.655214] __x64_sys_ioctl+0x73/0xb0 [ 55.659083] do_syscall_64+0x1b9/0x820 [ 55.662992] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.668374] [ 55.670003] Freed by task 6007: [ 55.673283] save_stack+0x43/0xd0 [ 55.676948] __kasan_slab_free+0x102/0x150 [ 55.681185] kasan_slab_free+0xe/0x10 [ 55.684980] kfree+0xcf/0x230 [ 55.688176] __vb2_queue_free+0x5e2/0xa30 [ 55.692310] vb2_core_queue_release+0x62/0x80 [ 55.696794] _vb2_fop_release+0x1d2/0x2b0 [ 55.700928] vb2_fop_release+0x77/0xc0 [ 55.704975] vivid_fop_release+0x18e/0x440 [ 55.709202] v4l2_release+0x224/0x3a0 [ 55.713008] __fput+0x3bc/0xa70 [ 55.716274] ____fput+0x15/0x20 [ 55.719539] task_work_run+0x1e8/0x2a0 [ 55.723427] do_exit+0x1a48/0x2620 [ 55.726962] do_group_exit+0x177/0x440 [ 55.730850] __x64_sys_exit_group+0x3e/0x50 [ 55.735165] do_syscall_64+0x1b9/0x820 [ 55.739059] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.744324] [ 55.745935] The buggy address belongs to the object at ffff8801b43cd200 [ 55.745935] which belongs to the cache kmalloc-1k of size 1024 [ 55.758702] The buggy address is located 0 bytes inside of [ 55.758702] 1024-byte region [ffff8801b43cd200, ffff8801b43cd600) [ 55.770565] The buggy address belongs to the page: [ 55.775479] page:ffffea0006d0f300 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 55.785460] flags: 0x2fffc0000010200(slab|head) [ 55.790114] raw: 02fffc0000010200 ffffea00070a9b08 ffffea0007087a08 ffff8801da800ac0 [ 55.797979] raw: 0000000000000000 ffff8801b43cc000 0000000100000007 0000000000000000 [ 55.805839] page dumped because: kasan: bad access detected [ 55.811527] [ 55.813151] Memory state around the buggy address: [ 55.818070] ffff8801b43cd100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.825408] ffff8801b43cd180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 55.832830] >ffff8801b43cd200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.840172] ^ [ 55.843534] ffff8801b43cd280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.850883] ffff8801b43cd300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 55.858223] ================================================================== [ 55.865698] Disabling lock debugging due to kernel taint [ 55.873196] Kernel panic - not syncing: panic_on_warn set ... [ 55.879131] CPU: 0 PID: 6009 Comm: syz-executor269 Tainted: G B 4.20.0-rc1-next-20181109+ #110 [ 55.889161] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.898600] Call Trace: [ 55.901167] dump_stack+0x244/0x39d [ 55.904775] ? dump_stack_print_info.cold.1+0x20/0x20 [ 55.909954] panic+0x2ad/0x55c [ 55.913340] ? add_taint.cold.5+0x16/0x16 [ 55.917467] ? preempt_schedule+0x4d/0x60 [ 55.921593] ? ___preempt_schedule+0x16/0x18 [ 55.925982] ? trace_hardirqs_on+0xb4/0x310 [ 55.930285] kasan_end_report+0x47/0x4f [ 55.934241] kasan_report.cold.8+0x76/0x309 [ 55.938550] ? vb2_mmap+0x662/0x6f0 [ 55.942334] __asan_report_load8_noabort+0x14/0x20 [ 55.947354] vb2_mmap+0x662/0x6f0 [ 55.950794] ? vb2_poll+0x1d0/0x1d0 [ 55.954522] vb2_fop_mmap+0x4b/0x70 [ 55.958142] v4l2_mmap+0x153/0x200 [ 55.961666] mmap_region+0xe85/0x1cd0 [ 55.965466] ? __x64_sys_brk+0x8b0/0x8b0 [ 55.969508] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 55.974796] ? rcu_read_unlock_special+0x370/0x370 [ 55.979716] ? mpx_unmapped_area_check+0xd8/0x108 [ 55.984563] ? refcount_dec_if_one+0x180/0x180 [ 55.989284] ? arch_get_unmapped_area+0x750/0x750 [ 55.994117] ? lock_acquire+0x1ed/0x520 [ 55.998204] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 56.003210] ? cap_mmap_addr+0x52/0x130 [ 56.007176] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.012705] ? security_mmap_addr+0x80/0xa0 [ 56.017013] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.022537] ? get_unmapped_area+0x292/0x3b0 [ 56.026928] do_mmap+0xa22/0x1230 [ 56.030391] ? mmap_region+0x1cd0/0x1cd0 [ 56.034450] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 56.038495] ? down_read_killable+0x150/0x150 [ 56.043090] ? security_mmap_file+0x174/0x1b0 [ 56.047671] vm_mmap_pgoff+0x213/0x2c0 [ 56.051544] ? vma_is_stack_for_current+0xd0/0xd0 [ 56.056380] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.061893] ? __fget_light+0x2e9/0x430 [ 56.065850] ? fget_raw+0x20/0x20 [ 56.069313] ? up_read+0x225/0x2c0 [ 56.072867] ksys_mmap_pgoff+0x4da/0x660 [ 56.076952] ? do_syscall_64+0x9a/0x820 [ 56.080913] ? find_mergeable_anon_vma+0xd0/0xd0 [ 56.085778] ? trace_hardirqs_on+0xbd/0x310 [ 56.090079] ? security_file_ioctl+0x94/0xc0 [ 56.094520] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.100029] ? trace_hardirqs_off_caller+0x300/0x300 [ 56.105130] __x64_sys_mmap+0xe9/0x1b0 [ 56.109003] do_syscall_64+0x1b9/0x820 [ 56.112990] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 56.118435] ? syscall_return_slowpath+0x5e0/0x5e0 [ 56.123346] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.128166] ? trace_hardirqs_on_caller+0x310/0x310 [ 56.133162] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 56.138154] ? prepare_exit_to_usermode+0x291/0x3b0 [ 56.143162] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.148001] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.153334] RIP: 0033:0x444c89 [ 56.156521] 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 [ 56.175398] RSP: 002b:00007fffa898e688 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 56.183246] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 56.190494] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 56.197739] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 56.205197] R10: 0000000000000011 R11: 0000000000000212 R12: 000000000000d793 [ 56.212453] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 56.220958] Kernel Offset: disabled [ 56.224578] Rebooting in 86400 seconds..