[info] Using makefile-style concurrent boot in runlevel 2. [ 26.304288] audit: type=1800 audit(1543463075.226:21): pid=5843 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [ 26.323564] audit: type=1800 audit(1543463075.246:22): pid=5843 uid=0 auid=4294967295 ses=4294967295 subj=_ 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.123' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 37.363788] ================================================================== [ 37.371505] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 37.377469] Read of size 8 at addr ffff8881ccf824c0 by task syz-executor549/6047 [ 37.384982] [ 37.386647] CPU: 0 PID: 6047 Comm: syz-executor549 Not tainted 4.20.0-rc4+ #132 [ 37.394102] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.403445] Call Trace: [ 37.406037] dump_stack+0x244/0x39d [ 37.409692] ? dump_stack_print_info.cold.1+0x20/0x20 [ 37.414869] ? printk+0xa7/0xcf [ 37.418134] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 37.422969] print_address_description.cold.7+0x9/0x1ff [ 37.428344] kasan_report.cold.8+0x242/0x309 [ 37.432739] ? vb2_mmap+0x662/0x6f0 [ 37.436350] __asan_report_load8_noabort+0x14/0x20 [ 37.441276] vb2_mmap+0x662/0x6f0 [ 37.444726] ? vb2_poll+0x1d0/0x1d0 [ 37.448336] vb2_fop_mmap+0x4b/0x70 [ 37.451962] v4l2_mmap+0x153/0x200 [ 37.455500] mmap_region+0xe85/0x1cd0 [ 37.459294] ? __x64_sys_brk+0x8b0/0x8b0 [ 37.463343] ? smack_task_getsecid+0x1e6/0x3c0 [ 37.467920] ? lock_downgrade+0x900/0x900 [ 37.472072] ? check_preemption_disabled+0x48/0x280 [ 37.477085] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 37.482011] ? kasan_check_read+0x11/0x20 [ 37.486147] ? mpx_unmapped_area_check+0xd8/0x108 [ 37.490992] ? arch_get_unmapped_area+0x750/0x750 [ 37.495835] ? lock_acquire+0x1ed/0x520 [ 37.499805] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 37.504817] ? cap_mmap_addr+0x52/0x130 [ 37.508781] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 37.514308] ? security_mmap_addr+0x80/0xa0 [ 37.518614] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 37.524138] ? get_unmapped_area+0x292/0x3b0 [ 37.528532] do_mmap+0xa22/0x1230 [ 37.531997] ? mmap_region+0x1cd0/0x1cd0 [ 37.536051] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 37.540099] ? down_read_killable+0x150/0x150 [ 37.544580] ? security_mmap_file+0x174/0x1b0 [ 37.549064] vm_mmap_pgoff+0x213/0x2c0 [ 37.552944] ? vma_is_stack_for_current+0xd0/0xd0 [ 37.557772] ? smk_curacc+0x7f/0xa0 [ 37.561400] ? fget_raw+0x20/0x20 [ 37.564839] ? up_read+0x141/0x2c0 [ 37.568372] ksys_mmap_pgoff+0x4da/0x660 [ 37.572420] ? do_syscall_64+0x9a/0x820 [ 37.576643] ? find_mergeable_anon_vma+0xd0/0xd0 [ 37.581405] ? trace_hardirqs_on+0xbd/0x310 [ 37.585712] ? security_file_ioctl+0x94/0xc0 [ 37.590107] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.595458] ? trace_hardirqs_off_caller+0x310/0x310 [ 37.600559] __x64_sys_mmap+0xe9/0x1b0 [ 37.604445] do_syscall_64+0x1b9/0x820 [ 37.608319] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 37.613668] ? syscall_return_slowpath+0x5e0/0x5e0 [ 37.618581] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.623413] ? trace_hardirqs_on_caller+0x310/0x310 [ 37.628416] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 37.633425] ? prepare_exit_to_usermode+0x291/0x3b0 [ 37.638431] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 37.643269] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.648442] RIP: 0033:0x444c89 [ 37.651628] 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 [ 37.670512] RSP: 002b:00007ffcbe3de368 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 37.678205] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 37.685460] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 37.692717] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 37.699976] R10: 0000000000000011 R11: 0000000000000216 R12: 00000000000091d0 [ 37.707234] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 37.714496] [ 37.716112] Allocated by task 6045: [ 37.719734] save_stack+0x43/0xd0 [ 37.723180] kasan_kmalloc+0xc7/0xe0 [ 37.726878] __kmalloc+0x15b/0x760 [ 37.730405] __vb2_queue_alloc+0xf7/0xf90 [ 37.734536] vb2_core_create_bufs+0x401/0x8c0 [ 37.739014] vb2_create_bufs+0x3c6/0x7f0 [ 37.743070] vb2_ioctl_create_bufs+0x25e/0x3d0 [ 37.747644] v4l_create_bufs+0x152/0x230 [ 37.751689] __video_do_ioctl+0x8b1/0x1050 [ 37.755907] video_usercopy+0x5c1/0x1760 [ 37.759952] video_ioctl2+0x2c/0x33 [ 37.763573] v4l2_ioctl+0x154/0x1b0 [ 37.767182] do_vfs_ioctl+0x1de/0x1790 [ 37.771049] ksys_ioctl+0xa9/0xd0 [ 37.774487] __x64_sys_ioctl+0x73/0xb0 [ 37.778360] do_syscall_64+0x1b9/0x820 [ 37.782250] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.787421] [ 37.789034] Freed by task 6045: [ 37.792296] save_stack+0x43/0xd0 [ 37.795732] __kasan_slab_free+0x102/0x150 [ 37.799948] kasan_slab_free+0xe/0x10 [ 37.803742] kfree+0xcf/0x230 [ 37.806847] __vb2_queue_free+0x5e2/0xa30 [ 37.811066] vb2_core_queue_release+0x62/0x80 [ 37.815545] _vb2_fop_release+0x1d2/0x2b0 [ 37.819690] vb2_fop_release+0x77/0xc0 [ 37.823562] vivid_fop_release+0x18e/0x440 [ 37.827781] v4l2_release+0x224/0x3a0 [ 37.831569] __fput+0x385/0xa30 [ 37.834829] ____fput+0x15/0x20 [ 37.838117] task_work_run+0x1e8/0x2a0 [ 37.841993] do_exit+0x1ad6/0x26d0 [ 37.845526] do_group_exit+0x177/0x440 [ 37.849409] __x64_sys_exit_group+0x3e/0x50 [ 37.853723] do_syscall_64+0x1b9/0x820 [ 37.857612] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 37.862783] [ 37.864401] The buggy address belongs to the object at ffff8881ccf824c0 [ 37.864401] which belongs to the cache kmalloc-1k of size 1024 [ 37.877042] The buggy address is located 0 bytes inside of [ 37.877042] 1024-byte region [ffff8881ccf824c0, ffff8881ccf828c0) [ 37.888811] The buggy address belongs to the page: [ 37.893730] page:ffffea000733e080 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0x0 compound_mapcount: 0 [ 37.903776] flags: 0x2fffc0000010200(slab|head) [ 37.908439] raw: 02fffc0000010200 ffffea0007065208 ffffea0007069a08 ffff8881da800ac0 [ 37.916314] raw: 0000000000000000 ffff8881ccf82040 0000000100000007 0000000000000000 [ 37.924175] page dumped because: kasan: bad access detected [ 37.930055] [ 37.931665] Memory state around the buggy address: [ 37.936578] ffff8881ccf82380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.943948] ffff8881ccf82400: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 37.951320] >ffff8881ccf82480: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 37.958660] ^ executing program [ 37.964106] ffff8881ccf82500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.971460] ffff8881ccf82580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.978803] ================================================================== [ 37.986151] Disabling lock debugging due to kernel taint [ 37.992617] Kernel panic - not syncing: panic_on_warn set ... [ 37.997011] kobject: 'regulatory.0' (00000000ab15b0d3): kobject_uevent_env [ 37.998518] CPU: 0 PID: 6047 Comm: syz-executor549 Tainted: G B 4.20.0-rc4+ #132 [ 37.998525] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 37.998532] Call Trace: [ 38.006742] kobject: 'regulatory.0' (00000000ab15b0d3): fill_kobj_path: path = '/devices/platform/regulatory.0' [ 38.014363] dump_stack+0x244/0x39d [ 38.014380] ? dump_stack_print_info.cold.1+0x20/0x20 [ 38.014398] panic+0x2ad/0x55c [ 38.014412] ? add_taint.cold.5+0x16/0x16 [ 38.052681] ? preempt_schedule+0x4d/0x60 [ 38.056821] ? ___preempt_schedule+0x16/0x18 [ 38.061236] ? trace_hardirqs_on+0xb4/0x310 [ 38.065546] kasan_end_report+0x47/0x4f [ 38.069506] kasan_report.cold.8+0x76/0x309 [ 38.073813] ? vb2_mmap+0x662/0x6f0 [ 38.077514] __asan_report_load8_noabort+0x14/0x20 [ 38.082434] vb2_mmap+0x662/0x6f0 [ 38.085873] ? vb2_poll+0x1d0/0x1d0 [ 38.089486] vb2_fop_mmap+0x4b/0x70 [ 38.093095] v4l2_mmap+0x153/0x200 [ 38.096619] mmap_region+0xe85/0x1cd0 [ 38.100417] ? __x64_sys_brk+0x8b0/0x8b0 [ 38.104468] ? smack_task_getsecid+0x1e6/0x3c0 [ 38.109037] ? lock_downgrade+0x900/0x900 [ 38.113171] ? check_preemption_disabled+0x48/0x280 [ 38.118171] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 38.123081] ? kasan_check_read+0x11/0x20 [ 38.127211] ? mpx_unmapped_area_check+0xd8/0x108 [ 38.132041] ? arch_get_unmapped_area+0x750/0x750 [ 38.136867] ? lock_acquire+0x1ed/0x520 [ 38.140827] ? __sanitizer_cov_trace_cmp8+0x18/0x20 [ 38.145827] ? cap_mmap_addr+0x52/0x130 [ 38.149820] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 38.155358] ? security_mmap_addr+0x80/0xa0 [ 38.159690] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 38.165233] ? get_unmapped_area+0x292/0x3b0 [ 38.169651] do_mmap+0xa22/0x1230 [ 38.173092] ? mmap_region+0x1cd0/0x1cd0 [ 38.177150] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 38.181199] ? down_read_killable+0x150/0x150 [ 38.185680] ? security_mmap_file+0x174/0x1b0 [ 38.190165] vm_mmap_pgoff+0x213/0x2c0 [ 38.194183] ? vma_is_stack_for_current+0xd0/0xd0 [ 38.199028] ? smk_curacc+0x7f/0xa0 [ 38.202639] ? fget_raw+0x20/0x20 [ 38.206086] ? up_read+0x141/0x2c0 [ 38.209626] ksys_mmap_pgoff+0x4da/0x660 [ 38.213671] ? do_syscall_64+0x9a/0x820 [ 38.217632] ? find_mergeable_anon_vma+0xd0/0xd0 [ 38.222384] ? trace_hardirqs_on+0xbd/0x310 [ 38.226698] ? security_file_ioctl+0x94/0xc0 [ 38.231118] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.236482] ? trace_hardirqs_off_caller+0x310/0x310 [ 38.241580] __x64_sys_mmap+0xe9/0x1b0 [ 38.245465] do_syscall_64+0x1b9/0x820 [ 38.249339] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 38.254686] ? syscall_return_slowpath+0x5e0/0x5e0 [ 38.259604] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.264442] ? trace_hardirqs_on_caller+0x310/0x310 [ 38.269446] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 38.274448] ? prepare_exit_to_usermode+0x291/0x3b0 [ 38.279885] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 38.284714] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 38.289895] RIP: 0033:0x444c89 [ 38.293093] 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 [ 38.311980] RSP: 002b:00007ffcbe3de368 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 38.319767] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 38.327020] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 38.334273] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 38.341582] R10: 0000000000000011 R11: 0000000000000216 R12: 00000000000091d0 [ 38.348969] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 38.357388] Kernel Offset: disabled [ 38.361018] Rebooting in 86400 seconds..