[ OK ] Started OpenBSD Secure Shell server. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.66' (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 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 syzkaller login: [ 28.883715] ================================================================== [ 28.891330] BUG: KASAN: use-after-free in vgem_gem_dumb_create+0x200/0x210 [ 28.898368] Read of size 8 at addr ffff8880a1e008c0 by task syz-executor608/8279 [ 28.906025] [ 28.907651] CPU: 0 PID: 8279 Comm: syz-executor608 Not tainted 4.14.239-syzkaller #0 [ 28.915526] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.924877] Call Trace: [ 28.927480] dump_stack+0x1b2/0x281 executing program executing program executing program executing program executing program executing program [ 28.931119] print_address_description.cold+0x54/0x1d3 [ 28.936579] kasan_report_error.cold+0x8a/0x191 [ 28.941250] ? vgem_gem_dumb_create+0x200/0x210 [ 28.945924] __asan_report_load8_noabort+0x68/0x70 [ 28.950861] ? vgem_gem_dumb_create+0x200/0x210 [ 28.955537] vgem_gem_dumb_create+0x200/0x210 [ 28.960057] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 28.965094] ? __drm_printfn_debug+0x70/0x70 [ 28.969559] drm_ioctl_kernel+0x14c/0x200 [ 28.973711] drm_ioctl+0x419/0x870 [ 28.977267] ? __drm_printfn_debug+0x70/0x70 [ 28.981687] ? drm_getstats+0x20/0x20 [ 28.985586] ? futex_exit_release+0x220/0x220 [ 28.990091] ? __get_user_8+0x2b/0x2b [ 28.993894] ? drm_getstats+0x20/0x20 [ 28.997701] do_vfs_ioctl+0x75a/0xff0 [ 29.001503] ? ioctl_preallocate+0x1a0/0x1a0 [ 29.006071] ? lock_downgrade+0x740/0x740 [ 29.010215] ? __fget+0x225/0x360 [ 29.013653] ? do_vfs_ioctl+0xff0/0xff0 [ 29.017620] ? security_file_ioctl+0x83/0xb0 [ 29.022009] SyS_ioctl+0x7f/0xb0 [ 29.025379] ? do_vfs_ioctl+0xff0/0xff0 [ 29.029336] do_syscall_64+0x1d5/0x640 [ 29.033306] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.038654] RIP: 0033:0x449fb9 [ 29.041824] RSP: 002b:00007f321b448308 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 29.049611] RAX: ffffffffffffffda RBX: 00000000004ca448 RCX: 0000000000449fb9 [ 29.056879] RDX: 00000000200000c0 RSI: 00000000c02064b2 RDI: 0000000000000005 [ 29.064185] RBP: 00000000004ca440 R08: 0000000000000000 R09: 0000000000000000 [ 29.071448] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004ca44c [ 29.078697] R13: 000000000049a074 R14: 6972642f7665642f R15: 0000000000022000 [ 29.085951] [ 29.087561] Allocated by task 8279: [ 29.091171] kasan_kmalloc+0xeb/0x160 [ 29.095126] kmem_cache_alloc_trace+0x131/0x3d0 [ 29.099772] __vgem_gem_create+0x44/0xe0 [ 29.103809] vgem_gem_dumb_create+0xc5/0x210 [ 29.108195] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 29.113190] drm_ioctl_kernel+0x14c/0x200 [ 29.118188] drm_ioctl+0x419/0x870 [ 29.121812] do_vfs_ioctl+0x75a/0xff0 [ 29.125603] SyS_ioctl+0x7f/0xb0 [ 29.129059] do_syscall_64+0x1d5/0x640 [ 29.132963] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.138223] [ 29.139834] Freed by task 8279: [ 29.143209] kasan_slab_free+0xc3/0x1a0 [ 29.147158] kfree+0xc9/0x250 [ 29.150332] drm_gem_object_free+0x8f/0x150 [ 29.154643] drm_gem_object_put_unlocked+0xc3/0x160 [ 29.159649] vgem_gem_dumb_create+0xf2/0x210 [ 29.164047] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 29.169055] drm_ioctl_kernel+0x14c/0x200 [ 29.173179] drm_ioctl+0x419/0x870 [ 29.177171] do_vfs_ioctl+0x75a/0xff0 [ 29.180948] SyS_ioctl+0x7f/0xb0 [ 29.184289] do_syscall_64+0x1d5/0x640 [ 29.188260] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.193527] [ 29.195139] The buggy address belongs to the object at ffff8880a1e007c0 [ 29.195139] which belongs to the cache kmalloc-512 of size 512 [ 29.207783] The buggy address is located 256 bytes inside of [ 29.207783] 512-byte region [ffff8880a1e007c0, ffff8880a1e009c0) [ 29.219728] The buggy address belongs to the page: [ 29.224656] page:ffffea0002878000 count:1 mapcount:0 mapping:ffff8880a1e00040 index:0x0 [ 29.232782] flags: 0xfff00000000100(slab) [ 29.236997] raw: 00fff00000000100 ffff8880a1e00040 0000000000000000 0000000100000006 [ 29.244875] raw: ffffea000287c2e0 ffffea00028763e0 ffff88813fe80940 0000000000000000 [ 29.253178] page dumped because: kasan: bad access detected [ 29.258877] [ 29.260477] Memory state around the buggy address: [ 29.265381] ffff8880a1e00780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 29.272727] ffff8880a1e00800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb executing program executing program executing program executing program executing program executing program executing program [ 29.280060] >ffff8880a1e00880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.287391] ^ [ 29.292909] ffff8880a1e00900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.300330] ffff8880a1e00980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.307833] ================================================================== [ 29.315352] Disabling lock debugging due to kernel taint [ 29.324262] Kernel panic - not syncing: panic_on_warn set ... [ 29.324262] executing program [ 29.331825] CPU: 0 PID: 8279 Comm: syz-executor608 Tainted: G B 4.14.239-syzkaller #0 [ 29.340909] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 29.350251] Call Trace: [ 29.352830] dump_stack+0x1b2/0x281 [ 29.356451] panic+0x1f9/0x42d [ 29.359632] ? add_taint.cold+0x16/0x16 [ 29.363592] ? ___preempt_schedule+0x16/0x18 [ 29.367979] kasan_end_report+0x43/0x49 [ 29.371927] kasan_report_error.cold+0xa7/0x191 [ 29.376585] ? vgem_gem_dumb_create+0x200/0x210 [ 29.381587] __asan_report_load8_noabort+0x68/0x70 [ 29.386531] ? vgem_gem_dumb_create+0x200/0x210 [ 29.391272] vgem_gem_dumb_create+0x200/0x210 [ 29.395753] drm_mode_create_dumb_ioctl+0x221/0x2b0 [ 29.400756] ? __drm_printfn_debug+0x70/0x70 [ 29.405224] drm_ioctl_kernel+0x14c/0x200 [ 29.409347] drm_ioctl+0x419/0x870 [ 29.412858] ? __drm_printfn_debug+0x70/0x70 [ 29.417259] ? drm_getstats+0x20/0x20 [ 29.421033] ? futex_exit_release+0x220/0x220 [ 29.425503] ? __get_user_8+0x2b/0x2b [ 29.429279] ? drm_getstats+0x20/0x20 [ 29.433139] do_vfs_ioctl+0x75a/0xff0 [ 29.436931] ? ioctl_preallocate+0x1a0/0x1a0 [ 29.441493] ? lock_downgrade+0x740/0x740 [ 29.445617] ? __fget+0x225/0x360 [ 29.449056] ? do_vfs_ioctl+0xff0/0xff0 [ 29.453002] ? security_file_ioctl+0x83/0xb0 [ 29.457383] SyS_ioctl+0x7f/0xb0 [ 29.460782] ? do_vfs_ioctl+0xff0/0xff0 [ 29.464827] do_syscall_64+0x1d5/0x640 [ 29.468797] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 29.473961] RIP: 0033:0x449fb9 [ 29.477209] RSP: 002b:00007f321b448308 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 29.485237] RAX: ffffffffffffffda RBX: 00000000004ca448 RCX: 0000000000449fb9 [ 29.492485] RDX: 00000000200000c0 RSI: 00000000c02064b2 RDI: 0000000000000005 [ 29.499731] RBP: 00000000004ca440 R08: 0000000000000000 R09: 0000000000000000 [ 29.506988] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004ca44c [ 29.514240] R13: 000000000049a074 R14: 6972642f7665642f R15: 0000000000022000 [ 29.523037] Kernel Offset: disabled [ 29.526647] Rebooting in 86400 seconds..