diff options
| author | Desmond Cheong Zhi Xi <[email protected]> | 2021-07-24 11:18:24 +0000 |
|---|---|---|
| committer | Zack Rusin <[email protected]> | 2021-08-09 21:30:34 +0000 |
| commit | 2bc5da528dd570c5ecabc107e6fbdbc55974276f (patch) | |
| tree | 17db96c2cf7aab94f4d2a9c90ddf6a1e24d5b783 /drivers/gpu/drm/amd | |
| parent | drm/vmwgfx: Use list_move_tail instead of list_del/list_add_tail in vmwgfx_cm... (diff) | |
| download | kernel-2bc5da528dd570c5ecabc107e6fbdbc55974276f.tar.gz kernel-2bc5da528dd570c5ecabc107e6fbdbc55974276f.zip | |
drm/vmwgfx: fix potential UAF in vmwgfx_surface.c
drm_file.master should be protected by either drm_device.master_mutex
or drm_file.master_lookup_lock when being dereferenced. However,
drm_master_get is called on unprotected file_priv->master pointers in
vmw_surface_define_ioctl and vmw_gb_surface_define_internal.
This is fixed by replacing drm_master_get with drm_file_get_master.
Signed-off-by: Desmond Cheong Zhi Xi <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Reviewed-by: Zack Rusin <[email protected]>
Signed-off-by: Zack Rusin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd')
0 files changed, 0 insertions, 0 deletions
