[info] Using makefile-style concurrent boot in runlevel 2. [ 24.276471] audit: type=1800 audit(1540895899.922:21): pid=5495 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 24.304351] audit: type=1800 audit(1540895899.922:22): pid=5495 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.56' (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 syzkaller login: [ 36.160794] ================================================================== [ 36.168400] BUG: KASAN: use-after-free in vb2_mmap+0x65f/0x6e0 [ 36.174362] Read of size 8 at addr ffff8801bcddaac0 by task syz-executor694/5674 [ 36.181879] [ 36.183487] CPU: 1 PID: 5674 Comm: syz-executor694 Not tainted 4.19.0+ #213 [ 36.190576] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.199906] Call Trace: [ 36.202477] dump_stack+0x244/0x39d [ 36.206097] ? dump_stack_print_info.cold.1+0x20/0x20 [ 36.211271] ? printk+0xa7/0xcf [ 36.214531] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 36.219273] print_address_description.cold.7+0x9/0x1ff [ 36.224637] kasan_report.cold.8+0x242/0x309 [ 36.229037] ? vb2_mmap+0x65f/0x6e0 [ 36.232659] __asan_report_load8_noabort+0x14/0x20 [ 36.237577] vb2_mmap+0x65f/0x6e0 [ 36.241025] ? vb2_poll+0x1d0/0x1d0 [ 36.244667] vb2_fop_mmap+0x4b/0x70 [ 36.248282] v4l2_mmap+0x153/0x200 [ 36.251834] mmap_region+0xe85/0x1cd0 [ 36.255793] ? __x64_sys_brk+0x8b0/0x8b0 [ 36.259843] ? zap_class+0x640/0x640 [ 36.263547] ? __kernel_text_address+0xd/0x40 [ 36.268037] ? mpx_unmapped_area_check+0xd8/0x108 [ 36.272882] ? arch_get_unmapped_area+0x750/0x750 [ 36.277712] ? lock_acquire+0x1ed/0x520 [ 36.281674] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 36.286678] ? cap_mmap_addr+0x52/0x130 [ 36.290646] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.296171] ? security_mmap_addr+0x80/0xa0 [ 36.300484] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.306002] ? get_unmapped_area+0x292/0x3b0 [ 36.310418] do_mmap+0xa22/0x1230 [ 36.313861] ? mmap_region+0x1cd0/0x1cd0 [ 36.317921] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 36.321966] ? down_read_killable+0x150/0x150 [ 36.326448] ? security_mmap_file+0x174/0x1b0 [ 36.330935] vm_mmap_pgoff+0x213/0x2c0 [ 36.334879] ? vma_is_stack_for_current+0xd0/0xd0 [ 36.339807] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.345415] ? security_file_permission+0x1c2/0x220 [ 36.350447] ksys_mmap_pgoff+0x4da/0x660 [ 36.354510] ? do_fast_syscall_32+0x150/0xfb2 [ 36.358995] ? find_mergeable_anon_vma+0xd0/0xd0 [ 36.363742] ? trace_hardirqs_on+0xbd/0x310 [ 36.368059] ? __ia32_sys_read+0xb0/0xb0 [ 36.372253] ? entry_SYSENTER_compat+0x70/0x7f [ 36.376821] ? trace_hardirqs_off_caller+0x310/0x310 [ 36.381908] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 36.386407] do_fast_syscall_32+0x34d/0xfb2 [ 36.390712] ? do_int80_syscall_32+0x890/0x890 [ 36.395285] ? entry_SYSENTER_compat+0x68/0x7f [ 36.399851] ? trace_hardirqs_off_caller+0xbb/0x310 [ 36.404853] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.409697] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.414531] ? trace_hardirqs_on_caller+0x310/0x310 [ 36.419532] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 36.424669] ? prepare_exit_to_usermode+0x291/0x3b0 [ 36.429690] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.434526] entry_SYSENTER_compat+0x70/0x7f [ 36.438919] RIP: 0023:0xf7fcba29 [ 36.442273] 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 [ 36.461158] RSP: 002b:00000000ffb6de5c EFLAGS: 00000286 ORIG_RAX: 00000000000000c0 [ 36.468851] RAX: ffffffffffffffda RBX: 0000000020fff000 RCX: 0000000000001000 [ 36.476121] RDX: 0000000002000002 RSI: 0000000000000013 RDI: 0000000000000003 [ 36.483377] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 36.490630] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.497878] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.505148] [ 36.506758] Allocated by task 5673: [ 36.510372] save_stack+0x43/0xd0 [ 36.513807] kasan_kmalloc+0xc7/0xe0 [ 36.517499] __kmalloc+0x15b/0x760 [ 36.521019] __vb2_queue_alloc+0xf7/0xf20 [ 36.525148] vb2_core_reqbufs+0x971/0x1040 [ 36.529361] __vb2_init_fileio+0x344/0xc90 [ 36.533575] __vb2_perform_fileio+0xcfb/0x1210 [ 36.538141] vb2_write+0x38/0x50 [ 36.541486] vb2_fop_write+0x20a/0x400 [ 36.545354] v4l2_write+0x168/0x220 [ 36.548961] __vfs_write+0x119/0x9f0 [ 36.552654] vfs_write+0x1fc/0x560 [ 36.556289] ksys_write+0x101/0x260 [ 36.560167] __ia32_sys_write+0x71/0xb0 [ 36.564123] do_fast_syscall_32+0x34d/0xfb2 [ 36.568429] entry_SYSENTER_compat+0x70/0x7f [ 36.572811] [ 36.574420] Freed by task 5673: [ 36.577685] save_stack+0x43/0xd0 [ 36.581123] __kasan_slab_free+0x102/0x150 [ 36.585337] kasan_slab_free+0xe/0x10 [ 36.589116] kfree+0xcf/0x230 [ 36.592203] __vb2_queue_free+0x5e2/0xa30 [ 36.596331] vb2_core_reqbufs+0x2da/0x1040 [ 36.600546] __vb2_cleanup_fileio+0xf0/0x160 [ 36.605287] vb2_core_queue_release+0x1e/0x80 [ 36.609765] _vb2_fop_release+0x1d2/0x2b0 [ 36.614063] vb2_fop_release+0x77/0xc0 [ 36.617934] vivid_fop_release+0x18e/0x440 [ 36.622157] v4l2_release+0xfb/0x1a0 [ 36.625859] __fput+0x385/0xa30 [ 36.629116] ____fput+0x15/0x20 [ 36.632379] task_work_run+0x1e8/0x2a0 [ 36.636351] exit_to_usermode_loop+0x318/0x380 [ 36.640915] do_fast_syscall_32+0xcd5/0xfb2 [ 36.645231] entry_SYSENTER_compat+0x70/0x7f [ 36.649632] [ 36.651241] The buggy address belongs to the object at ffff8801bcddaac0 [ 36.651241] which belongs to the cache kmalloc-512 of size 512 [ 36.663879] The buggy address is located 0 bytes inside of [ 36.663879] 512-byte region [ffff8801bcddaac0, ffff8801bcddacc0) [ 36.675559] The buggy address belongs to the page: [ 36.680470] page:ffffea0006f37680 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 [ 36.688605] flags: 0x2fffc0000000200(slab) [ 36.692828] raw: 02fffc0000000200 ffffea0006f11d08 ffffea0006edf908 ffff8801da800940 [ 36.700706] raw: 0000000000000000 ffff8801bcdda0c0 0000000100000006 0000000000000000 [ 36.708566] page dumped because: kasan: bad access detected [ 36.714261] [ 36.715863] Memory state around the buggy address: [ 36.720772] ffff8801bcdda980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.728108] ffff8801bcddaa00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 36.735444] >ffff8801bcddaa80: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 36.742778] ^ [ 36.748361] ffff8801bcddab00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.755700] ffff8801bcddab80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 36.763282] ================================================================== [ 36.770634] Disabling lock debugging due to kernel taint [ 36.777248] Kernel panic - not syncing: panic_on_warn set ... [ 36.777248] [ 36.784627] CPU: 0 PID: 5674 Comm: syz-executor694 Tainted: G B 4.19.0+ #213 [ 36.793087] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.802416] Call Trace: [ 36.804993] dump_stack+0x244/0x39d [ 36.808602] ? dump_stack_print_info.cold.1+0x20/0x20 [ 36.813775] panic+0x238/0x4e7 [ 36.816946] ? add_taint.cold.5+0x16/0x16 [ 36.821213] ? preempt_schedule+0x4d/0x60 [ 36.825354] ? ___preempt_schedule+0x16/0x18 [ 36.829756] ? trace_hardirqs_on+0xb4/0x310 [ 36.830841] kobject: 'regulatory.0' (00000000a6b1ea7c): kobject_uevent_env [ 36.834063] kasan_end_report+0x47/0x4f [ 36.834075] kasan_report.cold.8+0x76/0x309 [ 36.834089] ? vb2_mmap+0x65f/0x6e0 [ 36.841203] kobject: 'regulatory.0' (00000000a6b1ea7c): fill_kobj_path: path = '/devices/platform/regulatory.0' [ 36.845147] __asan_report_load8_noabort+0x14/0x20 [ 36.845158] vb2_mmap+0x65f/0x6e0 [ 36.845171] ? vb2_poll+0x1d0/0x1d0 [ 36.845184] vb2_fop_mmap+0x4b/0x70 [ 36.878946] v4l2_mmap+0x153/0x200 [ 36.882468] mmap_region+0xe85/0x1cd0 [ 36.886387] ? __x64_sys_brk+0x8b0/0x8b0 [ 36.890433] ? zap_class+0x640/0x640 [ 36.894157] ? __kernel_text_address+0xd/0x40 [ 36.898638] ? mpx_unmapped_area_check+0xd8/0x108 [ 36.903602] ? arch_get_unmapped_area+0x750/0x750 [ 36.908439] ? lock_acquire+0x1ed/0x520 [ 36.912399] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 36.917400] ? cap_mmap_addr+0x52/0x130 [ 36.921352] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.926866] ? security_mmap_addr+0x80/0xa0 [ 36.931164] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 36.936679] ? get_unmapped_area+0x292/0x3b0 [ 36.941067] do_mmap+0xa22/0x1230 [ 36.944495] ? mmap_region+0x1cd0/0x1cd0 [ 36.948534] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 36.952582] ? down_read_killable+0x150/0x150 [ 36.957052] ? security_mmap_file+0x174/0x1b0 [ 36.961527] vm_mmap_pgoff+0x213/0x2c0 [ 36.965398] ? vma_is_stack_for_current+0xd0/0xd0 [ 36.970219] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 36.975730] ? security_file_permission+0x1c2/0x220 [ 36.980722] ksys_mmap_pgoff+0x4da/0x660 [ 36.984762] ? do_fast_syscall_32+0x150/0xfb2 [ 36.989235] ? find_mergeable_anon_vma+0xd0/0xd0 [ 36.993967] ? trace_hardirqs_on+0xbd/0x310 [ 36.998268] ? __ia32_sys_read+0xb0/0xb0 [ 37.002322] ? entry_SYSENTER_compat+0x70/0x7f [ 37.007103] ? trace_hardirqs_off_caller+0x310/0x310 [ 37.012185] __ia32_sys_mmap_pgoff+0xdd/0x1a0 [ 37.016667] do_fast_syscall_32+0x34d/0xfb2 [ 37.020976] ? do_int80_syscall_32+0x890/0x890 [ 37.025538] ? entry_SYSENTER_compat+0x68/0x7f [ 37.030111] ? trace_hardirqs_off_caller+0xbb/0x310 [ 37.035199] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.040036] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.044857] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.049851] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.054857] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.059848] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.064666] entry_SYSENTER_compat+0x70/0x7f [ 37.069314] RIP: 0023:0xf7fcba29 [ 37.072784] 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 [ 37.092406] RSP: 002b:00000000ffb6de5c EFLAGS: 00000286 ORIG_RAX: 00000000000000c0 [ 37.100089] RAX: ffffffffffffffda RBX: 0000000020fff000 RCX: 0000000000001000 [ 37.107334] RDX: 0000000002000002 RSI: 0000000000000013 RDI: 0000000000000003 [ 37.114596] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 37.121843] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 37.129089] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 37.137481] Kernel Offset: disabled [ 37.141122] Rebooting in 86400 seconds..