Warning: Permanently added '10.128.0.40' (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 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 [ 151.872666] ================================================================== [ 151.880257] BUG: KASAN: use-after-free in vgem_gem_dumb_create+0x200/0x210 [ 151.887562] Read of size 8 at addr ffff8880a9850400 by task syz-executor048/8177 [ 151.895187] [ 151.896976] CPU: 1 PID: 8177 Comm: syz-executor048 Not tainted 4.14.217-syzkaller #0 [ 151.904855] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 151.914239] Call Trace: [ 151.916933] dump_stack+0x1b2/0x281 [ 151.920569] print_address_description.cold+0x54/0x1d3 [ 151.926002] kasan_report_error.cold+0x8a/0x191 [ 151.931361] ? vgem_gem_dumb_create+0x200/0x210 [ 151.936024] __asan_report_load8_noabort+0x68/0x70 [ 151.941087] ? vgem_gem_dumb_create+0x200/0x210 [ 151.945763] vgem_gem_dumb_create+0x200/0x210 [ 151.950347] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 151.955652] ? __drm_printfn_debug+0x70/0x70 [ 151.960162] drm_ioctl_kernel+0x14c/0x200 [ 151.964338] drm_ioctl+0x419/0x870 [ 151.967952] ? __drm_printfn_debug+0x70/0x70 [ 151.972375] ? drm_getstats+0x20/0x20 [ 151.976264] ? futex_exit_release+0x220/0x220 [ 151.980923] ? drm_getstats+0x20/0x20 [ 151.984727] do_vfs_ioctl+0x75a/0xff0 [ 151.988750] ? ioctl_preallocate+0x1a0/0x1a0 [ 151.993146] ? lock_downgrade+0x740/0x740 [ 151.997367] ? __fget+0x225/0x360 [ 152.000811] ? do_vfs_ioctl+0xff0/0xff0 [ 152.004787] ? security_file_ioctl+0x83/0xb0 [ 152.009208] SyS_ioctl+0x7f/0xb0 [ 152.012569] ? do_vfs_ioctl+0xff0/0xff0 [ 152.016528] do_syscall_64+0x1d5/0x640 [ 152.020440] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 152.025618] RIP: 0033:0x44a839 [ 152.029078] RSP: 002b:00007ff0afd09ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 152.036873] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a839 [ 152.044405] RDX: 00000000200000c0 RSI: 00000000c02064b2 RDI: 0000000000000004 [ 152.052496] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 152.059937] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 152.067193] R13: 00007ffdb99d847f R14: 00007ff0afd0a9c0 R15: 20c49ba5e353f7cf [ 152.074731] [ 152.076356] Allocated by task 8177: [ 152.080081] kasan_kmalloc+0xeb/0x160 [ 152.083861] kmem_cache_alloc_trace+0x131/0x3d0 [ 152.088514] __vgem_gem_create+0x44/0xe0 [ 152.092557] vgem_gem_dumb_create+0xc5/0x210 [ 152.096942] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 152.101940] drm_ioctl_kernel+0x14c/0x200 [ 152.106089] drm_ioctl+0x419/0x870 [ 152.109608] do_vfs_ioctl+0x75a/0xff0 [ 152.113406] SyS_ioctl+0x7f/0xb0 [ 152.116761] do_syscall_64+0x1d5/0x640 [ 152.120748] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 152.126013] [ 152.127632] Freed by task 8177: [ 152.131415] kasan_slab_free+0xc3/0x1a0 [ 152.135372] kfree+0xc9/0x250 [ 152.138467] drm_gem_object_free+0x8f/0x150 [ 152.142914] drm_gem_object_put_unlocked+0xc3/0x160 [ 152.148023] vgem_gem_dumb_create+0xf2/0x210 [ 152.152417] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 152.157414] drm_ioctl_kernel+0x14c/0x200 [ 152.161556] drm_ioctl+0x419/0x870 [ 152.165081] do_vfs_ioctl+0x75a/0xff0 [ 152.169007] SyS_ioctl+0x7f/0xb0 [ 152.172365] do_syscall_64+0x1d5/0x640 [ 152.176322] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 152.181590] [ 152.183304] The buggy address belongs to the object at ffff8880a9850300 [ 152.183304] which belongs to the cache kmalloc-512 of size 512 [ 152.196056] The buggy address is located 256 bytes inside of [ 152.196056] 512-byte region [ffff8880a9850300, ffff8880a9850500) [ 152.208189] The buggy address belongs to the page: [ 152.213373] page:ffffea0002a61400 count:1 mapcount:0 mapping:ffff8880a9850080 index:0x0 [ 152.221516] flags: 0xfff00000000100(slab) [ 152.225648] raw: 00fff00000000100 ffff8880a9850080 0000000000000000 0000000100000006 [ 152.233666] raw: ffffea000288d0e0 ffffea00028c9560 ffff88813fe80940 0000000000000000 [ 152.241534] page dumped because: kasan: bad access detected [ 152.247639] [ 152.249250] Memory state around the buggy address: [ 152.254161] ffff8880a9850300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 152.261608] ffff8880a9850380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 152.269287] >ffff8880a9850400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 152.276905] ^ [ 152.280261] ffff8880a9850480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 152.287900] ffff8880a9850500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 152.295362] ================================================================== [ 152.302921] Disabling lock debugging due to kernel taint [ 152.309157] Kernel panic - not syncing: panic_on_warn set ... [ 152.309157] [ 152.316613] CPU: 1 PID: 8177 Comm: syz-executor048 Tainted: G B 4.14.217-syzkaller #0 [ 152.325722] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 152.335159] Call Trace: [ 152.337994] dump_stack+0x1b2/0x281 [ 152.341617] panic+0x1f9/0x42d [ 152.344798] ? add_taint.cold+0x16/0x16 [ 152.349110] ? ___preempt_schedule+0x16/0x18 [ 152.353516] kasan_end_report+0x43/0x49 [ 152.357506] kasan_report_error.cold+0xa7/0x191 [ 152.362158] ? vgem_gem_dumb_create+0x200/0x210 [ 152.366808] __asan_report_load8_noabort+0x68/0x70 [ 152.371901] ? vgem_gem_dumb_create+0x200/0x210 [ 152.376669] vgem_gem_dumb_create+0x200/0x210 [ 152.381424] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 152.386434] ? __drm_printfn_debug+0x70/0x70 [ 152.390836] drm_ioctl_kernel+0x14c/0x200 [ 152.394967] drm_ioctl+0x419/0x870 [ 152.398491] ? __drm_printfn_debug+0x70/0x70 [ 152.402877] ? drm_getstats+0x20/0x20 [ 152.406665] ? futex_exit_release+0x220/0x220 [ 152.411150] ? drm_getstats+0x20/0x20 [ 152.415028] do_vfs_ioctl+0x75a/0xff0 [ 152.418811] ? ioctl_preallocate+0x1a0/0x1a0 [ 152.423200] ? lock_downgrade+0x740/0x740 [ 152.427331] ? __fget+0x225/0x360 [ 152.430851] ? do_vfs_ioctl+0xff0/0xff0 [ 152.434896] ? security_file_ioctl+0x83/0xb0 [ 152.439287] SyS_ioctl+0x7f/0xb0 [ 152.442642] ? do_vfs_ioctl+0xff0/0xff0 [ 152.446903] do_syscall_64+0x1d5/0x640 [ 152.450780] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 152.456050] RIP: 0033:0x44a839 [ 152.459216] RSP: 002b:00007ff0afd09ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 152.467042] RAX: ffffffffffffffda RBX: 00000000006dbc28 RCX: 000000000044a839 [ 152.474481] RDX: 00000000200000c0 RSI: 00000000c02064b2 RDI: 0000000000000004 [ 152.481730] RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000 [ 152.489016] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c [ 152.496677] R13: 00007ffdb99d847f R14: 00007ff0afd0a9c0 R15: 20c49ba5e353f7cf [ 152.505477] Kernel Offset: disabled [ 152.509575] Rebooting in 86400 seconds..