[info] Using makefile-style concurrent boot in runlevel 2. [ 27.405423] audit: type=1800 audit(1541920919.041:21): pid=5883 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 33.640033] sshd (6021) used greatest stack depth: 15632 bytes left Warning: Permanently added '10.128.0.101' (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 [ 40.155083] ================================================================== [ 40.162633] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 40.168653] Read of size 8 at addr ffff8801ccf084c0 by task syz-executor819/6048 [ 40.176173] [ 40.177802] CPU: 0 PID: 6048 Comm: syz-executor819 Not tainted 4.20.0-rc1-next-20181109+ #110 [ 40.186443] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.195777] Call Trace: [ 40.198348] dump_stack+0x244/0x39d [ 40.201968] ? dump_stack_print_info.cold.1+0x20/0x20 [ 40.207149] ? printk+0xa7/0xcf [ 40.210419] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 40.215169] print_address_description.cold.7+0x9/0x1ff [ 40.220519] kasan_report.cold.8+0x242/0x309 [ 40.224912] ? vb2_mmap+0x662/0x6f0 [ 40.228530] __asan_report_load8_noabort+0x14/0x20 [ 40.233458] vb2_mmap+0x662/0x6f0 [ 40.236916] ? vb2_poll+0x1d0/0x1d0 [ 40.240661] vb2_fop_mmap+0x4b/0x70 [ 40.244291] v4l2_mmap+0x153/0x200 [ 40.247823] mmap_region+0xe85/0x1cd0 [ 40.251624] ? __x64_sys_brk+0x8b0/0x8b0 [ 40.255671] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 40.260949] ? rcu_read_unlock_special+0x370/0x370 [ 40.265889] ? mpx_unmapped_area_check+0xd8/0x108 [ 40.270859] ? refcount_dec_if_one+0x180/0x180 [ 40.275446] ? arch_get_unmapped_area+0x750/0x750 [ 40.280297] ? lock_acquire+0x1ed/0x520 [ 40.284293] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 40.289307] ? cap_mmap_addr+0x52/0x130 [ 40.293291] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.298833] ? security_mmap_addr+0x80/0xa0 [ 40.303142] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.308670] ? get_unmapped_area+0x292/0x3b0 [ 40.313066] do_mmap+0xa22/0x1230 [ 40.316513] ? mmap_region+0x1cd0/0x1cd0 [ 40.320564] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 40.324623] ? down_read_killable+0x150/0x150 [ 40.329110] ? security_mmap_file+0x174/0x1b0 [ 40.333607] vm_mmap_pgoff+0x213/0x2c0 [ 40.337492] ? vma_is_stack_for_current+0xd0/0xd0 [ 40.342341] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.347880] ? __fget_light+0x2e9/0x430 [ 40.351847] ? fget_raw+0x20/0x20 [ 40.355296] ? up_read+0x225/0x2c0 [ 40.358829] ksys_mmap_pgoff+0x4da/0x660 [ 40.362891] ? do_syscall_64+0x9a/0x820 [ 40.366871] ? find_mergeable_anon_vma+0xd0/0xd0 [ 40.371626] ? trace_hardirqs_on+0xbd/0x310 [ 40.375936] ? security_file_ioctl+0x94/0xc0 [ 40.380334] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.385696] ? trace_hardirqs_off_caller+0x300/0x300 [ 40.390812] __x64_sys_mmap+0xe9/0x1b0 [ 40.394692] do_syscall_64+0x1b9/0x820 [ 40.398574] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 40.403946] ? syscall_return_slowpath+0x5e0/0x5e0 [ 40.408880] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.413723] ? trace_hardirqs_on_caller+0x310/0x310 [ 40.418730] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 40.423752] ? prepare_exit_to_usermode+0x291/0x3b0 [ 40.428806] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 40.433662] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.438838] RIP: 0033:0x444c89 [ 40.443686] 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 [ 40.462603] RSP: 002b:00007fff980249a8 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 40.470299] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 40.477631] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 40.484942] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 40.492256] R10: 0000000000000011 R11: 0000000000000216 R12: 0000000000401f40 [ 40.499518] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 40.506796] [ 40.508413] Allocated by task 6046: [ 40.512043] save_stack+0x43/0xd0 [ 40.515483] kasan_kmalloc+0xc7/0xe0 [ 40.519182] __kmalloc+0x15b/0x760 [ 40.522714] __vb2_queue_alloc+0xf7/0xf90 [ 40.526846] vb2_core_create_bufs+0x401/0x8c0 [ 40.531328] vb2_create_bufs+0x3c6/0x7f0 [ 40.535375] vb2_ioctl_create_bufs+0x25e/0x3d0 [ 40.539941] v4l_create_bufs+0x152/0x230 [ 40.543985] __video_do_ioctl+0x8b1/0x1050 [ 40.548206] video_usercopy+0x5c1/0x1750 [ 40.552263] video_ioctl2+0x2c/0x33 [ 40.555888] v4l2_ioctl+0x154/0x1b0 [ 40.559498] do_vfs_ioctl+0x1de/0x1790 [ 40.563372] ksys_ioctl+0xa9/0xd0 [ 40.566808] __x64_sys_ioctl+0x73/0xb0 [ 40.570682] do_syscall_64+0x1b9/0x820 [ 40.574564] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.579732] [ 40.581341] Freed by task 6046: [ 40.584615] save_stack+0x43/0xd0 [ 40.588055] __kasan_slab_free+0x102/0x150 [ 40.592272] kasan_slab_free+0xe/0x10 [ 40.596058] kfree+0xcf/0x230 [ 40.599148] __vb2_queue_free+0x5e2/0xa30 [ 40.603280] vb2_core_queue_release+0x62/0x80 [ 40.607761] _vb2_fop_release+0x1d2/0x2b0 [ 40.611893] vb2_fop_release+0x77/0xc0 [ 40.615766] vivid_fop_release+0x18e/0x440 [ 40.619990] v4l2_release+0x224/0x3a0 [ 40.623788] __fput+0x3bc/0xa70 [ 40.627073] ____fput+0x15/0x20 [ 40.630355] task_work_run+0x1e8/0x2a0 [ 40.634235] do_exit+0x1a48/0x2620 [ 40.637764] do_group_exit+0x177/0x440 [ 40.641636] __x64_sys_exit_group+0x3e/0x50 [ 40.645943] do_syscall_64+0x1b9/0x820 [ 40.649820] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 40.654990] [ 40.656610] The buggy address belongs to the object at ffff8801ccf084c0 [ 40.656610] which belongs to the cache kmalloc-1k of size 1024 [ 40.669252] The buggy address is located 0 bytes inside of [ 40.669252] 1024-byte region [ffff8801ccf084c0, ffff8801ccf088c0) [ 40.681027] The buggy address belongs to the page: [ 40.686191] page:ffffea000733c200 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 40.696207] flags: 0x2fffc0000010200(slab|head) [ 40.700876] raw: 02fffc0000010200 ffffea000733c888 ffffea0007313688 ffff8801da800ac0 [ 40.708744] raw: 0000000000000000 ffff8801ccf08040 0000000100000007 0000000000000000 [ 40.716614] page dumped because: kasan: bad access detected [ 40.722304] [ 40.723911] Memory state around the buggy address: [ 40.728832] ffff8801ccf08380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.736182] ffff8801ccf08400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 40.743527] >ffff8801ccf08480: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 40.750955] ^ executing program [ 40.756400] ffff8801ccf08500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.763758] ffff8801ccf08580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 40.771107] ================================================================== [ 40.778467] Disabling lock debugging due to kernel taint [ 40.784972] Kernel panic - not syncing: panic_on_warn set ... [ 40.790884] CPU: 0 PID: 6048 Comm: syz-executor819 Tainted: G B 4.20.0-rc1-next-20181109+ #110 [ 40.800934] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 40.810289] Call Trace: [ 40.812879] dump_stack+0x244/0x39d [ 40.816497] ? dump_stack_print_info.cold.1+0x20/0x20 [ 40.821678] panic+0x2ad/0x55c [ 40.824857] ? add_taint.cold.5+0x16/0x16 [ 40.828994] ? preempt_schedule+0x4d/0x60 [ 40.833139] ? ___preempt_schedule+0x16/0x18 [ 40.837589] ? trace_hardirqs_on+0xb4/0x310 [ 40.841928] kasan_end_report+0x47/0x4f [ 40.845890] kasan_report.cold.8+0x76/0x309 [ 40.850203] ? vb2_mmap+0x662/0x6f0 [ 40.853826] __asan_report_load8_noabort+0x14/0x20 [ 40.858750] vb2_mmap+0x662/0x6f0 [ 40.862196] ? vb2_poll+0x1d0/0x1d0 [ 40.865807] vb2_fop_mmap+0x4b/0x70 [ 40.869425] v4l2_mmap+0x153/0x200 [ 40.872954] mmap_region+0xe85/0x1cd0 [ 40.876740] ? __x64_sys_brk+0x8b0/0x8b0 [ 40.880795] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 40.886071] ? rcu_read_unlock_special+0x370/0x370 [ 40.891003] ? mpx_unmapped_area_check+0xd8/0x108 [ 40.895834] ? refcount_dec_if_one+0x180/0x180 [ 40.900405] ? arch_get_unmapped_area+0x750/0x750 [ 40.905245] ? lock_acquire+0x1ed/0x520 [ 40.909218] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 40.914222] ? cap_mmap_addr+0x52/0x130 [ 40.918187] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.923720] ? security_mmap_addr+0x80/0xa0 [ 40.928032] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 40.933557] ? get_unmapped_area+0x292/0x3b0 [ 40.937950] do_mmap+0xa22/0x1230 [ 40.941391] ? mmap_region+0x1cd0/0x1cd0 [ 40.945439] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 40.949489] ? down_read_killable+0x150/0x150 [ 40.953968] ? security_mmap_file+0x174/0x1b0 [ 40.958447] vm_mmap_pgoff+0x213/0x2c0 [ 40.962325] ? vma_is_stack_for_current+0xd0/0xd0 [ 40.967154] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 40.972678] ? __fget_light+0x2e9/0x430 [ 40.976644] ? fget_raw+0x20/0x20 [ 40.980084] ? up_read+0x225/0x2c0 [ 40.983621] ksys_mmap_pgoff+0x4da/0x660 [ 40.987698] ? do_syscall_64+0x9a/0x820 [ 40.991673] ? find_mergeable_anon_vma+0xd0/0xd0 [ 40.996423] ? trace_hardirqs_on+0xbd/0x310 [ 41.000731] ? security_file_ioctl+0x94/0xc0 [ 41.005128] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.010477] ? trace_hardirqs_off_caller+0x300/0x300 [ 41.015585] __x64_sys_mmap+0xe9/0x1b0 [ 41.019484] do_syscall_64+0x1b9/0x820 [ 41.023370] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.028732] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.033648] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.038481] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.043500] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 41.048509] ? prepare_exit_to_usermode+0x291/0x3b0 [ 41.053522] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.058359] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.063538] RIP: 0033:0x444c89 [ 41.066719] 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 [ 41.085687] RSP: 002b:00007fff980249a8 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 41.093388] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 41.100702] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 41.107971] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 41.115239] R10: 0000000000000011 R11: 0000000000000216 R12: 0000000000401f40 [ 41.122498] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 41.130778] Kernel Offset: disabled [ 41.134416] Rebooting in 86400 seconds..