[ 41.789079][ T26] audit: type=1800 audit(1556021850.766:25): pid=7713 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="cron" dev="sda1" ino=2414 res=0 [ 41.827608][ T26] audit: type=1800 audit(1556021850.766:26): pid=7713 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 41.855599][ T26] audit: type=1800 audit(1556021850.766:27): pid=7713 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 41.893203][ T26] audit: type=1800 audit(1556021850.766:28): pid=7713 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. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.10.39' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 144.703904][ T7873] ================================================================== [ 144.712761][ T7873] BUG: KASAN: use-after-free in __vb2_perform_fileio+0x1065/0x1140 [ 144.721358][ T7873] Read of size 4 at addr ffff88808e0d155c by task syz-executor842/7873 [ 144.730082][ T7873] [ 144.732661][ T7873] CPU: 1 PID: 7873 Comm: syz-executor842 Not tainted 5.1.0-rc6 #79 [ 144.740974][ T7873] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 144.751382][ T7873] Call Trace: [ 144.755239][ T7873] dump_stack+0x172/0x1f0 [ 144.760443][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 144.767298][ T7873] print_address_description.cold+0x7c/0x20d [ 144.775351][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 144.780902][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 144.786456][ T7873] kasan_report.cold+0x1b/0x40 [ 144.791448][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 144.796995][ T7873] __asan_report_load4_noabort+0x14/0x20 [ 144.802674][ T7873] __vb2_perform_fileio+0x1065/0x1140 [ 144.808471][ T7873] ? aa_path_link+0x460/0x460 [ 144.813969][ T7873] ? vb2_thread_start+0x370/0x370 [ 144.819295][ T7873] vb2_read+0x3b/0x50 [ 144.825224][ T7873] vb2_fop_read+0x212/0x410 [ 144.829752][ T7873] ? vb2_fop_write+0x410/0x410 [ 144.834636][ T7873] v4l2_read+0x1ce/0x230 [ 144.838916][ T7873] __vfs_read+0x8d/0x110 [ 144.843262][ T7873] ? v4l2_write+0x230/0x230 [ 144.848053][ T7873] vfs_read+0x194/0x3e0 [ 144.852501][ T7873] ksys_read+0x14f/0x2d0 [ 144.856855][ T7873] ? kernel_write+0x120/0x120 [ 144.861595][ T7873] ? do_syscall_64+0x26/0x610 [ 144.866303][ T7873] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 144.872499][ T7873] ? do_syscall_64+0x26/0x610 [ 144.877209][ T7873] __x64_sys_read+0x73/0xb0 [ 144.881935][ T7873] do_syscall_64+0x103/0x610 [ 144.888286][ T7873] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 144.894828][ T7873] RIP: 0033:0x445309 [ 144.898841][ T7873] 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 [ 144.918666][ T7873] RSP: 002b:00007ffe5ccbdb28 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 144.927946][ T7873] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445309 [ 144.936015][ T7873] RDX: 000000000000004b RSI: 0000000020000280 RDI: 0000000000000003 [ 144.944202][ T7873] RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000402530 [ 144.952527][ T7873] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004024a0 [ 144.960620][ T7873] R13: 0000000000402530 R14: 0000000000000000 R15: 0000000000000000 [ 144.968621][ T7873] [ 144.970952][ T7873] Allocated by task 7868: [ 144.975293][ T7873] save_stack+0x45/0xd0 [ 144.979458][ T7873] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 144.985192][ T7873] kasan_kmalloc+0x9/0x10 [ 144.989521][ T7873] kmem_cache_alloc_trace+0x151/0x760 [ 144.995080][ T7873] __vb2_init_fileio+0x1cb/0xbe0 [ 145.000040][ T7873] __vb2_perform_fileio+0xc01/0x1140 [ 145.005412][ T7873] vb2_read+0x3b/0x50 [ 145.009393][ T7873] vb2_fop_read+0x212/0x410 [ 145.013897][ T7873] v4l2_read+0x1ce/0x230 [ 145.018179][ T7873] __vfs_read+0x8d/0x110 [ 145.022510][ T7873] vfs_read+0x194/0x3e0 [ 145.026660][ T7873] ksys_read+0x14f/0x2d0 [ 145.031110][ T7873] __x64_sys_read+0x73/0xb0 [ 145.035704][ T7873] do_syscall_64+0x103/0x610 [ 145.040291][ T7873] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 145.046190][ T7873] [ 145.048526][ T7873] Freed by task 7868: [ 145.052543][ T7873] save_stack+0x45/0xd0 [ 145.056701][ T7873] __kasan_slab_free+0x102/0x150 [ 145.061641][ T7873] kasan_slab_free+0xe/0x10 [ 145.066144][ T7873] kfree+0xcf/0x230 [ 145.069962][ T7873] __vb2_cleanup_fileio+0x100/0x170 [ 145.075170][ T7873] vb2_core_queue_release+0x20/0x80 [ 145.080461][ T7873] _vb2_fop_release+0x1cf/0x2a0 [ 145.085311][ T7873] vb2_fop_release+0x75/0xc0 [ 145.089939][ T7873] vivid_fop_release+0x18e/0x430 [ 145.094960][ T7873] v4l2_release+0x224/0x3a0 [ 145.099565][ T7873] __fput+0x2e5/0x8d0 [ 145.103643][ T7873] ____fput+0x16/0x20 [ 145.107622][ T7873] task_work_run+0x14a/0x1c0 [ 145.112228][ T7873] do_exit+0x90a/0x2fa0 [ 145.116399][ T7873] do_group_exit+0x135/0x370 [ 145.120992][ T7873] __x64_sys_exit_group+0x44/0x50 [ 145.126028][ T7873] do_syscall_64+0x103/0x610 [ 145.130622][ T7873] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 145.136510][ T7873] [ 145.138855][ T7873] The buggy address belongs to the object at ffff88808e0d1240 [ 145.138855][ T7873] which belongs to the cache kmalloc-1k of size 1024 [ 145.152920][ T7873] The buggy address is located 796 bytes inside of [ 145.152920][ T7873] 1024-byte region [ffff88808e0d1240, ffff88808e0d1640) [ 145.166281][ T7873] The buggy address belongs to the page: [ 145.171919][ T7873] page:ffffea0002383400 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 145.182677][ T7873] flags: 0x1fffc0000010200(slab|head) [ 145.188150][ T7873] raw: 01fffc0000010200 ffffea000238e588 ffffea000259ff08 ffff88812c3f0ac0 [ 145.196762][ T7873] raw: 0000000000000000 ffff88808e0d0040 0000000100000007 0000000000000000 [ 145.205435][ T7873] page dumped because: kasan: bad access detected [ 145.212018][ T7873] [ 145.214346][ T7873] Memory state around the buggy address: [ 145.220002][ T7873] ffff88808e0d1400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 145.228076][ T7873] ffff88808e0d1480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 145.236168][ T7873] >ffff88808e0d1500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 145.244223][ T7873] ^ [ 145.251253][ T7873] ffff88808e0d1580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 145.259341][ T7873] ffff88808e0d1600: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 145.267398][ T7873] ================================================================== [ 145.275743][ T7873] Disabling lock debugging due to kernel taint [ 145.283847][ T7873] Kernel panic - not syncing: panic_on_warn set ... [ 145.290773][ T7873] CPU: 1 PID: 7873 Comm: syz-executor842 Tainted: G B 5.1.0-rc6 #79 [ 145.300338][ T7873] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 145.310432][ T7873] Call Trace: [ 145.313934][ T7873] dump_stack+0x172/0x1f0 [ 145.318603][ T7873] panic+0x2cb/0x65c [ 145.322779][ T7873] ? __warn_printk+0xf3/0xf3 [ 145.327364][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 145.333327][ T7873] ? preempt_schedule+0x4b/0x60 [ 145.338173][ T7873] ? ___preempt_schedule+0x16/0x18 [ 145.343554][ T7873] ? trace_hardirqs_on+0x5e/0x230 [ 145.348696][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 145.354560][ T7873] end_report+0x47/0x4f [ 145.358831][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 145.364497][ T7873] kasan_report.cold+0xe/0x40 [ 145.370565][ T7873] ? __vb2_perform_fileio+0x1065/0x1140 [ 145.376218][ T7873] __asan_report_load4_noabort+0x14/0x20 [ 145.381883][ T7873] __vb2_perform_fileio+0x1065/0x1140 [ 145.387380][ T7873] ? aa_path_link+0x460/0x460 [ 145.392207][ T7873] ? vb2_thread_start+0x370/0x370 [ 145.397359][ T7873] vb2_read+0x3b/0x50 [ 145.401340][ T7873] vb2_fop_read+0x212/0x410 [ 145.405896][ T7873] ? vb2_fop_write+0x410/0x410 [ 145.410972][ T7873] v4l2_read+0x1ce/0x230 [ 145.415766][ T7873] __vfs_read+0x8d/0x110 [ 145.420442][ T7873] ? v4l2_write+0x230/0x230 [ 145.425027][ T7873] vfs_read+0x194/0x3e0 [ 145.429304][ T7873] ksys_read+0x14f/0x2d0 [ 145.433669][ T7873] ? kernel_write+0x120/0x120 [ 145.438596][ T7873] ? do_syscall_64+0x26/0x610 [ 145.443644][ T7873] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 145.449868][ T7873] ? do_syscall_64+0x26/0x610 [ 145.454637][ T7873] __x64_sys_read+0x73/0xb0 [ 145.459128][ T7873] do_syscall_64+0x103/0x610 [ 145.463705][ T7873] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 145.469583][ T7873] RIP: 0033:0x445309 [ 145.473459][ T7873] 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 [ 145.493234][ T7873] RSP: 002b:00007ffe5ccbdb28 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 145.501850][ T7873] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445309 [ 145.510027][ T7873] RDX: 000000000000004b RSI: 0000000020000280 RDI: 0000000000000003 [ 145.518524][ T7873] RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000402530 [ 145.526726][ T7873] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004024a0 [ 145.534686][ T7873] R13: 0000000000402530 R14: 0000000000000000 R15: 0000000000000000 [ 145.543371][ T7873] Kernel Offset: disabled [ 145.547933][ T7873] Rebooting in 86400 seconds..