[ 34.727575][ T27] audit: type=1800 audit(1556917879.027:27): pid=7383 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 34.750912][ T27] audit: type=1800 audit(1556917879.027:28): pid=7383 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="ssh" dev="sda1" ino=2417 res=0 [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 35.538991][ T27] audit: type=1800 audit(1556917879.887:29): pid=7383 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 35.559369][ T27] audit: type=1800 audit(1556917879.887:30): pid=7383 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.207' (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 syzkaller login: [ 47.061350][ T7580] ================================================================== [ 47.069908][ T7580] BUG: KASAN: use-after-free in __vb2_perform_fileio+0x1065/0x1140 [ 47.078046][ T7580] Read of size 4 at addr ffff8880a8324c5c by task syz-executor710/7580 [ 47.086325][ T7580] [ 47.088661][ T7580] CPU: 0 PID: 7580 Comm: syz-executor710 Not tainted 5.1.0-rc7+ #100 [ 47.096725][ T7580] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.107170][ T7580] Call Trace: [ 47.110650][ T7580] dump_stack+0x172/0x1f0 [ 47.115270][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.120817][ T7580] print_address_description.cold+0x7c/0x20d [ 47.126804][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.132365][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.138015][ T7580] kasan_report.cold+0x1b/0x40 [ 47.142784][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.148599][ T7580] __asan_report_load4_noabort+0x14/0x20 [ 47.154450][ T7580] __vb2_perform_fileio+0x1065/0x1140 [ 47.159835][ T7580] ? vb2_thread_start+0x370/0x370 [ 47.164879][ T7580] ? fsnotify+0xbc0/0xbc0 [ 47.169366][ T7580] ? fsnotify_first_mark+0x210/0x210 [ 47.174918][ T7580] vb2_read+0x3b/0x50 [ 47.179081][ T7580] vb2_fop_read+0x212/0x410 [ 47.183600][ T7580] ? vb2_fop_write+0x410/0x410 [ 47.188366][ T7580] v4l2_read+0x1ce/0x230 [ 47.192637][ T7580] do_iter_read+0x4a9/0x660 [ 47.197154][ T7580] ? dup_iter+0x260/0x260 [ 47.201536][ T7580] vfs_readv+0xf0/0x160 [ 47.205781][ T7580] ? compat_rw_copy_check_uvector+0x3f0/0x3f0 [ 47.212152][ T7580] ? __handle_mm_fault+0x7cd/0x3ec0 [ 47.217464][ T7580] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 47.223186][ T7580] ? find_held_lock+0x35/0x130 [ 47.227963][ T7580] ? __do_page_fault+0x623/0xda0 [ 47.233099][ T7580] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.239352][ T7580] ? __fget_light+0x1a9/0x230 [ 47.244145][ T7580] do_readv+0x15e/0x370 [ 47.248313][ T7580] ? vfs_readv+0x160/0x160 [ 47.252875][ T7580] ? do_syscall_64+0x26/0x610 [ 47.257583][ T7580] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.263698][ T7580] ? do_syscall_64+0x26/0x610 [ 47.268611][ T7580] __x64_sys_readv+0x75/0xb0 [ 47.273570][ T7580] do_syscall_64+0x103/0x610 [ 47.278172][ T7580] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.284151][ T7580] RIP: 0033:0x444f19 [ 47.288267][ T7580] 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 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 47.308124][ T7580] RSP: 002b:00007fff4724f278 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 [ 47.316605][ T7580] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f19 [ 47.324577][ T7580] RDX: 0000000000000001 RSI: 0000000020001440 RDI: 0000000000000003 [ 47.332726][ T7580] RBP: 000000000000b7a1 R08: 0000000000000004 R09: 00000000004002e0 [ 47.340710][ T7580] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020b0 [ 47.348688][ T7580] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 47.356674][ T7580] [ 47.358996][ T7580] Allocated by task 7580: [ 47.363342][ T7580] save_stack+0x45/0xd0 [ 47.367526][ T7580] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 47.373186][ T7580] kasan_kmalloc+0x9/0x10 [ 47.377536][ T7580] kmem_cache_alloc_trace+0x151/0x760 [ 47.382904][ T7580] __vb2_init_fileio+0x1cb/0xbe0 [ 47.388035][ T7580] __vb2_perform_fileio+0xc01/0x1140 [ 47.393806][ T7580] vb2_read+0x3b/0x50 [ 47.398023][ T7580] vb2_fop_read+0x212/0x410 [ 47.402823][ T7580] v4l2_read+0x1ce/0x230 [ 47.408147][ T7580] do_iter_read+0x4a9/0x660 [ 47.413181][ T7580] vfs_readv+0xf0/0x160 [ 47.417337][ T7580] do_readv+0x15e/0x370 [ 47.421668][ T7580] __x64_sys_readv+0x75/0xb0 [ 47.426345][ T7580] do_syscall_64+0x103/0x610 [ 47.430944][ T7580] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.436912][ T7580] [ 47.439239][ T7580] Freed by task 7581: [ 47.443307][ T7580] save_stack+0x45/0xd0 [ 47.447540][ T7580] __kasan_slab_free+0x102/0x150 [ 47.452519][ T7580] kasan_slab_free+0xe/0x10 [ 47.457027][ T7580] kfree+0xcf/0x230 [ 47.460843][ T7580] __vb2_cleanup_fileio+0x100/0x170 [ 47.466222][ T7580] vb2_core_queue_release+0x20/0x80 [ 47.471424][ T7580] _vb2_fop_release+0x1cf/0x2a0 [ 47.476359][ T7580] vb2_fop_release+0x75/0xc0 [ 47.481059][ T7580] vivid_fop_release+0x18e/0x430 [ 47.486010][ T7580] v4l2_release+0x224/0x3a0 [ 47.490726][ T7580] __fput+0x2e5/0x8d0 [ 47.494865][ T7580] ____fput+0x16/0x20 [ 47.498859][ T7580] task_work_run+0x14a/0x1c0 [ 47.503494][ T7580] do_exit+0x90a/0x2fa0 [ 47.507664][ T7580] do_group_exit+0x135/0x370 [ 47.512344][ T7580] __x64_sys_exit_group+0x44/0x50 [ 47.517597][ T7580] do_syscall_64+0x103/0x610 [ 47.522192][ T7580] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.528279][ T7580] [ 47.530694][ T7580] The buggy address belongs to the object at ffff8880a8324940 [ 47.530694][ T7580] which belongs to the cache kmalloc-1k of size 1024 [ 47.545182][ T7580] The buggy address is located 796 bytes inside of [ 47.545182][ T7580] 1024-byte region [ffff8880a8324940, ffff8880a8324d40) [ 47.558624][ T7580] The buggy address belongs to the page: [ 47.564351][ T7580] page:ffffea0002a0c900 count:1 mapcount:0 mapping:ffff8880aa400ac0 index:0x0 compound_mapcount: 0 [ 47.575281][ T7580] flags: 0x1fffc0000010200(slab|head) [ 47.580831][ T7580] raw: 01fffc0000010200 ffffea00029fe188 ffffea0002372288 ffff8880aa400ac0 [ 47.589415][ T7580] raw: 0000000000000000 ffff8880a8324040 0000000100000007 0000000000000000 [ 47.598342][ T7580] page dumped because: kasan: bad access detected [ 47.604845][ T7580] [ 47.607167][ T7580] Memory state around the buggy address: [ 47.613180][ T7580] ffff8880a8324b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.621349][ T7580] ffff8880a8324b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.629594][ T7580] >ffff8880a8324c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.637976][ T7580] ^ [ 47.644921][ T7580] ffff8880a8324c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 47.653318][ T7580] ffff8880a8324d00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 47.661520][ T7580] ================================================================== [ 47.669589][ T7580] Disabling lock debugging due to kernel taint [ 47.676910][ T7580] Kernel panic - not syncing: panic_on_warn set ... [ 47.684007][ T7580] CPU: 0 PID: 7580 Comm: syz-executor710 Tainted: G B 5.1.0-rc7+ #100 [ 47.693689][ T7580] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 47.703933][ T7580] Call Trace: [ 47.707325][ T7580] dump_stack+0x172/0x1f0 [ 47.711671][ T7580] panic+0x2cb/0x65c [ 47.715796][ T7580] ? __warn_printk+0xf3/0xf3 [ 47.720507][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.726064][ T7580] ? preempt_schedule+0x4b/0x60 [ 47.731005][ T7580] ? ___preempt_schedule+0x16/0x18 [ 47.736115][ T7580] ? trace_hardirqs_on+0x5e/0x230 [ 47.741142][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.746892][ T7580] end_report+0x47/0x4f [ 47.752634][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.758733][ T7580] kasan_report.cold+0xe/0x40 [ 47.763429][ T7580] ? __vb2_perform_fileio+0x1065/0x1140 [ 47.769608][ T7580] __asan_report_load4_noabort+0x14/0x20 [ 47.775627][ T7580] __vb2_perform_fileio+0x1065/0x1140 [ 47.781562][ T7580] ? vb2_thread_start+0x370/0x370 [ 47.786597][ T7580] ? fsnotify+0xbc0/0xbc0 [ 47.791024][ T7580] ? fsnotify_first_mark+0x210/0x210 [ 47.796503][ T7580] vb2_read+0x3b/0x50 [ 47.800714][ T7580] vb2_fop_read+0x212/0x410 [ 47.805252][ T7580] ? vb2_fop_write+0x410/0x410 [ 47.810359][ T7580] v4l2_read+0x1ce/0x230 [ 47.814835][ T7580] do_iter_read+0x4a9/0x660 [ 47.819353][ T7580] ? dup_iter+0x260/0x260 [ 47.823941][ T7580] vfs_readv+0xf0/0x160 [ 47.828113][ T7580] ? compat_rw_copy_check_uvector+0x3f0/0x3f0 [ 47.834202][ T7580] ? __handle_mm_fault+0x7cd/0x3ec0 [ 47.839776][ T7580] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 47.845582][ T7580] ? find_held_lock+0x35/0x130 [ 47.850549][ T7580] ? __do_page_fault+0x623/0xda0 [ 47.855662][ T7580] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 47.861908][ T7580] ? __fget_light+0x1a9/0x230 [ 47.866673][ T7580] do_readv+0x15e/0x370 [ 47.870835][ T7580] ? vfs_readv+0x160/0x160 [ 47.875263][ T7580] ? do_syscall_64+0x26/0x610 [ 47.879935][ T7580] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.886177][ T7580] ? do_syscall_64+0x26/0x610 [ 47.890853][ T7580] __x64_sys_readv+0x75/0xb0 [ 47.895484][ T7580] do_syscall_64+0x103/0x610 [ 47.900081][ T7580] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 47.905969][ T7580] RIP: 0033:0x444f19 [ 47.909862][ T7580] 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 0b cd fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 47.930361][ T7580] RSP: 002b:00007fff4724f278 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 [ 47.939176][ T7580] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f19 [ 47.947516][ T7580] RDX: 0000000000000001 RSI: 0000000020001440 RDI: 0000000000000003 [ 47.955795][ T7580] RBP: 000000000000b7a1 R08: 0000000000000004 R09: 00000000004002e0 [ 47.964208][ T7580] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020b0 [ 47.972704][ T7580] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 47.983063][ T7580] Kernel Offset: disabled [ 47.987514][ T7580] Rebooting in 86400 seconds..