Starting mcstransd: [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 31.800728] audit: type=1800 audit(1541472298.969:33): pid=5680 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 [ 31.829846] audit: type=1800 audit(1541472298.969:34): pid=5680 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: [ 34.318639] audit: type=1400 audit(1541472301.489:35): avc: denied { map } for pid=5857 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 [ 34.350267] sshd (5854) used greatest stack depth: 15744 bytes left Warning: Permanently added '10.128.0.109' (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 [ 41.868670] audit: type=1400 audit(1541472309.039:36): avc: denied { map } for pid=5871 comm="syz-executor779" path="/root/syz-executor779258370" 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 [ 41.903564] audit: type=1400 audit(1541472309.039:37): avc: denied { map } for pid=5878 comm="syz-executor779" path="/dev/video4" dev="devtmpfs" ino=16213 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 [ 41.937507] ================================================================== [ 41.945048] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 41.951015] Read of size 8 at addr ffff8801b559fb00 by task syz-executor779/5887 [ 41.958561] [ 41.960205] CPU: 1 PID: 5887 Comm: syz-executor779 Not tainted 4.20.0-rc1+ #101 [ 41.967637] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.976974] Call Trace: [ 41.979563] dump_stack+0x244/0x39d [ 41.983184] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.988368] ? printk+0xa7/0xcf [ 41.991650] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.996406] print_address_description.cold.7+0x9/0x1ff [ 42.001789] kasan_report.cold.8+0x242/0x309 [ 42.006184] ? vb2_mmap+0x662/0x6f0 [ 42.009800] __asan_report_load8_noabort+0x14/0x20 [ 42.014717] vb2_mmap+0x662/0x6f0 [ 42.018162] ? vb2_poll+0x1d0/0x1d0 [ 42.021787] vb2_fop_mmap+0x4b/0x70 [ 42.025403] v4l2_mmap+0x153/0x200 [ 42.028930] mmap_region+0xe85/0x1cd0 [ 42.032720] ? __x64_sys_brk+0x8b0/0x8b0 [ 42.036774] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.042301] ? inode_has_perm.isra.59+0x17a/0x210 [ 42.047140] ? mpx_unmapped_area_check+0xd8/0x108 [ 42.051970] ? selinux_file_open+0x5c0/0x5c0 [ 42.056367] ? arch_get_unmapped_area+0x750/0x750 [ 42.061198] ? lock_acquire+0x1ed/0x520 [ 42.065169] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.070694] ? selinux_mmap_addr+0x2d/0x110 [ 42.075026] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.080570] ? security_mmap_addr+0x80/0xa0 [ 42.084917] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.090455] ? get_unmapped_area+0x292/0x3b0 [ 42.094857] do_mmap+0xa22/0x1230 [ 42.098311] ? mmap_region+0x1cd0/0x1cd0 [ 42.102380] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 42.106430] ? down_read_killable+0x150/0x150 [ 42.110941] ? security_mmap_file+0x174/0x1b0 [ 42.115423] vm_mmap_pgoff+0x213/0x2c0 [ 42.119305] ? vma_is_stack_for_current+0xd0/0xd0 [ 42.124138] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.129674] ? security_file_permission+0x1c2/0x220 [ 42.134699] ksys_mmap_pgoff+0x4da/0x660 [ 42.138767] ? do_syscall_64+0x9a/0x820 [ 42.142734] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.147492] ? trace_hardirqs_on+0xbd/0x310 [ 42.151809] ? __ia32_sys_read+0xb0/0xb0 [ 42.155878] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.161233] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.166340] __x64_sys_mmap+0xe9/0x1b0 [ 42.170235] do_syscall_64+0x1b9/0x820 [ 42.174111] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.179464] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.184380] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.189213] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.194220] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.199225] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.204228] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.209062] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.214236] RIP: 0033:0x444b89 [ 42.217424] 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.236309] RSP: 002b:00007ffe1b3bf468 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 42.244168] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444b89 [ 42.251423] RDX: 0000000000000003 RSI: 0000000000003000 RDI: 0000000020ffd000 [ 42.258685] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 42.265961] R10: 0000000000000011 R11: 0000000000000216 R12: 000000000000a38a [ 42.273217] R13: 0000000000401ed0 R14: 0000000000000000 R15: 0000000000000000 [ 42.280477] [ 42.282090] Allocated by task 5888: [ 42.285706] save_stack+0x43/0xd0 [ 42.289146] kasan_kmalloc+0xc7/0xe0 [ 42.292847] __kmalloc+0x15b/0x760 [ 42.296372] __vb2_queue_alloc+0xf7/0xf90 [ 42.300521] vb2_core_reqbufs+0x971/0x1040 [ 42.304763] __vb2_init_fileio+0x344/0xc90 [ 42.308984] __vb2_perform_fileio+0xcfd/0x1210 [ 42.313557] vb2_write+0x38/0x50 [ 42.316909] vb2_fop_write+0x20a/0x400 [ 42.320782] v4l2_write+0x168/0x220 [ 42.324400] __vfs_write+0x119/0x9f0 [ 42.328125] vfs_write+0x1fc/0x560 [ 42.331651] ksys_write+0x101/0x260 [ 42.335260] __x64_sys_write+0x73/0xb0 [ 42.339135] do_syscall_64+0x1b9/0x820 [ 42.343030] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.348206] [ 42.349875] Freed by task 5888: [ 42.353141] save_stack+0x43/0xd0 [ 42.356581] __kasan_slab_free+0x102/0x150 [ 42.360812] kasan_slab_free+0xe/0x10 [ 42.364609] kfree+0xcf/0x230 [ 42.367713] __vb2_queue_free+0x5e2/0xa30 [ 42.371858] vb2_core_reqbufs+0x2da/0x1040 [ 42.376089] __vb2_cleanup_fileio+0xf0/0x160 [ 42.380536] vb2_core_queue_release+0x1e/0x80 [ 42.385040] _vb2_fop_release+0x1d2/0x2b0 [ 42.389200] vb2_fop_release+0x77/0xc0 [ 42.393076] vivid_fop_release+0x18e/0x440 [ 42.397293] v4l2_release+0x224/0x3a0 [ 42.401076] __fput+0x385/0xa30 [ 42.404346] ____fput+0x15/0x20 [ 42.407651] task_work_run+0x1e8/0x2a0 [ 42.411540] exit_to_usermode_loop+0x318/0x380 [ 42.416118] do_syscall_64+0x6be/0x820 [ 42.420004] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.425188] [ 42.426847] The buggy address belongs to the object at ffff8801b559fb00 [ 42.426847] which belongs to the cache kmalloc-1k of size 1024 [ 42.439488] The buggy address is located 0 bytes inside of [ 42.439488] 1024-byte region [ffff8801b559fb00, ffff8801b559ff00) [ 42.451271] The buggy address belongs to the page: [ 42.456188] page:ffffea0006d56780 count:1 mapcount:0 mapping:ffff8801da800ac0 index:0x0 compound_mapcount: 0 [ 42.466170] flags: 0x2fffc0000010200(slab|head) [ 42.470841] raw: 02fffc0000010200 ffffea00075f7408 ffffea00075f0688 ffff8801da800ac0 [ 42.478737] raw: 0000000000000000 ffff8801b559e000 0000000100000007 0000000000000000 [ 42.486613] page dumped because: kasan: bad access detected [ 42.492310] [ 42.493956] Memory state around the buggy address: [ 42.498893] ffff8801b559fa00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.506261] ffff8801b559fa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.513604] >ffff8801b559fb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program [ 42.520951] ^ [ 42.524317] ffff8801b559fb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.531683] ffff8801b559fc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.539027] ================================================================== [ 42.546376] Disabling lock debugging due to kernel taint [ 42.552106] Kernel panic - not syncing: panic_on_warn set ... [ 42.558008] CPU: 1 PID: 5887 Comm: syz-executor779 Tainted: G B 4.20.0-rc1+ #101 [ 42.566838] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.576177] Call Trace: [ 42.578762] dump_stack+0x244/0x39d [ 42.582376] ? dump_stack_print_info.cold.1+0x20/0x20 [ 42.587562] panic+0x2ad/0x55c [ 42.590764] ? add_taint.cold.5+0x16/0x16 [ 42.594903] ? preempt_schedule+0x4d/0x60 [ 42.599036] ? ___preempt_schedule+0x16/0x18 [ 42.603444] ? trace_hardirqs_on+0xb4/0x310 [ 42.607755] kasan_end_report+0x47/0x4f [ 42.611717] kasan_report.cold.8+0x76/0x309 [ 42.616025] ? vb2_mmap+0x662/0x6f0 [ 42.619642] __asan_report_load8_noabort+0x14/0x20 [ 42.624576] vb2_mmap+0x662/0x6f0 [ 42.628025] ? vb2_poll+0x1d0/0x1d0 [ 42.631634] vb2_fop_mmap+0x4b/0x70 [ 42.635246] v4l2_mmap+0x153/0x200 [ 42.638791] mmap_region+0xe85/0x1cd0 [ 42.642591] ? __x64_sys_brk+0x8b0/0x8b0 [ 42.646669] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.652232] ? inode_has_perm.isra.59+0x17a/0x210 [ 42.657077] ? mpx_unmapped_area_check+0xd8/0x108 [ 42.661907] ? selinux_file_open+0x5c0/0x5c0 [ 42.666304] ? arch_get_unmapped_area+0x750/0x750 [ 42.671138] ? lock_acquire+0x1ed/0x520 [ 42.675097] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.680617] ? selinux_mmap_addr+0x2d/0x110 [ 42.684928] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.690457] ? security_mmap_addr+0x80/0xa0 [ 42.694776] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.700300] ? get_unmapped_area+0x292/0x3b0 [ 42.704697] do_mmap+0xa22/0x1230 [ 42.708133] ? mmap_region+0x1cd0/0x1cd0 [ 42.712177] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 42.716222] ? down_read_killable+0x150/0x150 [ 42.720705] ? security_mmap_file+0x174/0x1b0 [ 42.725185] vm_mmap_pgoff+0x213/0x2c0 [ 42.729075] ? vma_is_stack_for_current+0xd0/0xd0 [ 42.733908] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.739471] ? security_file_permission+0x1c2/0x220 [ 42.744501] ksys_mmap_pgoff+0x4da/0x660 [ 42.748556] ? do_syscall_64+0x9a/0x820 [ 42.752517] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.757266] ? trace_hardirqs_on+0xbd/0x310 [ 42.761604] ? __ia32_sys_read+0xb0/0xb0 [ 42.765667] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.771015] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.776103] __x64_sys_mmap+0xe9/0x1b0 [ 42.779977] do_syscall_64+0x1b9/0x820 [ 42.783848] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.789195] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.794106] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.798935] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.803934] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.808945] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.813948] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.818777] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.823951] RIP: 0033:0x444b89 [ 42.827129] 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.846013] RSP: 002b:00007ffe1b3bf468 EFLAGS: 00000216 ORIG_RAX: 0000000000000009 [ 42.853705] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444b89 [ 42.860958] RDX: 0000000000000003 RSI: 0000000000003000 RDI: 0000000020ffd000 [ 42.868232] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 42.875499] R10: 0000000000000011 R11: 0000000000000216 R12: 000000000000a38a [ 42.882757] R13: 0000000000401ed0 R14: 0000000000000000 R15: 0000000000000000 [ 42.890881] Kernel Offset: disabled [ 42.894503] Rebooting in 86400 seconds..