[info] Using makefile-style concurrent boot in runlevel 2. [ 26.717634] audit: type=1800 audit(1540898841.009:21): pid=5522 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 26.744814] audit: type=1800 audit(1540898841.009:22): pid=5522 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.104' (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 syzkaller login: [ 41.155567] ================================================================== [ 41.163089] BUG: KASAN: use-after-free in vb2_mmap+0x65f/0x6e0 [ 41.169054] Read of size 8 at addr ffff8801d7878340 by task syz-executor530/5693 [ 41.176572] [ 41.178189] CPU: 1 PID: 5693 Comm: syz-executor530 Not tainted 4.19.0-next-20181030+ #101 [ 41.186497] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.195841] Call Trace: [ 41.198419] dump_stack+0x244/0x39d [ 41.202059] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.207249] ? printk+0xa7/0xcf [ 41.210516] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.215282] print_address_description.cold.7+0x9/0x1ff [ 41.220647] kasan_report.cold.8+0x242/0x309 [ 41.225043] ? vb2_mmap+0x65f/0x6e0 [ 41.228657] __asan_report_load8_noabort+0x14/0x20 [ 41.233578] vb2_mmap+0x65f/0x6e0 [ 41.237041] ? vb2_poll+0x1d0/0x1d0 [ 41.240668] vb2_fop_mmap+0x4b/0x70 [ 41.244325] v4l2_mmap+0x153/0x200 [ 41.247866] mmap_region+0xe85/0x1cd0 [ 41.251666] ? __x64_sys_brk+0x8b0/0x8b0 [ 41.255720] ? zap_class+0x640/0x640 [ 41.259430] ? mpx_unmapped_area_check+0xd8/0x108 [ 41.264269] ? arch_get_unmapped_area+0x750/0x750 [ 41.269114] ? lock_acquire+0x1ed/0x520 [ 41.273093] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 41.278112] ? cap_mmap_addr+0x52/0x130 [ 41.282086] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.287612] ? security_mmap_addr+0x80/0xa0 [ 41.291920] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.297448] ? get_unmapped_area+0x292/0x3b0 [ 41.301850] do_mmap+0xa22/0x1230 [ 41.305301] ? mmap_region+0x1cd0/0x1cd0 [ 41.309351] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 41.313414] ? down_read_killable+0x150/0x150 [ 41.317923] ? security_mmap_file+0x174/0x1b0 [ 41.322447] vm_mmap_pgoff+0x213/0x2c0 [ 41.326347] ? vma_is_stack_for_current+0xd0/0xd0 [ 41.331185] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.336736] ? security_file_permission+0x1c2/0x220 [ 41.341780] ksys_mmap_pgoff+0x4da/0x660 [ 41.345845] ? do_syscall_64+0x9a/0x820 [ 41.349809] ? find_mergeable_anon_vma+0xd0/0xd0 [ 41.354551] ? trace_hardirqs_on+0xbd/0x310 [ 41.358862] ? __ia32_sys_read+0xb0/0xb0 [ 41.362923] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.368276] ? trace_hardirqs_off_caller+0x300/0x300 [ 41.373387] __x64_sys_mmap+0xe9/0x1b0 [ 41.377277] do_syscall_64+0x1b9/0x820 [ 41.381155] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.386523] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.391448] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.396295] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.401313] ? prepare_exit_to_usermode+0x291/0x3b0 [ 41.406340] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.411178] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.416354] RIP: 0033:0x444ba9 [ 41.419537] 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.438428] RSP: 002b:00007ffec1466ed8 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 41.446124] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444ba9 [ 41.453380] RDX: 0000000002000002 RSI: 0000000000001000 RDI: 0000000020fff000 [ 41.460636] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 41.467900] R10: 0000000000000013 R11: 0000000000000216 R12: 000000000000a086 [ 41.475158] R13: 0000000000401ef0 R14: 0000000000000000 R15: 0000000000000000 [ 41.482419] [ 41.484032] Allocated by task 5695: [ 41.487649] save_stack+0x43/0xd0 [ 41.491100] kasan_kmalloc+0xc7/0xe0 [ 41.494819] __kmalloc+0x15b/0x760 [ 41.498354] __vb2_queue_alloc+0xf7/0xf20 [ 41.502527] vb2_core_reqbufs+0x971/0x1040 [ 41.506772] __vb2_init_fileio+0x344/0xc90 [ 41.511008] __vb2_perform_fileio+0xcfb/0x1210 [ 41.515573] vb2_write+0x38/0x50 [ 41.518940] vb2_fop_write+0x20a/0x400 [ 41.522825] v4l2_write+0x168/0x220 [ 41.526437] __vfs_write+0x119/0x9f0 [ 41.530147] vfs_write+0x1fc/0x560 [ 41.533689] ksys_write+0x101/0x260 [ 41.537405] __x64_sys_write+0x73/0xb0 [ 41.541287] do_syscall_64+0x1b9/0x820 [ 41.545185] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.550367] [ 41.551983] Freed by task 5695: [ 41.555263] save_stack+0x43/0xd0 [ 41.558729] __kasan_slab_free+0x102/0x150 [ 41.562971] kasan_slab_free+0xe/0x10 [ 41.566758] kfree+0xcf/0x230 [ 41.569851] __vb2_queue_free+0x5e2/0xa30 [ 41.573997] vb2_core_reqbufs+0x2da/0x1040 [ 41.578229] __vb2_cleanup_fileio+0xf0/0x160 [ 41.582623] vb2_core_queue_release+0x1e/0x80 [ 41.587109] _vb2_fop_release+0x1d2/0x2b0 [ 41.591248] vb2_fop_release+0x77/0xc0 [ 41.595131] vivid_fop_release+0x18e/0x440 [ 41.599353] v4l2_release+0xfb/0x1a0 [ 41.603061] __fput+0x3bc/0xa70 [ 41.606333] ____fput+0x15/0x20 [ 41.609612] task_work_run+0x1e8/0x2a0 [ 41.613500] exit_to_usermode_loop+0x318/0x380 [ 41.618075] do_syscall_64+0x6be/0x820 [ 41.621971] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.627145] [ 41.628774] The buggy address belongs to the object at ffff8801d7878340 [ 41.628774] which belongs to the cache kmalloc-512 of size 512 [ 41.641429] The buggy address is located 0 bytes inside of [ 41.641429] 512-byte region [ffff8801d7878340, ffff8801d7878540) [ 41.653113] The buggy address belongs to the page: [ 41.658044] page:ffffea00075e1e00 count:1 mapcount:0 mapping:ffff8801da800940 index:0xffff8801d78780c0 [ 41.667477] flags: 0x2fffc0000000200(slab) [ 41.671704] raw: 02fffc0000000200 ffffea0006f2f848 ffffea00075e0f88 ffff8801da800940 [ 41.679571] raw: ffff8801d78780c0 ffff8801d78780c0 0000000100000002 0000000000000000 [ 41.687435] page dumped because: kasan: bad access detected [ 41.693122] [ 41.694734] Memory state around the buggy address: [ 41.699667] ffff8801d7878200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 41.707023] ffff8801d7878280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.714375] >ffff8801d7878300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 41.721726] ^ [ 41.727167] ffff8801d7878380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.734525] ffff8801d7878400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.741871] ================================================================== [ 41.749250] Disabling lock debugging due to kernel taint [ 41.755453] Kernel panic - not syncing: panic_on_warn set ... [ 41.761373] CPU: 1 PID: 5693 Comm: syz-executor530 Tainted: G B 4.19.0-next-20181030+ #101 [ 41.771058] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.780396] Call Trace: [ 41.782988] dump_stack+0x244/0x39d [ 41.786608] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.791798] panic+0x2ad/0x55c [ 41.794987] ? add_taint.cold.5+0x16/0x16 [ 41.799138] ? preempt_schedule+0x4d/0x60 [ 41.803359] ? ___preempt_schedule+0x16/0x18 [ 41.808018] ? trace_hardirqs_on+0xb4/0x310 [ 41.812326] kasan_end_report+0x47/0x4f [ 41.816285] kasan_report.cold.8+0x76/0x309 [ 41.820601] ? vb2_mmap+0x65f/0x6e0 [ 41.824224] __asan_report_load8_noabort+0x14/0x20 [ 41.829138] vb2_mmap+0x65f/0x6e0 [ 41.832587] ? vb2_poll+0x1d0/0x1d0 [ 41.836212] vb2_fop_mmap+0x4b/0x70 [ 41.839838] v4l2_mmap+0x153/0x200 [ 41.843363] mmap_region+0xe85/0x1cd0 [ 41.847148] ? __x64_sys_brk+0x8b0/0x8b0 [ 41.851194] ? zap_class+0x640/0x640 [ 41.854899] ? mpx_unmapped_area_check+0xd8/0x108 [ 41.859738] ? arch_get_unmapped_area+0x750/0x750 [ 41.864583] ? lock_acquire+0x1ed/0x520 [ 41.868551] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 41.873552] ? cap_mmap_addr+0x52/0x130 [ 41.877512] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.883042] ? security_mmap_addr+0x80/0xa0 [ 41.887360] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.892897] ? get_unmapped_area+0x292/0x3b0 [ 41.897295] do_mmap+0xa22/0x1230 [ 41.900744] ? mmap_region+0x1cd0/0x1cd0 [ 41.904805] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 41.908852] ? down_read_killable+0x150/0x150 [ 41.913334] ? security_mmap_file+0x174/0x1b0 [ 41.917832] vm_mmap_pgoff+0x213/0x2c0 [ 41.921709] ? vma_is_stack_for_current+0xd0/0xd0 [ 41.926548] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.932123] ? security_file_permission+0x1c2/0x220 [ 41.937145] ksys_mmap_pgoff+0x4da/0x660 [ 41.941204] ? do_syscall_64+0x9a/0x820 [ 41.945177] ? find_mergeable_anon_vma+0xd0/0xd0 [ 41.949920] ? trace_hardirqs_on+0xbd/0x310 [ 41.954224] ? __ia32_sys_read+0xb0/0xb0 [ 41.958272] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.963622] ? trace_hardirqs_off_caller+0x300/0x300 [ 41.968711] __x64_sys_mmap+0xe9/0x1b0 [ 41.972607] do_syscall_64+0x1b9/0x820 [ 41.976484] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.981837] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.986754] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.991596] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.996601] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.001606] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.006435] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.011608] RIP: 0033:0x444ba9 [ 42.014787] 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.033678] RSP: 002b:00007ffec1466ed8 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 42.041380] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444ba9 [ 42.048653] RDX: 0000000002000002 RSI: 0000000000001000 RDI: 0000000020fff000 [ 42.055913] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 42.063168] R10: 0000000000000013 R11: 0000000000000216 R12: 000000000000a086 [ 42.070422] R13: 0000000000401ef0 R14: 0000000000000000 R15: 0000000000000000 [ 42.078648] Kernel Offset: disabled [ 42.082274] Rebooting in 86400 seconds..