[ 40.726549][ T26] audit: type=1800 audit(1556473618.230:32): pid=7784 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 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 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. [ 41.566560][ T26] audit: type=1800 audit(1556473619.180:33): pid=7784 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 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.1.54' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program syzkaller login: [ 48.368498][ T26] kauditd_printk_skb: 2 callbacks suppressed [ 48.368524][ T26] audit: type=1400 audit(1556473625.980:36): avc: denied { map } for pid=7973 comm="syz-executor319" path="/root/syz-executor319910280" 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 executing program executing program executing program executing program executing program executing program executing program [ 48.629175][ T8002] ================================================================== [ 48.637361][ T8002] BUG: KASAN: use-after-free in __vb2_perform_fileio+0x1065/0x1140 [ 48.645241][ T8002] Read of size 4 at addr ffff888099342c5c by task syz-executor319/8002 [ 48.653456][ T8002] [ 48.655770][ T8002] CPU: 0 PID: 8002 Comm: syz-executor319 Not tainted 5.1.0-rc6+ #88 [ 48.663722][ T8002] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 48.673753][ T8002] Call Trace: [ 48.677027][ T8002] dump_stack+0x172/0x1f0 [ 48.681350][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 48.686913][ T8002] print_address_description.cold+0x7c/0x20d [ 48.692887][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 48.698410][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 48.703935][ T8002] kasan_report.cold+0x1b/0x40 [ 48.708683][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 48.714209][ T8002] __asan_report_load4_noabort+0x14/0x20 [ 48.719826][ T8002] __vb2_perform_fileio+0x1065/0x1140 [ 48.725184][ T8002] ? vb2_thread_start+0x370/0x370 [ 48.730196][ T8002] ? fsnotify+0x811/0xbc0 [ 48.734526][ T8002] vb2_read+0x3b/0x50 [ 48.738507][ T8002] vb2_fop_read+0x212/0x410 [ 48.743028][ T8002] ? vb2_fop_write+0x410/0x410 [ 48.747806][ T8002] v4l2_read+0x1ce/0x230 [ 48.752046][ T8002] __vfs_read+0x8d/0x110 [ 48.756274][ T8002] ? v4l2_write+0x230/0x230 [ 48.760764][ T8002] vfs_read+0x194/0x3e0 [ 48.764924][ T8002] ksys_read+0x14f/0x2d0 [ 48.769149][ T8002] ? kernel_write+0x120/0x120 [ 48.773840][ T8002] ? do_syscall_64+0x26/0x610 [ 48.778520][ T8002] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.784954][ T8002] ? do_syscall_64+0x26/0x610 [ 48.789645][ T8002] __x64_sys_read+0x73/0xb0 [ 48.794146][ T8002] do_syscall_64+0x103/0x610 [ 48.798726][ T8002] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.804693][ T8002] RIP: 0033:0x444f09 [ 48.808587][ T8002] 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 [ 48.828178][ T8002] RSP: 002b:00007ffcb7086868 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 48.836588][ T8002] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f09 [ 48.844542][ T8002] RDX: 0000000000000052 RSI: 0000000020000540 RDI: 0000000000000003 [ 48.852507][ T8002] RBP: 000000000000bdc5 R08: 0000000000000004 R09: 00000000004002e0 [ 48.860465][ T8002] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020a0 [ 48.868416][ T8002] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 48.876564][ T8002] [ 48.878894][ T8002] Allocated by task 8002: [ 48.883228][ T8002] save_stack+0x45/0xd0 [ 48.887380][ T8002] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 48.892990][ T8002] kasan_kmalloc+0x9/0x10 [ 48.897298][ T8002] kmem_cache_alloc_trace+0x151/0x760 [ 48.902650][ T8002] __vb2_init_fileio+0x1cb/0xbe0 [ 48.907564][ T8002] __vb2_perform_fileio+0xc01/0x1140 [ 48.912831][ T8002] vb2_read+0x3b/0x50 [ 48.916791][ T8002] vb2_fop_read+0x212/0x410 [ 48.921289][ T8002] v4l2_read+0x1ce/0x230 [ 48.925540][ T8002] __vfs_read+0x8d/0x110 [ 48.929774][ T8002] vfs_read+0x194/0x3e0 [ 48.933950][ T8002] ksys_read+0x14f/0x2d0 [ 48.938188][ T8002] __x64_sys_read+0x73/0xb0 [ 48.942683][ T8002] do_syscall_64+0x103/0x610 [ 48.947268][ T8002] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 48.953154][ T8002] [ 48.955498][ T8002] Freed by task 8001: [ 48.959493][ T8002] save_stack+0x45/0xd0 [ 48.963639][ T8002] __kasan_slab_free+0x102/0x150 [ 48.968566][ T8002] kasan_slab_free+0xe/0x10 [ 48.973048][ T8002] kfree+0xcf/0x230 [ 48.976839][ T8002] __vb2_cleanup_fileio+0x100/0x170 [ 48.982012][ T8002] vb2_core_queue_release+0x20/0x80 [ 48.987193][ T8002] _vb2_fop_release+0x1cf/0x2a0 [ 48.992020][ T8002] vb2_fop_release+0x75/0xc0 [ 48.996595][ T8002] vivid_fop_release+0x18e/0x430 [ 49.001533][ T8002] v4l2_release+0x224/0x3a0 [ 49.006015][ T8002] __fput+0x2e5/0x8d0 [ 49.009978][ T8002] ____fput+0x16/0x20 [ 49.013952][ T8002] task_work_run+0x14a/0x1c0 [ 49.018531][ T8002] do_exit+0x90a/0x2fa0 [ 49.022666][ T8002] do_group_exit+0x135/0x370 [ 49.027259][ T8002] __x64_sys_exit_group+0x44/0x50 [ 49.032262][ T8002] do_syscall_64+0x103/0x610 [ 49.036833][ T8002] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 49.042705][ T8002] [ 49.045027][ T8002] The buggy address belongs to the object at ffff888099342940 [ 49.045027][ T8002] which belongs to the cache kmalloc-1k of size 1024 [ 49.059061][ T8002] The buggy address is located 796 bytes inside of [ 49.059061][ T8002] 1024-byte region [ffff888099342940, ffff888099342d40) [ 49.072897][ T8002] The buggy address belongs to the page: [ 49.078525][ T8002] page:ffffea000264d080 count:1 mapcount:0 mapping:ffff8880aa400ac0 index:0x0 compound_mapcount: 0 [ 49.091616][ T8002] flags: 0x1fffc0000010200(slab|head) [ 49.096973][ T8002] raw: 01fffc0000010200 ffffea0002415a08 ffffea00025d9188 ffff8880aa400ac0 [ 49.105545][ T8002] raw: 0000000000000000 ffff888099342040 0000000100000007 0000000000000000 [ 49.114108][ T8002] page dumped because: kasan: bad access detected [ 49.120494][ T8002] [ 49.122812][ T8002] Memory state around the buggy address: [ 49.128454][ T8002] ffff888099342b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.136497][ T8002] ffff888099342b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.144547][ T8002] >ffff888099342c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.152617][ T8002] ^ [ 49.159553][ T8002] ffff888099342c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 49.167608][ T8002] ffff888099342d00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 49.175644][ T8002] ================================================================== [ 49.183682][ T8002] Disabling lock debugging due to kernel taint [ 49.190599][ T8002] Kernel panic - not syncing: panic_on_warn set ... [ 49.197199][ T8002] CPU: 0 PID: 8002 Comm: syz-executor319 Tainted: G B 5.1.0-rc6+ #88 [ 49.206546][ T8002] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 49.216576][ T8002] Call Trace: [ 49.219850][ T8002] dump_stack+0x172/0x1f0 [ 49.224162][ T8002] panic+0x2cb/0x65c [ 49.228034][ T8002] ? __warn_printk+0xf3/0xf3 [ 49.232607][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 49.238133][ T8002] ? preempt_schedule+0x4b/0x60 [ 49.242965][ T8002] ? ___preempt_schedule+0x16/0x18 [ 49.248056][ T8002] ? trace_hardirqs_on+0x5e/0x230 [ 49.253076][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 49.258598][ T8002] end_report+0x47/0x4f [ 49.262742][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 49.268282][ T8002] kasan_report.cold+0xe/0x40 [ 49.272951][ T8002] ? __vb2_perform_fileio+0x1065/0x1140 [ 49.278475][ T8002] __asan_report_load4_noabort+0x14/0x20 [ 49.284086][ T8002] __vb2_perform_fileio+0x1065/0x1140 [ 49.289449][ T8002] ? vb2_thread_start+0x370/0x370 [ 49.294466][ T8002] ? fsnotify+0x811/0xbc0 [ 49.298776][ T8002] vb2_read+0x3b/0x50 [ 49.302753][ T8002] vb2_fop_read+0x212/0x410 [ 49.307259][ T8002] ? vb2_fop_write+0x410/0x410 [ 49.312000][ T8002] v4l2_read+0x1ce/0x230 [ 49.316239][ T8002] __vfs_read+0x8d/0x110 [ 49.320473][ T8002] ? v4l2_write+0x230/0x230 [ 49.324973][ T8002] vfs_read+0x194/0x3e0 [ 49.329120][ T8002] ksys_read+0x14f/0x2d0 [ 49.333362][ T8002] ? kernel_write+0x120/0x120 [ 49.338020][ T8002] ? do_syscall_64+0x26/0x610 [ 49.342697][ T8002] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 49.348752][ T8002] ? do_syscall_64+0x26/0x610 [ 49.353408][ T8002] __x64_sys_read+0x73/0xb0 [ 49.357891][ T8002] do_syscall_64+0x103/0x610 [ 49.362467][ T8002] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 49.368344][ T8002] RIP: 0033:0x444f09 [ 49.372229][ T8002] 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 [ 49.391815][ T8002] RSP: 002b:00007ffcb7086868 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 49.400218][ T8002] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f09 [ 49.408164][ T8002] RDX: 0000000000000052 RSI: 0000000020000540 RDI: 0000000000000003 [ 49.416118][ T8002] RBP: 000000000000bdc5 R08: 0000000000000004 R09: 00000000004002e0 [ 49.424080][ T8002] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020a0 [ 49.432042][ T8002] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 49.440926][ T8002] Kernel Offset: disabled [ 49.445245][ T8002] Rebooting in 86400 seconds..