linux/drivers/gpu/drm/vkms
Ezequiel Garcia 0ea2ea42b3 drm/vkms: Hold gem object while still in-use
We need to keep the reference to the drm_gem_object
until the last access by vkms_dumb_create.

Therefore, the put the object after it is used.

This fixes a use-after-free issue reported by syzbot.

While here, change vkms_gem_create() symbol to static.

Reported-and-tested-by: syzbot+e3372a2afe1e7ef04bc7@syzkaller.appspotmail.com
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200427214405.13069-1-ezequiel@collabora.com
2020-05-06 21:51:46 -04:00
..
Makefile drm/vkms: Rename vkms_crc.c into vkms_composer.c 2019-07-12 00:46:02 -03:00
vkms_composer.c drm/vkms: Fix typo and preposion in function documentation 2019-12-05 18:55:55 -05:00
vkms_crtc.c drm/vkms: Convert to CRTC VBLANK callbacks 2020-02-13 13:10:10 +01:00
vkms_drv.c drm/vkms: enable cursor by default 2020-05-06 21:51:01 -04:00
vkms_drv.h drm/vkms: Hold gem object while still in-use 2020-05-06 21:51:46 -04:00
vkms_gem.c drm/vkms: Hold gem object while still in-use 2020-05-06 21:51:46 -04:00
vkms_output.c drm/vkms: Use simple encoder 2020-04-02 14:16:46 +02:00
vkms_plane.c drm/vkms: plane_state->fb iff plane_state->crtc 2020-01-28 15:43:32 +01:00