[info] Using makefile-style concurrent boot in runlevel 2. [ 25.381814] audit: type=1800 audit(1541306050.688:21): pid=5524 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: [ 34.486137] sshd (5664) used greatest stack depth: 15744 bytes left Warning: Permanently added '10.128.0.49' (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 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 [ 41.808536] ================================================================== [ 41.816150] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 41.822117] Read of size 8 at addr ffff8801c2b7e480 by task syz-executor011/5723 [ 41.829648] [ 41.831281] CPU: 1 PID: 5723 Comm: syz-executor011 Not tainted 4.19.0+ #221 [ 41.838367] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.847721] Call Trace: [ 41.850317] dump_stack+0x244/0x39d [ 41.853934] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.859117] ? printk+0xa7/0xcf [ 41.862409] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.867171] print_address_description.cold.7+0x9/0x1ff [ 41.872545] kasan_report.cold.8+0x242/0x309 [ 41.876961] ? vb2_mmap+0x662/0x6f0 [ 41.880584] __asan_report_load8_noabort+0x14/0x20 [ 41.885511] vb2_mmap+0x662/0x6f0 [ 41.888957] ? vb2_poll+0x1d0/0x1d0 [ 41.892568] vb2_fop_mmap+0x4b/0x70 [ 41.896183] v4l2_mmap+0x153/0x200 [ 41.899732] mmap_region+0xe85/0x1cd0 [ 41.903540] ? __x64_sys_brk+0x8b0/0x8b0 [ 41.907594] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 41.912888] ? rcu_softirq_qs+0x20/0x20 [ 41.916869] ? mpx_unmapped_area_check+0xd8/0x108 [ 41.921702] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 41.927144] ? arch_get_unmapped_area+0x750/0x750 [ 41.931984] ? lock_acquire+0x1ed/0x520 [ 41.935968] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 41.940982] ? cap_mmap_addr+0x52/0x130 [ 41.944958] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.950527] ? security_mmap_addr+0x80/0xa0 executing program executing program [ 41.954842] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.960367] ? get_unmapped_area+0x292/0x3b0 [ 41.964765] do_mmap+0xa22/0x1230 [ 41.968208] ? mmap_region+0x1cd0/0x1cd0 [ 41.972270] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 41.976340] ? down_read_killable+0x150/0x150 [ 41.980876] ? security_mmap_file+0x174/0x1b0 [ 41.985391] vm_mmap_pgoff+0x213/0x2c0 [ 41.989325] ? vma_is_stack_for_current+0xd0/0xd0 [ 41.994184] ? putname+0xf2/0x130 [ 41.997660] ? rcu_read_lock_sched_held+0x14f/0x180 [ 42.002707] ksys_mmap_pgoff+0x4da/0x660 executing program [ 42.006784] ? do_fast_syscall_32+0x150/0xfb2 [ 42.011293] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.016057] ? trace_hardirqs_on+0xbd/0x310 [ 42.020399] ? filp_open+0x80/0x80 [ 42.023951] ? entry_SYSENTER_compat+0x70/0x7f [ 42.028541] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.033648] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 42.038136] do_fast_syscall_32+0x34d/0xfb2 [ 42.042449] ? do_int80_syscall_32+0x890/0x890 [ 42.047021] ? entry_SYSENTER_compat+0x68/0x7f [ 42.051592] ? trace_hardirqs_off_caller+0xbb/0x310 [ 42.056606] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.061463] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.066294] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.071313] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.076338] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.081362] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.086204] entry_SYSENTER_compat+0x70/0x7f [ 42.090604] RIP: 0023:0xf7f30a29 [ 42.093990] 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 [ 42.112902] RSP: 002b:00000000ffe8b88c EFLAGS: 00000296 ORIG_RAX: 00000000000000c0 [ 42.120618] RAX: ffffffffffffffda RBX: 0000000020ffe000 RCX: 0000000000002000 [ 42.127891] RDX: 000000000000000d RSI: 0000000000080851 RDI: 0000000000000004 [ 42.135155] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 42.142414] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 42.149677] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 42.156960] [ 42.158589] Allocated by task 5722: [ 42.162214] save_stack+0x43/0xd0 [ 42.165660] kasan_kmalloc+0xc7/0xe0 [ 42.169373] __kmalloc+0x15b/0x760 [ 42.172924] __vb2_queue_alloc+0xf7/0xf90 [ 42.177080] vb2_core_reqbufs+0x971/0x1040 [ 42.181318] vb2_ioctl_reqbufs+0x1f5/0x3a0 [ 42.185539] v4l_reqbufs+0xae/0xd0 [ 42.189066] __video_do_ioctl+0x8b1/0x1050 [ 42.193312] video_usercopy+0x5c1/0x1760 [ 42.197383] video_ioctl2+0x2c/0x33 [ 42.201002] v4l2_ioctl+0x154/0x1b0 [ 42.204645] v4l2_compat_ioctl32+0x5ed/0x5cf0 [ 42.209155] __ia32_compat_sys_ioctl+0x20e/0x630 [ 42.213914] do_fast_syscall_32+0x34d/0xfb2 [ 42.218235] entry_SYSENTER_compat+0x70/0x7f [ 42.222656] [ 42.224282] Freed by task 5722: [ 42.227556] save_stack+0x43/0xd0 [ 42.230998] __kasan_slab_free+0x102/0x150 [ 42.235242] kasan_slab_free+0xe/0x10 [ 42.239045] kfree+0xcf/0x230 [ 42.242143] __vb2_queue_free+0x5e2/0xa30 [ 42.246293] vb2_core_queue_release+0x62/0x80 [ 42.250789] _vb2_fop_release+0x1d2/0x2b0 [ 42.254939] vb2_fop_release+0x77/0xc0 [ 42.258831] v4l2_release+0x2f2/0x3a0 [ 42.262642] __fput+0x385/0xa30 [ 42.265908] ____fput+0x15/0x20 [ 42.269175] task_work_run+0x1e8/0x2a0 [ 42.273051] exit_to_usermode_loop+0x318/0x380 [ 42.277619] do_fast_syscall_32+0xcd5/0xfb2 [ 42.281943] entry_SYSENTER_compat+0x70/0x7f [ 42.286342] [ 42.287966] The buggy address belongs to the object at ffff8801c2b7e480 [ 42.287966] which belongs to the cache kmalloc-1k of size 1024 [ 42.300617] The buggy address is located 0 bytes inside of [ 42.300617] 1024-byte region [ffff8801c2b7e480, ffff8801c2b7e880) [ 42.312434] The buggy address belongs to the page: [ 42.317383] page:ffffea00070adf80 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 42.327356] flags: 0x2fffc0000010200(slab|head) [ 42.332349] raw: 02fffc0000010200 ffffea00072d8a08 ffffea000753af08 ffff8801da800ac0 [ 42.340241] raw: 0000000000000000 ffff8801c2b7e000 0000000100000007 0000000000000000 [ 42.348119] page dumped because: kasan: bad access detected [ 42.353821] [ 42.355442] Memory state around the buggy address: [ 42.360364] ffff8801c2b7e380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.367719] ffff8801c2b7e400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.375071] >ffff8801c2b7e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.382438] ^ [ 42.385788] ffff8801c2b7e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.393132] ffff8801c2b7e580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.400498] ================================================================== [ 42.407843] Disabling lock debugging due to kernel taint [ 42.413393] Kernel panic - not syncing: panic_on_warn set ... [ 42.419315] CPU: 1 PID: 5723 Comm: syz-executor011 Tainted: G B 4.19.0+ #221 [ 42.427808] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.437144] Call Trace: [ 42.439720] dump_stack+0x244/0x39d [ 42.443350] ? dump_stack_print_info.cold.1+0x20/0x20 [ 42.448535] panic+0x2ad/0x55c [ 42.451710] ? add_taint.cold.5+0x16/0x16 [ 42.455869] ? preempt_schedule+0x4d/0x60 [ 42.460013] ? ___preempt_schedule+0x16/0x18 [ 42.464422] ? trace_hardirqs_on+0xb4/0x310 [ 42.468741] kasan_end_report+0x47/0x4f [ 42.472710] kasan_report.cold.8+0x76/0x309 [ 42.477016] ? vb2_mmap+0x662/0x6f0 [ 42.480638] __asan_report_load8_noabort+0x14/0x20 [ 42.485561] vb2_mmap+0x662/0x6f0 [ 42.489027] ? vb2_poll+0x1d0/0x1d0 [ 42.492652] vb2_fop_mmap+0x4b/0x70 [ 42.496265] v4l2_mmap+0x153/0x200 [ 42.499793] mmap_region+0xe85/0x1cd0 [ 42.503590] ? __x64_sys_brk+0x8b0/0x8b0 [ 42.507642] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 42.512910] ? rcu_softirq_qs+0x20/0x20 [ 42.516875] ? mpx_unmapped_area_check+0xd8/0x108 [ 42.521703] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 42.527144] ? arch_get_unmapped_area+0x750/0x750 [ 42.531988] ? lock_acquire+0x1ed/0x520 [ 42.535948] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 42.540960] ? cap_mmap_addr+0x52/0x130 [ 42.544933] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.550453] ? security_mmap_addr+0x80/0xa0 [ 42.554760] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.560284] ? get_unmapped_area+0x292/0x3b0 [ 42.564677] do_mmap+0xa22/0x1230 [ 42.568119] ? mmap_region+0x1cd0/0x1cd0 [ 42.572178] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 42.576247] ? down_read_killable+0x150/0x150 [ 42.580751] ? security_mmap_file+0x174/0x1b0 [ 42.585234] vm_mmap_pgoff+0x213/0x2c0 [ 42.589112] ? vma_is_stack_for_current+0xd0/0xd0 [ 42.593949] ? putname+0xf2/0x130 [ 42.597401] ? rcu_read_lock_sched_held+0x14f/0x180 [ 42.602407] ksys_mmap_pgoff+0x4da/0x660 [ 42.606454] ? do_fast_syscall_32+0x150/0xfb2 [ 42.610939] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.615691] ? trace_hardirqs_on+0xbd/0x310 [ 42.620006] ? filp_open+0x80/0x80 [ 42.623544] ? entry_SYSENTER_compat+0x70/0x7f [ 42.628115] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.633206] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 42.637689] do_fast_syscall_32+0x34d/0xfb2 [ 42.641998] ? do_int80_syscall_32+0x890/0x890 [ 42.646580] ? entry_SYSENTER_compat+0x68/0x7f [ 42.651148] ? trace_hardirqs_off_caller+0xbb/0x310 [ 42.656153] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.661006] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.665851] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.670856] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.675856] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.680858] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.685699] entry_SYSENTER_compat+0x70/0x7f [ 42.690104] RIP: 0023:0xf7f30a29 [ 42.693478] 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 [ 42.712376] RSP: 002b:00000000ffe8b88c EFLAGS: 00000296 ORIG_RAX: 00000000000000c0 [ 42.720077] RAX: ffffffffffffffda RBX: 0000000020ffe000 RCX: 0000000000002000 [ 42.727337] RDX: 000000000000000d RSI: 0000000000080851 RDI: 0000000000000004 [ 42.734590] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 42.741845] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 42.749111] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 42.757227] Kernel Offset: disabled [ 42.760850] Rebooting in 86400 seconds..