linux_dsm_epyc7002/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
vkms_composer.c
vkms_crtc.c
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