Files
linux-st/drivers/gpu/drm
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
..
2020-04-30 15:08:58 -04:00
2020-04-28 16:04:00 +02:00
2020-04-28 16:13:03 +02:00
2020-04-02 14:16:44 +02:00
2020-04-21 09:02:29 +02:00
2020-04-02 14:16:44 +02:00
2020-04-29 18:44:26 +03:00
2020-04-02 14:16:44 +02:00
2020-04-24 20:51:24 +08:00
2020-04-17 08:12:22 +02:00
2020-04-03 17:11:41 +02:00
2020-04-02 14:16:45 +02:00
2020-04-02 14:16:45 +02:00
2020-04-28 16:05:15 +02:00
2020-04-17 08:12:22 +02:00
2020-04-28 15:15:59 +02:00
2020-04-17 08:12:22 +02:00
2020-03-26 15:45:36 +01:00
2020-04-17 08:12:22 +02:00
2020-04-02 14:16:46 +02:00
2020-04-03 17:11:41 +02:00
2020-04-03 17:11:41 +02:00
2020-04-28 15:05:19 +02:00
2020-04-29 18:44:26 +03:00
2020-03-26 15:38:09 +01:00
2020-04-29 18:44:26 +03:00
2020-04-03 17:11:41 +02:00
2020-04-28 16:05:15 +02:00
2020-04-28 16:05:15 +02:00