[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [ 32.616802] kauditd_printk_skb: 9 callbacks suppressed [ 32.616812] audit: type=1800 audit(1543465118.516:33): pid=6054 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 [ 32.651541] audit: type=1800 audit(1543465118.516:34): pid=6054 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.826721] audit: type=1400 audit(1543465120.726:35): avc: denied { map } for pid=6231 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.10.58' (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.460637] audit: type=1400 audit(1543465127.356:36): avc: denied { map } for pid=6245 comm="syz-executor946" path="/root/syz-executor946522950" dev="sda1" ino=16484 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 executing program executing program executing program executing program [ 41.494371] audit: type=1400 audit(1543465127.356:37): avc: denied { map } for pid=6252 comm="syz-executor946" path="/dev/swradio0" dev="devtmpfs" ino=16442 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=1 [ 41.555161] ================================================================== [ 41.562664] BUG: KASAN: use-after-free in vb2_mmap+0x662/0x6f0 [ 41.568627] Read of size 8 at addr ffff8881c26e3b00 by task syz-executor946/6274 [ 41.576259] [ 41.577878] CPU: 1 PID: 6274 Comm: syz-executor946 Not tainted 4.20.0-rc4+ #133 [ 41.585305] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.594642] Call Trace: [ 41.597247] dump_stack+0x244/0x39d executing program [ 41.600862] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.606045] ? printk+0xa7/0xcf [ 41.609307] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.614051] print_address_description.cold.7+0x9/0x1ff [ 41.619418] kasan_report.cold.8+0x242/0x309 [ 41.623824] ? vb2_mmap+0x662/0x6f0 [ 41.627457] __asan_report_load8_noabort+0x14/0x20 [ 41.632382] vb2_mmap+0x662/0x6f0 [ 41.635849] ? vb2_poll+0x1d0/0x1d0 [ 41.639476] vb2_fop_mmap+0x4b/0x70 [ 41.643089] v4l2_mmap+0x153/0x200 [ 41.646705] mmap_region+0xe85/0x1cd0 [ 41.650504] ? __x64_sys_brk+0x8b0/0x8b0 [ 41.654557] ? selinux_task_getsecid+0x1f9/0x3a0 [ 41.659301] ? lock_downgrade+0x900/0x900 [ 41.663444] ? check_preemption_disabled+0x48/0x280 [ 41.668467] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 41.673426] ? kasan_check_read+0x11/0x20 [ 41.677563] ? mpx_unmapped_area_check+0xd8/0x108 [ 41.682399] ? arch_get_unmapped_area+0x750/0x750 [ 41.687234] ? lock_acquire+0x1ed/0x520 [ 41.691197] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.696733] ? selinux_mmap_addr+0x2d/0x110 [ 41.701040] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.706564] ? security_mmap_addr+0x80/0xa0 [ 41.710873] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.716932] ? get_unmapped_area+0x292/0x3b0 [ 41.721350] do_mmap+0xa22/0x1230 [ 41.724806] ? mmap_region+0x1cd0/0x1cd0 [ 41.728854] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 41.732948] ? down_read_killable+0x150/0x150 [ 41.737439] ? security_mmap_file+0x174/0x1b0 [ 41.741925] vm_mmap_pgoff+0x213/0x2c0 [ 41.745806] ? vma_is_stack_for_current+0xd0/0xd0 [ 41.750659] ? selinux_file_mprotect+0x620/0x620 [ 41.755409] ? up_read+0x225/0x2c0 [ 41.758938] ksys_mmap_pgoff+0x4da/0x660 [ 41.762988] ? do_syscall_64+0x9a/0x820 [ 41.766962] ? find_mergeable_anon_vma+0xd0/0xd0 [ 41.771720] ? trace_hardirqs_on+0xbd/0x310 [ 41.776025] ? security_file_ioctl+0x94/0xc0 [ 41.780432] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.785816] ? trace_hardirqs_off_caller+0x310/0x310 [ 41.790913] __x64_sys_mmap+0xe9/0x1b0 [ 41.794801] do_syscall_64+0x1b9/0x820 [ 41.798706] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.804057] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.808972] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.813833] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.818841] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 41.823855] ? prepare_exit_to_usermode+0x291/0x3b0 [ 41.828867] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.833700] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.838874] RIP: 0033:0x444c89 [ 41.842053] 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.860951] RSP: 002b:00007ffe9704d828 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 41.868651] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 41.875910] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 41.883281] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 41.890557] R10: 0000000000000011 R11: 0000000000000212 R12: 000000000000a22c [ 41.897823] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 41.905097] [ 41.906729] Allocated by task 6273: [ 41.910345] save_stack+0x43/0xd0 [ 41.913782] kasan_kmalloc+0xc7/0xe0 [ 41.917507] __kmalloc+0x15b/0x760 [ 41.921045] __vb2_queue_alloc+0xf7/0xf90 [ 41.925181] vb2_core_create_bufs+0x401/0x8c0 [ 41.929661] vb2_create_bufs+0x3c6/0x7f0 [ 41.933709] vb2_ioctl_create_bufs+0x25e/0x3d0 [ 41.938275] v4l_create_bufs+0x152/0x230 [ 41.942325] __video_do_ioctl+0x8b1/0x1050 [ 41.946580] video_usercopy+0x5c1/0x1760 [ 41.950635] video_ioctl2+0x2c/0x33 [ 41.954248] v4l2_ioctl+0x154/0x1b0 [ 41.957864] do_vfs_ioctl+0x1de/0x1790 [ 41.961750] ksys_ioctl+0xa9/0xd0 [ 41.965191] __x64_sys_ioctl+0x73/0xb0 [ 41.969071] do_syscall_64+0x1b9/0x820 [ 41.972951] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.978131] [ 41.979742] Freed by task 6273: [ 41.983015] save_stack+0x43/0xd0 [ 41.986459] __kasan_slab_free+0x102/0x150 [ 41.990678] kasan_slab_free+0xe/0x10 [ 41.994460] kfree+0xcf/0x230 [ 41.997555] __vb2_queue_free+0x5e2/0xa30 [ 42.001685] vb2_core_queue_release+0x62/0x80 [ 42.006164] _vb2_fop_release+0x1d2/0x2b0 [ 42.010294] vb2_fop_release+0x77/0xc0 [ 42.014173] vivid_fop_release+0x18e/0x440 [ 42.018402] v4l2_release+0x224/0x3a0 [ 42.022277] __fput+0x385/0xa30 [ 42.025555] ____fput+0x15/0x20 [ 42.028821] task_work_run+0x1e8/0x2a0 [ 42.032697] do_exit+0x1ad6/0x26d0 [ 42.036222] do_group_exit+0x177/0x440 [ 42.040096] __x64_sys_exit_group+0x3e/0x50 [ 42.044406] do_syscall_64+0x1b9/0x820 [ 42.048286] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.053463] [ 42.055078] The buggy address belongs to the object at ffff8881c26e3b00 [ 42.055078] which belongs to the cache kmalloc-1k of size 1024 [ 42.067739] The buggy address is located 0 bytes inside of [ 42.067739] 1024-byte region [ffff8881c26e3b00, ffff8881c26e3f00) [ 42.079607] The buggy address belongs to the page: [ 42.084531] page:ffffea000709b880 count:1 mapcount:0 mapping:ffff8881da800ac0 index:0x0 compound_mapcount: 0 [ 42.094487] flags: 0x2fffc0000010200(slab|head) [ 42.099152] raw: 02fffc0000010200 ffffea00070c5288 ffffea00070cdf88 ffff8881da800ac0 [ 42.107020] raw: 0000000000000000 ffff8881c26e2000 0000000100000007 0000000000000000 [ 42.114878] page dumped because: kasan: bad access detected [ 42.120567] [ 42.122175] Memory state around the buggy address: [ 42.127086] ffff8881c26e3a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.134430] ffff8881c26e3a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 42.141790] >ffff8881c26e3b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.149131] ^ [ 42.152496] ffff8881c26e3b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.159838] ffff8881c26e3c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.167201] ================================================================== [ 42.174543] Disabling lock debugging due to kernel taint [ 42.180316] Kernel panic - not syncing: panic_on_warn set ... [ 42.186219] CPU: 1 PID: 6274 Comm: syz-executor946 Tainted: G B 4.20.0-rc4+ #133 [ 42.195046] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.204389] Call Trace: [ 42.206971] dump_stack+0x244/0x39d [ 42.210591] ? dump_stack_print_info.cold.1+0x20/0x20 [ 42.215789] panic+0x2ad/0x55c [ 42.218975] ? add_taint.cold.5+0x16/0x16 [ 42.223108] ? preempt_schedule+0x4d/0x60 [ 42.227239] ? ___preempt_schedule+0x16/0x18 [ 42.231646] ? trace_hardirqs_on+0xb4/0x310 [ 42.235953] kasan_end_report+0x47/0x4f [ 42.239918] kasan_report.cold.8+0x76/0x309 [ 42.244233] ? vb2_mmap+0x662/0x6f0 [ 42.247845] __asan_report_load8_noabort+0x14/0x20 [ 42.252759] vb2_mmap+0x662/0x6f0 [ 42.256197] ? vb2_poll+0x1d0/0x1d0 [ 42.259807] vb2_fop_mmap+0x4b/0x70 [ 42.263416] v4l2_mmap+0x153/0x200 [ 42.266941] mmap_region+0xe85/0x1cd0 [ 42.270734] ? __x64_sys_brk+0x8b0/0x8b0 [ 42.274784] ? selinux_task_getsecid+0x1f9/0x3a0 [ 42.279526] ? lock_downgrade+0x900/0x900 [ 42.283663] ? check_preemption_disabled+0x48/0x280 [ 42.288666] ? rcu_read_unlock_special+0x1c0/0x1c0 [ 42.293592] ? kasan_check_read+0x11/0x20 [ 42.297722] ? mpx_unmapped_area_check+0xd8/0x108 [ 42.302560] ? arch_get_unmapped_area+0x750/0x750 [ 42.307389] ? lock_acquire+0x1ed/0x520 [ 42.311351] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.316881] ? selinux_mmap_addr+0x2d/0x110 [ 42.321193] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.326739] ? security_mmap_addr+0x80/0xa0 [ 42.331062] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.336588] ? get_unmapped_area+0x292/0x3b0 [ 42.340983] do_mmap+0xa22/0x1230 [ 42.344423] ? mmap_region+0x1cd0/0x1cd0 [ 42.348486] ? vm_mmap_pgoff+0x1b5/0x2c0 [ 42.352539] ? down_read_killable+0x150/0x150 [ 42.357025] ? security_mmap_file+0x174/0x1b0 [ 42.361515] vm_mmap_pgoff+0x213/0x2c0 [ 42.365413] ? vma_is_stack_for_current+0xd0/0xd0 [ 42.370245] ? selinux_file_mprotect+0x620/0x620 [ 42.374986] ? up_read+0x225/0x2c0 [ 42.378526] ksys_mmap_pgoff+0x4da/0x660 [ 42.382576] ? do_syscall_64+0x9a/0x820 [ 42.386554] ? find_mergeable_anon_vma+0xd0/0xd0 [ 42.391294] ? trace_hardirqs_on+0xbd/0x310 [ 42.395619] ? security_file_ioctl+0x94/0xc0 [ 42.400013] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.405379] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.410471] __x64_sys_mmap+0xe9/0x1b0 [ 42.414351] do_syscall_64+0x1b9/0x820 [ 42.418226] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.423573] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.428491] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.433329] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.438358] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.443375] ? prepare_exit_to_usermode+0x291/0x3b0 [ 42.448417] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.453263] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.458435] RIP: 0033:0x444c89 [ 42.461614] 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.480504] RSP: 002b:00007ffe9704d828 EFLAGS: 00000212 ORIG_RAX: 0000000000000009 [ 42.488212] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444c89 [ 42.495505] RDX: fffffffffffffffd RSI: 0000000000002000 RDI: 0000000020ffe000 [ 42.502775] RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000000 [ 42.510030] R10: 0000000000000011 R11: 0000000000000212 R12: 000000000000a22c [ 42.517286] R13: 0000000000401fd0 R14: 0000000000000000 R15: 0000000000000000 [ 42.525737] Kernel Offset: disabled [ 42.529366] Rebooting in 86400 seconds..