[ 43.963252][ T26] audit: type=1800 audit(1556917872.238:30): pid=8038 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 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. Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 48.483094][ T26] kauditd_printk_skb: 4 callbacks suppressed [ 48.483109][ T26] audit: type=1400 audit(1556917876.788:35): avc: denied { map } for pid=8211 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.1.8' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program [ 54.953823][ T26] audit: type=1400 audit(1556917883.258:36): avc: denied { map } for pid=8223 comm="syz-executor994" path="/root/syz-executor994019972" 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 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 [ 55.476015][ T8278] ================================================================== [ 55.484276][ T8278] BUG: KASAN: use-after-free in __vb2_perform_fileio+0x1065/0x1140 [ 55.492176][ T8278] Read of size 4 at addr ffff8880a7c0951c by task syz-executor994/8278 [ 55.500399][ T8278] [ 55.502734][ T8278] CPU: 1 PID: 8278 Comm: syz-executor994 Not tainted 5.1.0-rc7+ #98 [ 55.510708][ T8278] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.520773][ T8278] Call Trace: [ 55.524068][ T8278] dump_stack+0x172/0x1f0 [ 55.528412][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.533962][ T8278] print_address_description.cold+0x7c/0x20d [ 55.539945][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.545524][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.551086][ T8278] kasan_report.cold+0x1b/0x40 [ 55.555860][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.561417][ T8278] __asan_report_load4_noabort+0x14/0x20 [ 55.567046][ T8278] __vb2_perform_fileio+0x1065/0x1140 [ 55.572444][ T8278] ? vb2_thread_start+0x370/0x370 [ 55.577480][ T8278] ? fsnotify+0xbc0/0xbc0 [ 55.581822][ T8278] ? fsnotify_first_mark+0x210/0x210 [ 55.587124][ T8278] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 55.593370][ T8278] vb2_read+0x3b/0x50 [ 55.597356][ T8278] vb2_fop_read+0x212/0x410 [ 55.601870][ T8278] ? vb2_fop_write+0x410/0x410 [ 55.607076][ T8278] v4l2_read+0x1ce/0x230 [ 55.611335][ T8278] do_iter_read+0x4a9/0x660 [ 55.615850][ T8278] ? dup_iter+0x260/0x260 [ 55.620216][ T8278] vfs_readv+0xf0/0x160 [ 55.624382][ T8278] ? compat_rw_copy_check_uvector+0x3f0/0x3f0 [ 55.630448][ T8278] ? __handle_mm_fault+0x7cd/0x3ec0 [ 55.635675][ T8278] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 55.641227][ T8278] ? find_held_lock+0x35/0x130 [ 55.645987][ T8278] ? __do_page_fault+0x623/0xda0 [ 55.650922][ T8278] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 55.657169][ T8278] ? __fget_light+0x1a9/0x230 [ 55.661871][ T8278] do_readv+0x15e/0x370 [ 55.666030][ T8278] ? vfs_readv+0x160/0x160 [ 55.670447][ T8278] ? do_syscall_64+0x26/0x610 [ 55.675139][ T8278] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.681211][ T8278] ? do_syscall_64+0x26/0x610 [ 55.685894][ T8278] __x64_sys_readv+0x75/0xb0 [ 55.690482][ T8278] do_syscall_64+0x103/0x610 [ 55.695097][ T8278] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.700993][ T8278] RIP: 0033:0x444f19 [ 55.704900][ T8278] 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 [ 55.724510][ T8278] RSP: 002b:00007fff70dad498 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 [ 55.732921][ T8278] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f19 [ 55.740887][ T8278] RDX: 0000000000000001 RSI: 0000000020001440 RDI: 0000000000000003 [ 55.748865][ T8278] RBP: 000000000000d87d R08: 0000000000000004 R09: 00000000004002e0 [ 55.756830][ T8278] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020b0 [ 55.764804][ T8278] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 55.772790][ T8278] [ 55.775111][ T8278] Allocated by task 8278: [ 55.779443][ T8278] save_stack+0x45/0xd0 [ 55.783607][ T8278] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 55.789243][ T8278] kasan_kmalloc+0x9/0x10 [ 55.793594][ T8278] kmem_cache_alloc_trace+0x151/0x760 [ 55.798962][ T8278] __vb2_init_fileio+0x1cb/0xbe0 [ 55.803896][ T8278] __vb2_perform_fileio+0xc01/0x1140 [ 55.809171][ T8278] vb2_read+0x3b/0x50 [ 55.813147][ T8278] vb2_fop_read+0x212/0x410 [ 55.817664][ T8278] v4l2_read+0x1ce/0x230 [ 55.821908][ T8278] do_iter_read+0x4a9/0x660 [ 55.826405][ T8278] vfs_readv+0xf0/0x160 [ 55.830571][ T8278] do_readv+0x15e/0x370 [ 55.834734][ T8278] __x64_sys_readv+0x75/0xb0 [ 55.839323][ T8278] do_syscall_64+0x103/0x610 [ 55.843922][ T8278] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.849797][ T8278] [ 55.852136][ T8278] Freed by task 8283: [ 55.856155][ T8278] save_stack+0x45/0xd0 [ 55.860320][ T8278] __kasan_slab_free+0x102/0x150 [ 55.865261][ T8278] kasan_slab_free+0xe/0x10 [ 55.869760][ T8278] kfree+0xcf/0x230 [ 55.873578][ T8278] __vb2_cleanup_fileio+0x100/0x170 [ 55.878769][ T8278] vb2_core_queue_release+0x20/0x80 [ 55.883978][ T8278] _vb2_fop_release+0x1cf/0x2a0 [ 55.888824][ T8278] vb2_fop_release+0x75/0xc0 [ 55.893428][ T8278] vivid_fop_release+0x18e/0x430 [ 55.898392][ T8278] v4l2_release+0x224/0x3a0 [ 55.902888][ T8278] __fput+0x2e5/0x8d0 [ 55.906869][ T8278] ____fput+0x16/0x20 [ 55.910853][ T8278] task_work_run+0x14a/0x1c0 [ 55.915449][ T8278] do_exit+0x90a/0x2fa0 [ 55.919680][ T8278] do_group_exit+0x135/0x370 [ 55.924249][ T8278] __x64_sys_exit_group+0x44/0x50 [ 55.929262][ T8278] do_syscall_64+0x103/0x610 [ 55.933853][ T8278] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 55.939739][ T8278] [ 55.942063][ T8278] The buggy address belongs to the object at ffff8880a7c09200 [ 55.942063][ T8278] which belongs to the cache kmalloc-1k of size 1024 [ 55.956130][ T8278] The buggy address is located 796 bytes inside of [ 55.956130][ T8278] 1024-byte region [ffff8880a7c09200, ffff8880a7c09600) [ 55.969472][ T8278] The buggy address belongs to the page: [ 55.975108][ T8278] page:ffffea00029f0200 count:1 mapcount:0 mapping:ffff8880aa400ac0 index:0x0 compound_mapcount: 0 [ 55.987074][ T8278] flags: 0x1fffc0000010200(slab|head) [ 55.992454][ T8278] raw: 01fffc0000010200 ffffea00029be408 ffffea0001fa2f88 ffff8880aa400ac0 [ 56.001038][ T8278] raw: 0000000000000000 ffff8880a7c08000 0000000100000007 0000000000000000 [ 56.009633][ T8278] page dumped because: kasan: bad access detected [ 56.016032][ T8278] [ 56.018360][ T8278] Memory state around the buggy address: [ 56.024004][ T8278] ffff8880a7c09400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.032063][ T8278] ffff8880a7c09480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.040135][ T8278] >ffff8880a7c09500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.048192][ T8278] ^ [ 56.053036][ T8278] ffff8880a7c09580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.061272][ T8278] ffff8880a7c09600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.069321][ T8278] ================================================================== [ 56.077402][ T8278] Disabling lock debugging due to kernel taint [ 56.085394][ T8278] Kernel panic - not syncing: panic_on_warn set ... [ 56.092064][ T8278] CPU: 1 PID: 8278 Comm: syz-executor994 Tainted: G B 5.1.0-rc7+ #98 [ 56.101428][ T8278] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.111456][ T8278] Call Trace: [ 56.114741][ T8278] dump_stack+0x172/0x1f0 [ 56.119056][ T8278] panic+0x2cb/0x65c [ 56.122945][ T8278] ? __warn_printk+0xf3/0xf3 [ 56.127514][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.133037][ T8278] ? preempt_schedule+0x4b/0x60 [ 56.138089][ T8278] ? ___preempt_schedule+0x16/0x18 [ 56.143241][ T8278] ? trace_hardirqs_on+0x5e/0x230 [ 56.148260][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.153781][ T8278] end_report+0x47/0x4f [ 56.157917][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.163457][ T8278] kasan_report.cold+0xe/0x40 [ 56.168130][ T8278] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.173652][ T8278] __asan_report_load4_noabort+0x14/0x20 [ 56.179377][ T8278] __vb2_perform_fileio+0x1065/0x1140 [ 56.184747][ T8278] ? vb2_thread_start+0x370/0x370 [ 56.189774][ T8278] ? fsnotify+0xbc0/0xbc0 [ 56.194094][ T8278] ? fsnotify_first_mark+0x210/0x210 [ 56.199471][ T8278] ? __sanitizer_cov_trace_const_cmp1+0x1a/0x20 [ 56.205689][ T8278] vb2_read+0x3b/0x50 [ 56.209653][ T8278] vb2_fop_read+0x212/0x410 [ 56.214137][ T8278] ? vb2_fop_write+0x410/0x410 [ 56.218876][ T8278] v4l2_read+0x1ce/0x230 [ 56.223109][ T8278] do_iter_read+0x4a9/0x660 [ 56.227593][ T8278] ? dup_iter+0x260/0x260 [ 56.231917][ T8278] vfs_readv+0xf0/0x160 [ 56.236064][ T8278] ? compat_rw_copy_check_uvector+0x3f0/0x3f0 [ 56.242189][ T8278] ? __handle_mm_fault+0x7cd/0x3ec0 [ 56.247379][ T8278] ? vmf_insert_mixed_mkwrite+0x40/0x40 [ 56.252922][ T8278] ? find_held_lock+0x35/0x130 [ 56.257674][ T8278] ? __do_page_fault+0x623/0xda0 [ 56.262606][ T8278] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.268837][ T8278] ? __fget_light+0x1a9/0x230 [ 56.273508][ T8278] do_readv+0x15e/0x370 [ 56.277643][ T8278] ? vfs_readv+0x160/0x160 [ 56.282039][ T8278] ? do_syscall_64+0x26/0x610 [ 56.286714][ T8278] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.292773][ T8278] ? do_syscall_64+0x26/0x610 [ 56.297502][ T8278] __x64_sys_readv+0x75/0xb0 [ 56.302086][ T8278] do_syscall_64+0x103/0x610 [ 56.306656][ T8278] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.312556][ T8278] RIP: 0033:0x444f19 [ 56.316458][ T8278] 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 [ 56.336039][ T8278] RSP: 002b:00007fff70dad498 EFLAGS: 00000246 ORIG_RAX: 0000000000000013 [ 56.344425][ T8278] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f19 [ 56.352460][ T8278] RDX: 0000000000000001 RSI: 0000000020001440 RDI: 0000000000000003 [ 56.360597][ T8278] RBP: 000000000000d87d R08: 0000000000000004 R09: 00000000004002e0 [ 56.368569][ T8278] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020b0 [ 56.376526][ T8278] R13: 0000000000402140 R14: 0000000000000000 R15: 0000000000000000 [ 56.385418][ T8278] Kernel Offset: disabled [ 56.389740][ T8278] Rebooting in 86400 seconds..