WSL2-Linux-Kernel/drivers/gpu/drm/vmwgfx
Rafael Mendonca b47a37ad4a drm/vmwgfx: Fix memory leak in vmw_mksstat_add_ioctl()
[ Upstream commit a40c7f61d1 ]

If the copy of the description string from userspace fails, then the page
for the instance descriptor doesn't get freed before returning -EFAULT,
which leads to a memleak.

Fixes: 7a7a933edd ("drm/vmwgfx: Introduce VMware mks-guest-stats")
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220916204751.720716-1-rafaelmendsr@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 12:34:55 +02:00
..
device_include drm/vmwgfx: Replace "vmw_num_pages" with "PFN_UP" 2021-08-09 17:30:35 -04:00
Kconfig
Makefile drm/vmwgfx: Remove explicit transparent hugepages support 2022-01-27 11:05:28 +01:00
ttm_memory.c drm/vmwgfx: Remove the deprecated lower mem limit 2022-01-27 11:03:22 +01:00
ttm_memory.h drm/vmwgfx: Remove the deprecated lower mem limit 2022-01-27 11:03:22 +01:00
ttm_object.c
ttm_object.h
vmw_surface_cache.h
vmwgfx_binding.c
vmwgfx_binding.h
vmwgfx_blit.c
vmwgfx_bo.c drm/vmwgfx: Make use of PFN_ALIGN/PFN_UP helper macro 2021-08-09 17:30:34 -04:00
vmwgfx_cmd.c drm/vmwgfx: Disable command buffers on svga3 without gbobjects 2022-05-18 10:26:55 +02:00
vmwgfx_cmdbuf.c drm/vmwgfx: Make use of PFN_ALIGN/PFN_UP helper macro 2021-08-09 17:30:34 -04:00
vmwgfx_cmdbuf_res.c drm/vmwgfx: Use list_move_tail instead of list_del/list_add_tail in vmwgfx_cmdbuf_res.c 2021-08-09 17:29:32 -04:00
vmwgfx_context.c
vmwgfx_cotable.c drm/vmwgfx: Make use of PFN_ALIGN/PFN_UP helper macro 2021-08-09 17:30:34 -04:00
vmwgfx_devcaps.c
vmwgfx_devcaps.h
vmwgfx_drv.c drm/vmwgfx: Remove explicit transparent hugepages support 2022-01-27 11:05:28 +01:00
vmwgfx_drv.h drm/vmwgfx: Fix fencing on SVGAv3 2022-05-18 10:26:51 +02:00
vmwgfx_execbuf.c drm/vmwgfx: Fix stale file descriptors on failed usercopy 2022-01-29 10:58:25 +01:00
vmwgfx_fb.c drm/vmwgfx: Initialize drm_mode_fb_cmd2 2022-05-18 10:26:57 +02:00
vmwgfx_fence.c drm/vmwgfx: Fix fencing on SVGAv3 2022-05-18 10:26:51 +02:00
vmwgfx_fence.h
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c
vmwgfx_ioctl.c
vmwgfx_irq.c drm/vmwgfx: Fix fencing on SVGAv3 2022-05-18 10:26:51 +02:00
vmwgfx_kms.c drm/vmwgfx: validate the screen formats 2022-06-09 10:22:30 +02:00
vmwgfx_kms.h drm/vmwgfx: validate the screen formats 2022-06-09 10:22:30 +02:00
vmwgfx_ldu.c
vmwgfx_mksstat.h
vmwgfx_mob.c drm/vmwgfx: Remove unused compile options 2022-01-27 11:05:29 +01:00
vmwgfx_msg.c drm/vmwgfx: Fix memory leak in vmw_mksstat_add_ioctl() 2022-10-26 12:34:55 +02:00
vmwgfx_msg_arm64.h
vmwgfx_msg_x86.h
vmwgfx_overlay.c
vmwgfx_page_dirty.c drm/ttm: remove ttm_bo_vm_insert_huge() 2021-11-18 19:17:08 +01:00
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/vmwgfx: Fix an invalid read 2022-06-09 10:22:44 +02:00
vmwgfx_resource_priv.h
vmwgfx_scrn.c
vmwgfx_shader.c drm/vmwgfx: Make use of PFN_ALIGN/PFN_UP helper macro 2021-08-09 17:30:34 -04:00
vmwgfx_simple_resource.c
vmwgfx_so.c
vmwgfx_so.h
vmwgfx_stdu.c drm/vmwgfx: Remove unused compile options 2022-01-27 11:05:29 +01:00
vmwgfx_streamoutput.c
vmwgfx_surface.c drm/vmwgfx: fix potential UAF in vmwgfx_surface.c 2021-08-09 17:30:34 -04:00
vmwgfx_system_manager.c drm/vmwgfx: Introduce a new placement for MOB page tables 2022-01-27 11:04:33 +01:00
vmwgfx_ttm_buffer.c drm/vmwgfx: Introduce a new placement for MOB page tables 2022-01-27 11:04:33 +01:00
vmwgfx_ttm_glue.c drm/ttm: remove ttm_bo_vm_insert_huge() 2021-11-18 19:17:08 +01:00
vmwgfx_va.c
vmwgfx_validation.c
vmwgfx_validation.h