[info] Using makefile-style concurrent boot in runlevel 2. [ 22.218923] audit: type=1800 audit(1541314345.635:21): pid=5437 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 22.254027] audit: type=1800 audit(1541314345.635:22): pid=5437 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 syzkaller login: [ 36.227386] sshd (5577) used greatest stack depth: 15744 bytes left Warning: Permanently added '10.128.0.121' (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 [ 42.702185] ================================================================== [ 42.709855] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 42.715919] Read of size 8 at addr ffff8801ce685b40 by task syz-executor971/5608 [ 42.723441] [ 42.725071] CPU: 1 PID: 5608 Comm: syz-executor971 Not tainted 4.19.0+ #318 [ 42.732245] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.741713] Call Trace: [ 42.744286] dump_stack+0x244/0x39d [ 42.747913] ? dump_stack_print_info.cold.1+0x20/0x20 [ 42.753087] ? printk+0xa7/0xcf [ 42.756351] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 42.761098] print_address_description.cold.7+0x9/0x1ff [ 42.766444] kasan_report.cold.8+0x242/0x309 [ 42.770840] ? vb2_mmap+0x662/0x6f0 [ 42.774554] __asan_report_load8_noabort+0x14/0x20 [ 42.779463] vb2_mmap+0x662/0x6f0 [ 42.782907] ? vb2_poll+0x1d0/0x1d0 [ 42.786515] vb2_fop_mmap+0x4b/0x70 [ 42.790123] v4l2_mmap+0x153/0x200 [ 42.793646] mmap_region+0xe85/0x1cd0 [ 42.797442] ? __x64_sys_brk+0x8b0/0x8b0 [ 42.801492] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 42.807086] ? rcu_softirq_qs+0x20/0x20 [ 42.811053] ? mpx_unmapped_area_check+0xd8/0x108 [ 42.815915] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 42.821464] ? arch_get_unmapped_area+0x750/0x750 [ 42.826295] ? lock_acquire+0x1ed/0x520 [ 42.830253] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 42.835255] ? cap_mmap_addr+0x52/0x130 [ 42.839303] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.844826] ? security_mmap_addr+0x80/0xa0 [ 42.849247] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.854770] ? get_unmapped_area+0x292/0x3b0 [ 42.859163] do_mmap+0xa22/0x1230 [ 42.862628] ? mmap_region+0x1cd0/0x1cd0 [ 42.866677] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 42.870737] ? down_read_killable+0x150/0x150 [ 42.875219] ? security_mmap_file+0x174/0x1b0 [ 42.879747] vm_mmap_pgoff+0x213/0x2c0 [ 42.883657] ? vma_is_stack_for_current+0xd0/0xd0 [ 42.888500] ? putname+0xf2/0x130 [ 42.891938] ? rcu_read_lock_sched_held+0x14f/0x180 [ 42.899218] ksys_mmap_pgoff+0x4da/0x660 [ 42.903281] ? do_syscall_64+0x9a/0x820 [ 42.907244] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.912006] ? trace_hardirqs_on+0xbd/0x310 [ 42.916308] ? filp_open+0x80/0x80 [ 42.919832] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.925182] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.930291] __x64_sys_mmap+0xe9/0x1b0 [ 42.934168] do_syscall_64+0x1b9/0x820 [ 42.938039] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.943481] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.948408] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.953243] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.958249] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.963253] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.968083] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.973263] RIP: 0033:0x444bf9 [ 42.976458] 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 [ 42.995351] RSP: 002b:00007ffe843e1ff8 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 43.003040] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444bf9 [ 43.010396] RDX: 000000000000000d RSI: 0000000000002000 RDI: 0000000020ffe000 [ 43.017650] RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000000 [ 43.024996] R10: 0000000000080851 R11: 0000000000000212 R12: 000000000000a607 [ 43.032258] R13: 0000000000401f40 R14: 0000000000000000 R15: 0000000000000000 [ 43.041075] [ 43.042710] Allocated by task 5606: [ 43.046330] save_stack+0x43/0xd0 [ 43.049767] kasan_kmalloc+0xc7/0xe0 [ 43.053470] __kmalloc+0x15b/0x760 [ 43.056995] __vb2_queue_alloc+0xf7/0xf90 [ 43.061125] vb2_core_reqbufs+0x971/0x1040 [ 43.065343] vb2_ioctl_reqbufs+0x1f5/0x3a0 [ 43.069560] v4l_reqbufs+0xae/0xd0 [ 43.073082] __video_do_ioctl+0x8b1/0x1050 [ 43.077298] video_usercopy+0x5c1/0x1760 [ 43.081359] video_ioctl2+0x2c/0x33 [ 43.084973] v4l2_ioctl+0x154/0x1b0 [ 43.088584] do_vfs_ioctl+0x1de/0x1790 [ 43.092543] ksys_ioctl+0xa9/0xd0 [ 43.095984] __x64_sys_ioctl+0x73/0xb0 [ 43.099856] do_syscall_64+0x1b9/0x820 [ 43.103728] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.108894] [ 43.110504] Freed by task 5606: [ 43.113782] save_stack+0x43/0xd0 [ 43.117225] __kasan_slab_free+0x102/0x150 [ 43.121468] kasan_slab_free+0xe/0x10 [ 43.125269] kfree+0xcf/0x230 [ 43.128356] __vb2_queue_free+0x5e2/0xa30 [ 43.132484] vb2_core_queue_release+0x62/0x80 [ 43.136963] _vb2_fop_release+0x1d2/0x2b0 [ 43.141114] vb2_fop_release+0x77/0xc0 [ 43.144982] v4l2_release+0x2f2/0x3a0 [ 43.148763] __fput+0x385/0xa30 [ 43.152122] ____fput+0x15/0x20 [ 43.155383] task_work_run+0x1e8/0x2a0 [ 43.159253] exit_to_usermode_loop+0x318/0x380 [ 43.163815] do_syscall_64+0x6be/0x820 [ 43.167685] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.172878] [ 43.174591] The buggy address belongs to the object at ffff8801ce685b40 [ 43.174591] which belongs to the cache kmalloc-1k of size 1024 [ 43.187233] The buggy address is located 0 bytes inside of [ 43.187233] 1024-byte region [ffff8801ce685b40, ffff8801ce685f40) [ 43.199000] The buggy address belongs to the page: [ 43.203915] page:ffffea000739a100 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 43.213870] flags: 0x2fffc0000010200(slab|head) [ 43.218527] raw: 02fffc0000010200 ffffea0007457c88 ffffea0006e6dc08 ffff8801da800ac0 [ 43.226496] raw: 0000000000000000 ffff8801ce684040 0000000100000007 0000000000000000 [ 43.234356] page dumped because: kasan: bad access detected [ 43.240128] [ 43.241736] Memory state around the buggy address: [ 43.246648] ffff8801ce685a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.254106] ffff8801ce685a80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 43.261451] >ffff8801ce685b00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 43.268876] ^ [ 43.274304] ffff8801ce685b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.281644] ffff8801ce685c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.288980] ================================================================== [ 43.296332] Disabling lock debugging due to kernel taint executing program [ 43.303410] Kernel panic - not syncing: panic_on_warn set ... [ 43.309317] CPU: 1 PID: 5608 Comm: syz-executor971 Tainted: G B 4.19.0+ #318 [ 43.317793] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 43.327272] Call Trace: [ 43.329844] dump_stack+0x244/0x39d [ 43.333611] ? dump_stack_print_info.cold.1+0x20/0x20 [ 43.338904] panic+0x2ad/0x55c [ 43.342087] ? add_taint.cold.5+0x16/0x16 [ 43.346223] ? preempt_schedule+0x4d/0x60 [ 43.350354] ? ___preempt_schedule+0x16/0x18 [ 43.354906] ? trace_hardirqs_on+0xb4/0x310 [ 43.359214] kasan_end_report+0x47/0x4f [ 43.363163] kasan_report.cold.8+0x76/0x309 [ 43.367461] ? vb2_mmap+0x662/0x6f0 [ 43.371116] __asan_report_load8_noabort+0x14/0x20 [ 43.376151] vb2_mmap+0x662/0x6f0 [ 43.379586] ? vb2_poll+0x1d0/0x1d0 [ 43.383445] vb2_fop_mmap+0x4b/0x70 [ 43.387059] v4l2_mmap+0x153/0x200 [ 43.390579] mmap_region+0xe85/0x1cd0 [ 43.394453] ? __x64_sys_brk+0x8b0/0x8b0 [ 43.398912] ? rcu_dynticks_curr_cpu_in_eqs+0xa2/0x170 [ 43.404171] ? rcu_softirq_qs+0x20/0x20 [ 43.408127] ? mpx_unmapped_area_check+0xd8/0x108 [ 43.413010] ? refcount_inc_not_zero_checked+0x2f0/0x2f0 [ 43.418460] ? arch_get_unmapped_area+0x750/0x750 [ 43.423289] ? lock_acquire+0x1ed/0x520 [ 43.427304] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 43.432310] ? cap_mmap_addr+0x52/0x130 [ 43.436260] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 43.441775] ? security_mmap_addr+0x80/0xa0 [ 43.446215] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 43.452032] ? get_unmapped_area+0x292/0x3b0 [ 43.456434] do_mmap+0xa22/0x1230 [ 43.459867] ? mmap_region+0x1cd0/0x1cd0 [ 43.463912] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 43.467967] ? down_read_killable+0x150/0x150 [ 43.472925] ? security_mmap_file+0x174/0x1b0 [ 43.477416] vm_mmap_pgoff+0x213/0x2c0 [ 43.481354] ? vma_is_stack_for_current+0xd0/0xd0 [ 43.486304] ? putname+0xf2/0x130 [ 43.489887] ? rcu_read_lock_sched_held+0x14f/0x180 [ 43.494882] ksys_mmap_pgoff+0x4da/0x660 [ 43.498924] ? do_syscall_64+0x9a/0x820 [ 43.502981] ? find_mergeable_anon_vma+0xd0/0xd0 [ 43.507717] ? trace_hardirqs_on+0xbd/0x310 [ 43.512023] ? filp_open+0x80/0x80 [ 43.515560] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.521054] ? trace_hardirqs_off_caller+0x310/0x310 [ 43.526145] __x64_sys_mmap+0xe9/0x1b0 [ 43.530164] do_syscall_64+0x1b9/0x820 [ 43.534031] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 43.539651] ? syscall_return_slowpath+0x5e0/0x5e0 [ 43.544563] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.549500] ? trace_hardirqs_on_caller+0x310/0x310 [ 43.554502] ? prepare_exit_to_usermode+0x291/0x3b0 [ 43.559498] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 43.564319] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 43.569645] RIP: 0033:0x444bf9 [ 43.572871] 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 [ 43.591932] RSP: 002b:00007ffe843e1ff8 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 43.599783] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444bf9 [ 43.607037] RDX: 000000000000000d RSI: 0000000000002000 RDI: 0000000020ffe000 [ 43.614284] RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000000 [ 43.621547] R10: 0000000000080851 R11: 0000000000000212 R12: 000000000000a607 [ 43.628954] R13: 0000000000401f40 R14: 0000000000000000 R15: 0000000000000000 [ 43.637377] Kernel Offset: disabled [ 43.641005] Rebooting in 86400 seconds..