[info] Using makefile-style concurrent boot in runlevel 2. [ 25.538787] audit: type=1800 audit(1541917711.475:21): pid=5814 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 25.559143] audit: type=1800 audit(1541917711.495:22): pid=5814 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="motd" dev="sda1" ino=2447 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 Warning: Permanently added '10.128.0.120' (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 syzkaller login: [ 45.619334] ================================================================== [ 45.626918] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 45.632886] Read of size 8 at addr ffff8801cd186040 by task syz-executor939/5983 [ 45.640400] [ 45.642017] CPU: 0 PID: 5983 Comm: syz-executor939 Not tainted 4.20.0-rc1+ #233 [ 45.649445] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 45.658881] Call Trace: [ 45.661477] dump_stack+0x244/0x39d [ 45.665099] ? dump_stack_print_info.cold.1+0x20/0x20 [ 45.670277] ? printk+0xa7/0xcf [ 45.673542] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 45.678333] print_address_description.cold.7+0x9/0x1ff [ 45.683685] kasan_report.cold.8+0x242/0x309 [ 45.688083] ? vb2_mmap+0x662/0x6f0 [ 45.691701] __asan_report_load8_noabort+0x14/0x20 [ 45.696617] vb2_mmap+0x662/0x6f0 [ 45.700060] ? vb2_poll+0x1d0/0x1d0 [ 45.703727] vb2_fop_mmap+0x4b/0x70 [ 45.707344] v4l2_mmap+0x153/0x200 [ 45.710873] mmap_region+0xe85/0x1cd0 [ 45.714663] ? __x64_sys_brk+0x8b0/0x8b0 [ 45.718708] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 45.723995] ? rcu_softirq_qs+0x20/0x20 [ 45.727963] ? mpx_unmapped_area_check+0xd8/0x108 [ 45.732809] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 45.738251] ? arch_get_unmapped_area+0x750/0x750 [ 45.743081] ? lock_acquire+0x1ed/0x520 [ 45.747047] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 45.752050] ? cap_mmap_addr+0x52/0x130 [ 45.756027] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 45.761566] ? security_mmap_addr+0x80/0xa0 [ 45.765878] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.771405] ? get_unmapped_area+0x292/0x3b0 [ 45.775826] do_mmap+0xa22/0x1230 [ 45.779271] ? mmap_region+0x1cd0/0x1cd0 [ 45.783324] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 45.787374] ? down_read_killable+0x150/0x150 [ 45.791857] ? security_mmap_file+0x174/0x1b0 [ 45.796345] vm_mmap_pgoff+0x213/0x2c0 [ 45.800229] ? vma_is_stack_for_current+0xd0/0xd0 [ 45.805065] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 45.810598] ? v4l2_compat_ioctl32+0x178/0x5cf0 [ 45.815257] ? fget_raw+0x20/0x20 [ 45.818716] ? rcu_read_lock_sched_held+0x14f/0x180 [ 45.823727] ksys_mmap_pgoff+0x4da/0x660 [ 45.827774] ? do_fast_syscall_32+0x150/0xfb2 [ 45.832257] ? find_mergeable_anon_vma+0xd0/0xd0 [ 45.837016] ? trace_hardirqs_on+0xbd/0x310 [ 45.841334] ? entry_SYSENTER_compat+0x70/0x7f [ 45.845912] ? trace_hardirqs_off_caller+0x310/0x310 [ 45.851005] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 45.855493] do_fast_syscall_32+0x34d/0xfb2 [ 45.859807] ? do_int80_syscall_32+0x890/0x890 [ 45.864376] ? entry_SYSENTER_compat+0x68/0x7f [ 45.868972] ? trace_hardirqs_off_caller+0xbb/0x310 [ 45.873983] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.878829] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.883667] ? trace_hardirqs_on_caller+0x310/0x310 [ 45.888677] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 45.893689] ? prepare_exit_to_usermode+0x291/0x3b0 [ 45.898704] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 45.903537] entry_SYSENTER_compat+0x70/0x7f [ 45.907933] RIP: 0023:0xf7fa9a29 [ 45.911318] 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.930205] RSP: 002b:00000000ffd6cfbc EFLAGS: 00000286 ORIG_RAX: 00000000000000c0 [ 45.937898] RAX: ffffffffffffffda RBX: 0000000020ffe000 RCX: 0000000000002000 [ 45.945154] RDX: 00000000fffffffd RSI: 0000000000000011 RDI: 0000000000000003 [ 45.952411] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 45.959665] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 45.966921] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 45.974183] [ 45.975797] Allocated by task 5979: [ 45.979423] save_stack+0x43/0xd0 [ 45.982871] kasan_kmalloc+0xc7/0xe0 [ 45.986568] __kmalloc+0x15b/0x760 [ 45.990108] __vb2_queue_alloc+0xf7/0xf90 [ 45.994243] vb2_core_create_bufs+0x401/0x8c0 [ 45.998725] vb2_create_bufs+0x3c6/0x7f0 [ 46.002784] vb2_ioctl_create_bufs+0x25e/0x3d0 [ 46.007379] v4l_create_bufs+0x152/0x230 [ 46.011428] __video_do_ioctl+0x8b1/0x1050 [ 46.015649] video_usercopy+0x5c1/0x1760 [ 46.019693] video_ioctl2+0x2c/0x33 [ 46.023302] v4l2_ioctl+0x154/0x1b0 [ 46.026919] v4l2_compat_ioctl32+0x3e5/0x5cf0 [ 46.031400] __ia32_compat_sys_ioctl+0x20e/0x630 [ 46.036156] do_fast_syscall_32+0x34d/0xfb2 [ 46.040470] entry_SYSENTER_compat+0x70/0x7f [ 46.044863] [ 46.046478] Freed by task 5979: [ 46.049749] save_stack+0x43/0xd0 [ 46.053187] __kasan_slab_free+0x102/0x150 [ 46.057408] kasan_slab_free+0xe/0x10 [ 46.061214] kfree+0xcf/0x230 [ 46.064306] __vb2_queue_free+0x5e2/0xa30 [ 46.068446] vb2_core_queue_release+0x62/0x80 [ 46.072926] _vb2_fop_release+0x1d2/0x2b0 [ 46.077068] vb2_fop_release+0x77/0xc0 [ 46.080949] vivid_fop_release+0x18e/0x440 [ 46.085168] v4l2_release+0x224/0x3a0 [ 46.088961] __fput+0x385/0xa30 [ 46.092232] ____fput+0x15/0x20 [ 46.095513] task_work_run+0x1e8/0x2a0 [ 46.099387] do_exit+0x1ad6/0x26d0 [ 46.102911] do_group_exit+0x177/0x440 [ 46.106795] __ia32_sys_exit_group+0x3e/0x50 [ 46.111207] do_fast_syscall_32+0x34d/0xfb2 [ 46.115527] entry_SYSENTER_compat+0x70/0x7f [ 46.120000] [ 46.121622] The buggy address belongs to the object at ffff8801cd186040 [ 46.121622] which belongs to the cache kmalloc-1k of size 1024 [ 46.134278] The buggy address is located 0 bytes inside of [ 46.134278] 1024-byte region [ffff8801cd186040, ffff8801cd186440) [ 46.146048] The buggy address belongs to the page: [ 46.150977] page:ffffea0007346180 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 46.160968] flags: 0x2fffc0000010200(slab|head) [ 46.165647] raw: 02fffc0000010200 ffffea0007321c88 ffffea0007323308 ffff8801da800ac0 [ 46.173517] raw: 0000000000000000 ffff8801cd186040 0000000100000007 0000000000000000 [ 46.181394] page dumped because: kasan: bad access detected [ 46.187088] [ 46.188701] Memory state around the buggy address: [ 46.193628] ffff8801cd185f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.200989] ffff8801cd185f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 46.208339] >ffff8801cd186000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 46.215681] ^ [ 46.221117] ffff8801cd186080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.228462] ffff8801cd186100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 46.235807] ================================================================== [ 46.243152] Disabling lock debugging due to kernel taint [ 46.249390] Kernel panic - not syncing: panic_on_warn set ... [ 46.255293] CPU: 0 PID: 5983 Comm: syz-executor939 Tainted: G B 4.20.0-rc1+ #233 [ 46.264111] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.273447] Call Trace: [ 46.276026] dump_stack+0x244/0x39d [ 46.279641] ? dump_stack_print_info.cold.1+0x20/0x20 [ 46.284821] panic+0x2ad/0x55c [ 46.288005] ? add_taint.cold.5+0x16/0x16 [ 46.292149] ? preempt_schedule+0x4d/0x60 [ 46.296289] ? ___preempt_schedule+0x16/0x18 [ 46.300713] ? trace_hardirqs_on+0xb4/0x310 [ 46.305023] kasan_end_report+0x47/0x4f [ 46.308983] kasan_report.cold.8+0x76/0x309 [ 46.313296] ? vb2_mmap+0x662/0x6f0 [ 46.316912] __asan_report_load8_noabort+0x14/0x20 [ 46.321830] vb2_mmap+0x662/0x6f0 [ 46.325273] ? vb2_poll+0x1d0/0x1d0 [ 46.328885] vb2_fop_mmap+0x4b/0x70 [ 46.332497] v4l2_mmap+0x153/0x200 [ 46.336024] mmap_region+0xe85/0x1cd0 [ 46.339811] ? __x64_sys_brk+0x8b0/0x8b0 [ 46.343858] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 46.349125] ? rcu_softirq_qs+0x20/0x20 [ 46.353090] ? mpx_unmapped_area_check+0xd8/0x108 [ 46.357931] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 46.363387] ? arch_get_unmapped_area+0x750/0x750 [ 46.368230] ? lock_acquire+0x1ed/0x520 [ 46.372200] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 46.377201] ? cap_mmap_addr+0x52/0x130 [ 46.381162] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.386684] ? security_mmap_addr+0x80/0xa0 [ 46.391012] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.396536] ? get_unmapped_area+0x292/0x3b0 [ 46.400935] do_mmap+0xa22/0x1230 [ 46.404375] ? mmap_region+0x1cd0/0x1cd0 [ 46.408420] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 46.412468] ? down_read_killable+0x150/0x150 [ 46.416951] ? security_mmap_file+0x174/0x1b0 [ 46.421436] vm_mmap_pgoff+0x213/0x2c0 [ 46.425321] ? vma_is_stack_for_current+0xd0/0xd0 [ 46.430156] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.435678] ? v4l2_compat_ioctl32+0x178/0x5cf0 [ 46.440333] ? fget_raw+0x20/0x20 [ 46.443782] ? rcu_read_lock_sched_held+0x14f/0x180 [ 46.448827] ksys_mmap_pgoff+0x4da/0x660 [ 46.452884] ? do_fast_syscall_32+0x150/0xfb2 [ 46.457373] ? find_mergeable_anon_vma+0xd0/0xd0 [ 46.462122] ? trace_hardirqs_on+0xbd/0x310 [ 46.466430] ? entry_SYSENTER_compat+0x70/0x7f [ 46.470996] ? trace_hardirqs_off_caller+0x310/0x310 [ 46.476108] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 46.480604] do_fast_syscall_32+0x34d/0xfb2 [ 46.484921] ? do_int80_syscall_32+0x890/0x890 [ 46.489490] ? entry_SYSENTER_compat+0x68/0x7f [ 46.494058] ? trace_hardirqs_off_caller+0xbb/0x310 [ 46.499075] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.503900] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.508735] ? trace_hardirqs_on_caller+0x310/0x310 [ 46.513740] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 46.518748] ? prepare_exit_to_usermode+0x291/0x3b0 [ 46.523760] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.528601] entry_SYSENTER_compat+0x70/0x7f [ 46.533010] RIP: 0023:0xf7fa9a29 [ 46.536379] 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 [ 46.555263] RSP: 002b:00000000ffd6cfbc EFLAGS: 00000286 ORIG_RAX: 00000000000000c0 [ 46.562959] RAX: ffffffffffffffda RBX: 0000000020ffe000 RCX: 0000000000002000 [ 46.570216] RDX: 00000000fffffffd RSI: 0000000000000011 RDI: 0000000000000003 [ 46.577472] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 46.584728] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 46.591988] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 46.600536] Kernel Offset: disabled [ 46.604166] Rebooting in 86400 seconds..