[ 43.561754][ T26] audit: type=1800 audit(1556021123.385:26): pid=7694 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="mcstrans" dev="sda1" ino=2457 res=0 [ 43.588919][ T26] audit: type=1800 audit(1556021123.385:27): pid=7694 uid=0 auid=4294967295 ses=4294967295 subj=_ op=collect_data cause=failed(directio) comm="startpar" name="restorecond" dev="sda1" ino=2436 res=0 [ 43.620947][ T26] audit: type=1800 audit(1556021123.385:28): pid=7694 uid=0 auid=4294967295 ses=4294967295 subj=_ 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. [ 44.209605][ T26] audit: type=1800 audit(1556021124.065:29): pid=7694 uid=0 auid=4294967295 ses=4294967295 subj=_ 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.43' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 55.894036][ T7857] ================================================================== [ 55.902688][ T7857] BUG: KASAN: use-after-free in __vb2_perform_fileio+0x1065/0x1140 [ 55.910790][ T7857] Read of size 4 at addr ffff8880a4050c1c by task syz-executor371/7857 [ 55.920002][ T7857] [ 55.922343][ T7857] CPU: 0 PID: 7857 Comm: syz-executor371 Not tainted 5.1.0-rc6 #79 [ 55.930317][ T7857] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 55.940415][ T7857] Call Trace: [ 55.943755][ T7857] dump_stack+0x172/0x1f0 [ 55.949204][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.954895][ T7857] print_address_description.cold+0x7c/0x20d [ 55.960885][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.966456][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.972016][ T7857] kasan_report.cold+0x1b/0x40 [ 55.977343][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 55.982898][ T7857] __asan_report_load4_noabort+0x14/0x20 [ 55.988639][ T7857] __vb2_perform_fileio+0x1065/0x1140 [ 55.994026][ T7857] ? vb2_thread_start+0x370/0x370 [ 55.999423][ T7857] vb2_read+0x3b/0x50 [ 56.003413][ T7857] vb2_fop_read+0x212/0x410 [ 56.007918][ T7857] ? vb2_fop_write+0x410/0x410 [ 56.012694][ T7857] v4l2_read+0x1ce/0x230 [ 56.016960][ T7857] __vfs_read+0x8d/0x110 [ 56.027205][ T7857] ? v4l2_write+0x230/0x230 [ 56.032963][ T7857] vfs_read+0x194/0x3e0 [ 56.037217][ T7857] ksys_read+0x14f/0x2d0 [ 56.041489][ T7857] ? kernel_write+0x120/0x120 [ 56.046201][ T7857] ? do_syscall_64+0x26/0x610 [ 56.050886][ T7857] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.056956][ T7857] ? do_syscall_64+0x26/0x610 [ 56.061649][ T7857] __x64_sys_read+0x73/0xb0 [ 56.066189][ T7857] do_syscall_64+0x103/0x610 [ 56.071366][ T7857] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.077292][ T7857] RIP: 0033:0x444f09 [ 56.081197][ T7857] 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.103911][ T7857] RSP: 002b:00007ffd2f99c068 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 56.112358][ T7857] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f09 [ 56.120342][ T7857] RDX: 000000000000004b RSI: 0000000020000280 RDI: 0000000000000003 [ 56.128766][ T7857] RBP: 00000000006cf018 R08: 0000000000000004 R09: 00000000004002e0 [ 56.137020][ T7857] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020a0 [ 56.145001][ T7857] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 56.152993][ T7857] [ 56.155333][ T7857] Allocated by task 7851: [ 56.159667][ T7857] save_stack+0x45/0xd0 [ 56.163952][ T7857] __kasan_kmalloc.constprop.0+0xcf/0xe0 [ 56.169706][ T7857] kasan_kmalloc+0x9/0x10 [ 56.174036][ T7857] kmem_cache_alloc_trace+0x151/0x760 [ 56.179405][ T7857] __vb2_init_fileio+0x1cb/0xbe0 [ 56.186854][ T7857] __vb2_perform_fileio+0xc01/0x1140 [ 56.192138][ T7857] vb2_read+0x3b/0x50 [ 56.196425][ T7857] vb2_fop_read+0x212/0x410 [ 56.201516][ T7857] v4l2_read+0x1ce/0x230 [ 56.205783][ T7857] __vfs_read+0x8d/0x110 [ 56.210142][ T7857] vfs_read+0x194/0x3e0 [ 56.214311][ T7857] ksys_read+0x14f/0x2d0 [ 56.218557][ T7857] __x64_sys_read+0x73/0xb0 [ 56.223699][ T7857] do_syscall_64+0x103/0x610 [ 56.228413][ T7857] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.234300][ T7857] [ 56.236643][ T7857] Freed by task 7858: [ 56.240647][ T7857] save_stack+0x45/0xd0 [ 56.244800][ T7857] __kasan_slab_free+0x102/0x150 [ 56.249727][ T7857] kasan_slab_free+0xe/0x10 [ 56.255016][ T7857] kfree+0xcf/0x230 [ 56.258831][ T7857] __vb2_cleanup_fileio+0x100/0x170 [ 56.264165][ T7857] vb2_core_queue_release+0x20/0x80 [ 56.269463][ T7857] _vb2_fop_release+0x1cf/0x2a0 [ 56.274315][ T7857] vb2_fop_release+0x75/0xc0 [ 56.278945][ T7857] vivid_fop_release+0x18e/0x430 [ 56.284002][ T7857] v4l2_release+0x224/0x3a0 [ 56.288737][ T7857] __fput+0x2e5/0x8d0 [ 56.292733][ T7857] ____fput+0x16/0x20 [ 56.296725][ T7857] task_work_run+0x14a/0x1c0 [ 56.301406][ T7857] do_exit+0x90a/0x2fa0 [ 56.305559][ T7857] do_group_exit+0x135/0x370 [ 56.311083][ T7857] __x64_sys_exit_group+0x44/0x50 [ 56.316135][ T7857] do_syscall_64+0x103/0x610 [ 56.320726][ T7857] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.326614][ T7857] [ 56.328940][ T7857] The buggy address belongs to the object at ffff8880a4050900 [ 56.328940][ T7857] which belongs to the cache kmalloc-1k of size 1024 [ 56.343903][ T7857] The buggy address is located 796 bytes inside of [ 56.343903][ T7857] 1024-byte region [ffff8880a4050900, ffff8880a4050d00) [ 56.358523][ T7857] The buggy address belongs to the page: [ 56.365302][ T7857] page:ffffea0002901400 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 [ 56.376229][ T7857] flags: 0x1fffc0000010200(slab|head) [ 56.381635][ T7857] raw: 01fffc0000010200 ffffea00022c5e08 ffffea00028c9488 ffff88812c3f0ac0 [ 56.390253][ T7857] raw: 0000000000000000 ffff8880a4050000 0000000100000007 0000000000000000 [ 56.399015][ T7857] page dumped because: kasan: bad access detected [ 56.405434][ T7857] [ 56.407758][ T7857] Memory state around the buggy address: [ 56.413409][ T7857] ffff8880a4050b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.422222][ T7857] ffff8880a4050b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.430723][ T7857] >ffff8880a4050c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.438875][ T7857] ^ [ 56.443731][ T7857] ffff8880a4050c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.452614][ T7857] ffff8880a4050d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.460955][ T7857] ================================================================== [ 56.469270][ T7857] Disabling lock debugging due to kernel taint [ 56.476713][ T7857] Kernel panic - not syncing: panic_on_warn set ... [ 56.483926][ T7857] CPU: 0 PID: 7857 Comm: syz-executor371 Tainted: G B 5.1.0-rc6 #79 [ 56.493438][ T7857] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.505954][ T7857] Call Trace: [ 56.509520][ T7857] dump_stack+0x172/0x1f0 [ 56.513873][ T7857] panic+0x2cb/0x65c [ 56.517799][ T7857] ? __warn_printk+0xf3/0xf3 [ 56.522409][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.529948][ T7857] ? preempt_schedule+0x4b/0x60 [ 56.534803][ T7857] ? ___preempt_schedule+0x16/0x18 [ 56.540400][ T7857] ? trace_hardirqs_on+0x5e/0x230 [ 56.545423][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.550981][ T7857] end_report+0x47/0x4f [ 56.556468][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.562026][ T7857] kasan_report.cold+0xe/0x40 [ 56.566705][ T7857] ? __vb2_perform_fileio+0x1065/0x1140 [ 56.572274][ T7857] __asan_report_load4_noabort+0x14/0x20 [ 56.577914][ T7857] __vb2_perform_fileio+0x1065/0x1140 [ 56.583306][ T7857] ? vb2_thread_start+0x370/0x370 [ 56.588676][ T7857] vb2_read+0x3b/0x50 [ 56.593198][ T7857] vb2_fop_read+0x212/0x410 [ 56.597789][ T7857] ? vb2_fop_write+0x410/0x410 [ 56.602640][ T7857] v4l2_read+0x1ce/0x230 [ 56.606885][ T7857] __vfs_read+0x8d/0x110 [ 56.611124][ T7857] ? v4l2_write+0x230/0x230 [ 56.615658][ T7857] vfs_read+0x194/0x3e0 [ 56.619907][ T7857] ksys_read+0x14f/0x2d0 [ 56.624155][ T7857] ? kernel_write+0x120/0x120 [ 56.628988][ T7857] ? do_syscall_64+0x26/0x610 [ 56.633958][ T7857] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.640147][ T7857] ? do_syscall_64+0x26/0x610 [ 56.644843][ T7857] __x64_sys_read+0x73/0xb0 [ 56.649369][ T7857] do_syscall_64+0x103/0x610 [ 56.654687][ T7857] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.660994][ T7857] RIP: 0033:0x444f09 [ 56.666184][ T7857] 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.686084][ T7857] RSP: 002b:00007ffd2f99c068 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 [ 56.696138][ T7857] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000444f09 [ 56.704638][ T7857] RDX: 000000000000004b RSI: 0000000020000280 RDI: 0000000000000003 [ 56.712622][ T7857] RBP: 00000000006cf018 R08: 0000000000000004 R09: 00000000004002e0 [ 56.720631][ T7857] R10: 000000000000000f R11: 0000000000000246 R12: 00000000004020a0 [ 56.730143][ T7857] R13: 0000000000402130 R14: 0000000000000000 R15: 0000000000000000 [ 56.739284][ T7857] Kernel Offset: disabled [ 56.743633][ T7857] Rebooting in 86400 seconds..