Starting mcstransd: [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [ 30.834546] kauditd_printk_skb: 9 callbacks suppressed [ 30.834558] audit: type=1800 audit(1540916503.099:33): pid=5644 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 30.865781] audit: type=1800 audit(1540916503.099:34): pid=5644 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 39.634334] audit: type=1400 audit(1540916511.889:35): avc: denied { map } for pid=5822 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Warning: Permanently added '10.128.0.83' (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 [ 46.351678] audit: type=1400 audit(1540916518.609:36): avc: denied { map } for pid=5835 comm="syz-executor563" path="/root/syz-executor563991060" dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 46.395177] audit: type=1400 audit(1540916518.609:37): avc: denied { map } for pid=5842 comm="syz-executor563" path="/dev/video4" dev="devtmpfs" ino=16360 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:v4l_device_t:s0 tclass=chr_file permissive=1 [ 46.438887] ================================================================== [ 46.446413] BUG: KASAN: use-after-free in vb2_mmap+0x65f/0x6e0 [ 46.452397] Read of size 8 at addr ffff8801b7012500 by task syz-executor563/5859 [ 46.459912] [ 46.461527] CPU: 0 PID: 5859 Comm: syz-executor563 Not tainted 4.19.0+ #90 [ 46.468537] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 46.477890] Call Trace: [ 46.480483] dump_stack+0x244/0x39d [ 46.484102] ? dump_stack_print_info.cold.1+0x20/0x20 [ 46.489281] ? printk+0xa7/0xcf [ 46.492547] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 46.497297] print_address_description.cold.7+0x9/0x1ff [ 46.502648] kasan_report.cold.8+0x242/0x309 [ 46.507044] ? vb2_mmap+0x65f/0x6e0 [ 46.510657] __asan_report_load8_noabort+0x14/0x20 [ 46.515594] vb2_mmap+0x65f/0x6e0 [ 46.519058] ? vb2_poll+0x1d0/0x1d0 [ 46.522672] vb2_fop_mmap+0x4b/0x70 [ 46.526288] v4l2_mmap+0x153/0x200 [ 46.529818] mmap_region+0xe85/0x1cd0 [ 46.533624] ? __x64_sys_brk+0x8b0/0x8b0 [ 46.537673] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.543202] ? inode_has_perm.isra.59+0x17a/0x210 [ 46.548036] ? mpx_unmapped_area_check+0xd8/0x108 [ 46.552881] ? selinux_file_open+0x5c0/0x5c0 [ 46.557278] ? arch_get_unmapped_area+0x750/0x750 [ 46.562112] ? lock_acquire+0x1ed/0x520 [ 46.566078] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.571627] ? selinux_mmap_addr+0x2d/0x110 [ 46.575947] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.581472] ? security_mmap_addr+0x80/0xa0 [ 46.585782] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 46.591304] ? get_unmapped_area+0x292/0x3b0 [ 46.595703] do_mmap+0xa22/0x1230 [ 46.599163] ? mmap_region+0x1cd0/0x1cd0 [ 46.603214] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 46.607264] ? down_read_killable+0x150/0x150 [ 46.611747] ? security_mmap_file+0x174/0x1b0 [ 46.616235] vm_mmap_pgoff+0x213/0x2c0 [ 46.620128] ? vma_is_stack_for_current+0xd0/0xd0 [ 46.624971] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 46.630511] ? security_file_permission+0x1c2/0x220 [ 46.635519] ksys_mmap_pgoff+0x4da/0x660 [ 46.639569] ? do_syscall_64+0x9a/0x820 [ 46.643538] ? find_mergeable_anon_vma+0xd0/0xd0 [ 46.648281] ? trace_hardirqs_on+0xbd/0x310 [ 46.652597] ? __ia32_sys_read+0xb0/0xb0 [ 46.656650] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.662012] ? trace_hardirqs_off_caller+0x310/0x310 [ 46.667123] __x64_sys_mmap+0xe9/0x1b0 [ 46.671018] do_syscall_64+0x1b9/0x820 [ 46.674906] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 46.680261] ? syscall_return_slowpath+0x5e0/0x5e0 [ 46.685177] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.690006] ? trace_hardirqs_on_caller+0x310/0x310 [ 46.695010] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 46.700014] ? prepare_exit_to_usermode+0x291/0x3b0 [ 46.705032] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 46.709878] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.715055] RIP: 0033:0x444ba9 [ 46.718232] 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 [ 46.737120] RSP: 002b:00007fff7efaf158 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 46.744812] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444ba9 [ 46.752066] RDX: 0000000002000002 RSI: 0000000000001000 RDI: 0000000020fff000 [ 46.759319] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 46.766572] R10: 0000000000000013 R11: 0000000000000212 R12: 000000000000b520 [ 46.773839] R13: 0000000000401ef0 R14: 0000000000000000 R15: 0000000000000000 [ 46.781115] [ 46.782730] Allocated by task 5854: [ 46.786358] save_stack+0x43/0xd0 [ 46.789815] kasan_kmalloc+0xc7/0xe0 [ 46.793519] __kmalloc+0x15b/0x760 [ 46.797045] __vb2_queue_alloc+0xf7/0xf20 [ 46.801175] vb2_core_reqbufs+0x971/0x1040 [ 46.805393] __vb2_init_fileio+0x344/0xc90 [ 46.809617] __vb2_perform_fileio+0xcfb/0x1210 [ 46.814181] vb2_write+0x38/0x50 [ 46.817531] vb2_fop_write+0x20a/0x400 [ 46.821418] v4l2_write+0x168/0x220 [ 46.825043] __vfs_write+0x119/0x9f0 [ 46.828740] vfs_write+0x1fc/0x560 [ 46.832263] ksys_write+0x101/0x260 [ 46.835874] __x64_sys_write+0x73/0xb0 [ 46.839748] do_syscall_64+0x1b9/0x820 [ 46.843625] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.848795] [ 46.850411] Freed by task 5854: [ 46.853675] save_stack+0x43/0xd0 [ 46.857116] __kasan_slab_free+0x102/0x150 [ 46.861335] kasan_slab_free+0xe/0x10 [ 46.865130] kfree+0xcf/0x230 [ 46.868234] __vb2_queue_free+0x5e2/0xa30 [ 46.872452] vb2_core_reqbufs+0x2da/0x1040 [ 46.876672] __vb2_cleanup_fileio+0xf0/0x160 [ 46.881074] vb2_core_queue_release+0x1e/0x80 [ 46.885552] _vb2_fop_release+0x1d2/0x2b0 [ 46.889684] vb2_fop_release+0x77/0xc0 [ 46.893558] vivid_fop_release+0x18e/0x440 [ 46.897777] v4l2_release+0xfb/0x1a0 [ 46.901477] __fput+0x385/0xa30 [ 46.904745] ____fput+0x15/0x20 [ 46.908008] task_work_run+0x1e8/0x2a0 [ 46.911882] exit_to_usermode_loop+0x318/0x380 [ 46.916465] do_syscall_64+0x6be/0x820 [ 46.920339] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 46.925507] [ 46.927139] The buggy address belongs to the object at ffff8801b7012500 [ 46.927139] which belongs to the cache kmalloc-512 of size 512 [ 46.939802] The buggy address is located 0 bytes inside of [ 46.939802] 512-byte region [ffff8801b7012500, ffff8801b7012700) [ 46.951500] The buggy address belongs to the page: [ 46.956412] page:ffffea0006dc0480 count:1 mapcount:0 mapping:ffff8801da800940 index:0x0 [ 46.964538] flags: 0x2fffc0000000200(slab) [ 46.968758] raw: 02fffc0000000200 ffffea00070136c8 ffffea00075c5e88 ffff8801da800940 [ 46.976635] raw: 0000000000000000 ffff8801b7012000 0000000100000006 0000000000000000 [ 46.984495] page dumped because: kasan: bad access detected [ 46.990200] [ 46.991819] Memory state around the buggy address: [ 46.996746] ffff8801b7012400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.004086] ffff8801b7012480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 47.011430] >ffff8801b7012500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.018767] ^ [ 47.022116] ffff8801b7012580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.029459] ffff8801b7012600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.036811] ================================================================== [ 47.044152] Disabling lock debugging due to kernel taint [ 47.051480] Kernel panic - not syncing: panic_on_warn set ... [ 47.051480] [ 47.058857] CPU: 0 PID: 5859 Comm: syz-executor563 Tainted: G B 4.19.0+ #90 [ 47.067239] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.076574] Call Trace: [ 47.079156] dump_stack+0x244/0x39d [ 47.082768] ? dump_stack_print_info.cold.1+0x20/0x20 [ 47.087945] panic+0x238/0x4e7 [ 47.091140] ? add_taint.cold.5+0x16/0x16 [ 47.095288] ? preempt_schedule+0x4d/0x60 [ 47.099449] ? ___preempt_schedule+0x16/0x18 [ 47.103842] ? trace_hardirqs_on+0xb4/0x310 [ 47.108150] kasan_end_report+0x47/0x4f [ 47.112108] kasan_report.cold.8+0x76/0x309 [ 47.116419] ? vb2_mmap+0x65f/0x6e0 [ 47.120033] __asan_report_load8_noabort+0x14/0x20 [ 47.124946] vb2_mmap+0x65f/0x6e0 [ 47.128385] ? vb2_poll+0x1d0/0x1d0 [ 47.131996] vb2_fop_mmap+0x4b/0x70 [ 47.135626] v4l2_mmap+0x153/0x200 [ 47.139164] mmap_region+0xe85/0x1cd0 [ 47.142988] ? __x64_sys_brk+0x8b0/0x8b0 [ 47.147047] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.152571] ? inode_has_perm.isra.59+0x17a/0x210 [ 47.157420] ? mpx_unmapped_area_check+0xd8/0x108 [ 47.162274] ? selinux_file_open+0x5c0/0x5c0 [ 47.166693] ? arch_get_unmapped_area+0x750/0x750 [ 47.171523] ? lock_acquire+0x1ed/0x520 [ 47.175482] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.181002] ? selinux_mmap_addr+0x2d/0x110 [ 47.185308] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.190829] ? security_mmap_addr+0x80/0xa0 [ 47.195143] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 47.200686] ? get_unmapped_area+0x292/0x3b0 [ 47.205107] do_mmap+0xa22/0x1230 [ 47.208560] ? mmap_region+0x1cd0/0x1cd0 [ 47.212622] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 47.216667] ? down_read_killable+0x150/0x150 [ 47.221148] ? security_mmap_file+0x174/0x1b0 [ 47.225661] vm_mmap_pgoff+0x213/0x2c0 [ 47.229568] ? vma_is_stack_for_current+0xd0/0xd0 [ 47.234412] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.239934] ? security_file_permission+0x1c2/0x220 [ 47.244935] ksys_mmap_pgoff+0x4da/0x660 [ 47.248982] ? do_syscall_64+0x9a/0x820 [ 47.252940] ? find_mergeable_anon_vma+0xd0/0xd0 [ 47.257697] ? trace_hardirqs_on+0xbd/0x310 [ 47.262007] ? __ia32_sys_read+0xb0/0xb0 [ 47.266060] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.271421] ? trace_hardirqs_off_caller+0x310/0x310 [ 47.276511] __x64_sys_mmap+0xe9/0x1b0 [ 47.280388] do_syscall_64+0x1b9/0x820 [ 47.284262] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 47.289628] ? syscall_return_slowpath+0x5e0/0x5e0 [ 47.294545] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.299380] ? trace_hardirqs_on_caller+0x310/0x310 [ 47.304401] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 47.309420] ? prepare_exit_to_usermode+0x291/0x3b0 [ 47.314428] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 47.319267] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.324439] RIP: 0033:0x444ba9 [ 47.327628] 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 [ 47.346512] RSP: 002b:00007fff7efaf158 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 47.354199] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444ba9 [ 47.361457] RDX: 0000000002000002 RSI: 0000000000001000 RDI: 0000000020fff000 [ 47.368724] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 47.375978] R10: 0000000000000013 R11: 0000000000000212 R12: 000000000000b520 [ 47.383227] R13: 0000000000401ef0 R14: 0000000000000000 R15: 0000000000000000 [ 47.391703] Kernel Offset: disabled [ 47.395345] Rebooting in 86400 seconds..