[ 34.644277][ T26] audit: type=1800 audit(1555975825.526:27): pid=7409 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.732830][ T26] audit: type=1800 audit(1555975825.656:28): pid=7409 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.626898][ T26] audit: type=1800 audit(1555975826.556:29): pid=7409 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.647479][ T26] audit: type=1800 audit(1555975826.556:30): pid=7409 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.10.5' (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 syzkaller login: [ 59.945640][ T7621] ================================================================== [ 59.953882][ T7621] BUG: KASAN: use-after-free in __vb2_perform_fileio+0x1065/0x1140 [ 59.961762][ T7621] Read of size 4 at addr ffff8880a04d231c by task syz-executor064/7621 [ 59.970266][ T7621] [ 59.972586][ T7621] CPU: 1 PID: 7621 Comm: syz-executor064 Not tainted 5.1.0-rc6 #80 [ 59.980507][ T7621] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 59.990782][ T7621] Call Trace: [ 59.994076][ T7621] dump_stack+0x172/0x1f0 [ 59.998752][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.004377][ T7621] print_address_description.cold+0x7c/0x20d [ 60.010468][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.016009][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.021597][ T7621] kasan_report.cold+0x1b/0x40 [ 60.026531][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.032145][ T7621] __asan_report_load4_noabort+0x14/0x20 [ 60.037769][ T7621] __vb2_perform_fileio+0x1065/0x1140 [ 60.043451][ T7621] ? aa_path_link+0x460/0x460 [ 60.048135][ T7621] ? find_held_lock+0x35/0x130 [ 60.052887][ T7621] ? vb2_thread_start+0x370/0x370 [ 60.057895][ T7621] ? fsnotify+0x811/0xbc0 [ 60.062247][ T7621] vb2_read+0x3b/0x50 [ 60.066224][ T7621] vb2_fop_read+0x212/0x410 [ 60.070958][ T7621] ? vb2_fop_write+0x410/0x410 [ 60.075834][ T7621] v4l2_read+0x1ce/0x230 [ 60.080079][ T7621] __vfs_read+0x8d/0x110 [ 60.084382][ T7621] ? v4l2_write+0x230/0x230 [ 60.088880][ T7621] vfs_read+0x194/0x3e0 [ 60.093018][ T7621] ksys_read+0x14f/0x2d0 [ 60.097630][ T7621] ? kernel_write+0x120/0x120 [ 60.102309][ T7621] ? do_syscall_64+0x26/0x610 [ 60.106978][ T7621] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.113026][ T7621] ? do_syscall_64+0x26/0x610 [ 60.117706][ T7621] __x64_sys_read+0x73/0xb0 [ 60.122207][ T7621] do_syscall_64+0x103/0x610 [ 60.126792][ T7621] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.132789][ T7621] RIP: 0033:0x44a559 [ 60.136724][ T7621] Code: e8 0c 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 7b cb fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 60.156326][ T7621] RSP: 002b:00007fad65037ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 60.164725][ T7621] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a559 [ 60.172744][ T7621] RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 [ 60.180707][ T7621] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 60.188666][ T7621] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 60.196753][ T7621] R13: 00007ffef70f5b8f R14: 00007fad650389c0 R15: 00000000006dbc20 [ 60.204828][ T7621] [ 60.207138][ T7621] Allocated by task 7621: [ 60.211587][ T7621] save_stack+0x45/0xd0 [ 60.215853][ T7621] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 60.221473][ T7621] kasan_kmalloc+0x9/0x10 [ 60.225796][ T7621] kmem_cache_alloc_trace+0x151/0x760 [ 60.231166][ T7621] __vb2_init_fileio+0x1cb/0xbe0 [ 60.236101][ T7621] __vb2_perform_fileio+0xc01/0x1140 [ 60.241505][ T7621] vb2_read+0x3b/0x50 [ 60.245477][ T7621] vb2_fop_read+0x212/0x410 [ 60.249967][ T7621] v4l2_read+0x1ce/0x230 [ 60.254198][ T7621] __vfs_read+0x8d/0x110 [ 60.258420][ T7621] vfs_read+0x194/0x3e0 [ 60.262571][ T7621] ksys_read+0x14f/0x2d0 [ 60.266802][ T7621] __x64_sys_read+0x73/0xb0 [ 60.271301][ T7621] do_syscall_64+0x103/0x610 [ 60.275875][ T7621] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.281886][ T7621] [ 60.284195][ T7621] Freed by task 7619: [ 60.288161][ T7621] save_stack+0x45/0xd0 [ 60.292447][ T7621] __kasan_slab_free+0x102/0x150 [ 60.297466][ T7621] kasan_slab_free+0xe/0x10 [ 60.301945][ T7621] kfree+0xcf/0x230 [ 60.306049][ T7621] __vb2_cleanup_fileio+0x100/0x170 [ 60.311240][ T7621] vb2_core_queue_release+0x20/0x80 [ 60.316638][ T7621] _vb2_fop_release+0x1cf/0x2a0 [ 60.321483][ T7621] vb2_fop_release+0x75/0xc0 [ 60.326310][ T7621] vivid_fop_release+0x18e/0x430 [ 60.331471][ T7621] v4l2_release+0x224/0x3a0 [ 60.337028][ T7621] __fput+0x2e5/0x8d0 [ 60.343340][ T7621] ____fput+0x16/0x20 [ 60.348186][ T7621] task_work_run+0x14a/0x1c0 [ 60.364508][ T7621] do_exit+0x90a/0x2fa0 [ 60.368732][ T7621] do_group_exit+0x135/0x370 [ 60.373315][ T7621] get_signal+0x399/0x1d50 [ 60.377718][ T7621] do_signal+0x87/0x1940 [ 60.382083][ T7621] exit_to_usermode_loop+0x244/0x2c0 [ 60.387457][ T7621] do_syscall_64+0x52d/0x610 [ 60.392154][ T7621] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.398105][ T7621] [ 60.400412][ T7621] The buggy address belongs to the object at ffff8880a04d2000 [ 60.400412][ T7621] which belongs to the cache kmalloc-1k of size 1024 [ 60.414582][ T7621] The buggy address is located 796 bytes inside of [ 60.414582][ T7621] 1024-byte region [ffff8880a04d2000, ffff8880a04d2400) [ 60.427925][ T7621] The buggy address belongs to the page: [ 60.433597][ T7621] page:ffffea0002813480 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 60.444354][ T7621] flags: 0x1fffc0000010200(slab|head) [ 60.449705][ T7621] raw: 01fffc0000010200 ffffea00027cb688 ffffea0002206688 ffff88812c3f0ac0 [ 60.458355][ T7621] raw: 0000000000000000 ffff8880a04d2000 0000000100000007 0000000000000000 [ 60.466913][ T7621] page dumped because: kasan: bad access detected [ 60.473395][ T7621] [ 60.475799][ T7621] Memory state around the buggy address: [ 60.481424][ T7621] ffff8880a04d2200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 60.489658][ T7621] ffff8880a04d2280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 60.497746][ T7621] >ffff8880a04d2300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 60.505792][ T7621] ^ [ 60.510673][ T7621] ffff8880a04d2380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 60.518734][ T7621] ffff8880a04d2400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 60.527200][ T7621] ================================================================== [ 60.535359][ T7621] Disabling lock debugging due to kernel taint [ 60.541786][ T7621] Kernel panic - not syncing: panic_on_warn set ... [ 60.548367][ T7621] CPU: 1 PID: 7621 Comm: syz-executor064 Tainted: G B 5.1.0-rc6 #80 [ 60.557773][ T7621] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 60.567813][ T7621] Call Trace: [ 60.571091][ T7621] dump_stack+0x172/0x1f0 [ 60.575457][ T7621] panic+0x2cb/0x65c [ 60.579341][ T7621] ? __warn_printk+0xf3/0xf3 [ 60.583919][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.589454][ T7621] ? preempt_schedule+0x4b/0x60 [ 60.594324][ T7621] ? ___preempt_schedule+0x16/0x18 [ 60.599428][ T7621] ? trace_hardirqs_on+0x5e/0x230 [ 60.604434][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.610084][ T7621] end_report+0x47/0x4f [ 60.614228][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.619750][ T7621] kasan_report.cold+0xe/0x40 [ 60.624409][ T7621] ? __vb2_perform_fileio+0x1065/0x1140 [ 60.630092][ T7621] __asan_report_load4_noabort+0x14/0x20 [ 60.635717][ T7621] __vb2_perform_fileio+0x1065/0x1140 [ 60.641069][ T7621] ? aa_path_link+0x460/0x460 [ 60.645738][ T7621] ? find_held_lock+0x35/0x130 [ 60.650482][ T7621] ? vb2_thread_start+0x370/0x370 [ 60.655485][ T7621] ? fsnotify+0x811/0xbc0 [ 60.659963][ T7621] vb2_read+0x3b/0x50 [ 60.664092][ T7621] vb2_fop_read+0x212/0x410 [ 60.668580][ T7621] ? vb2_fop_write+0x410/0x410 [ 60.673437][ T7621] v4l2_read+0x1ce/0x230 [ 60.677661][ T7621] __vfs_read+0x8d/0x110 [ 60.682209][ T7621] ? v4l2_write+0x230/0x230 [ 60.686702][ T7621] vfs_read+0x194/0x3e0 [ 60.690848][ T7621] ksys_read+0x14f/0x2d0 [ 60.695279][ T7621] ? kernel_write+0x120/0x120 [ 60.699940][ T7621] ? do_syscall_64+0x26/0x610 [ 60.704599][ T7621] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.710663][ T7621] ? do_syscall_64+0x26/0x610 [ 60.715351][ T7621] __x64_sys_read+0x73/0xb0 [ 60.719835][ T7621] do_syscall_64+0x103/0x610 [ 60.724403][ T7621] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 60.730506][ T7621] RIP: 0033:0x44a559 [ 60.734396][ T7621] Code: e8 0c 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 7b cb fb ff c3 66 2e 0f 1f 84 00 00 00 00 [ 60.754045][ T7621] RSP: 002b:00007fad65037ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 60.762501][ T7621] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a559 [ 60.770700][ T7621] RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 [ 60.778666][ T7621] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 60.786632][ T7621] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 60.794594][ T7621] R13: 00007ffef70f5b8f R14: 00007fad650389c0 R15: 00000000006dbc20 [ 60.804061][ T7621] Kernel Offset: disabled [ 60.808426][ T7621] Rebooting in 86400 seconds..