Commit 9182f3cd authored by Min Li's avatar Min Li Committed by sanglipeng
Browse files

drm/radeon: fix race condition UAF in radeon_gem_set_domain_ioctl

stable inclusion
from stable-v5.10.186
commit d8efc77f23c84a46bd8a43bec833cf637222b2bf
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8J4KH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d8efc77f23c84a46bd8a43bec833cf637222b2bf



--------------------------------

[ Upstream commit 982b173a ]

Userspace can race to free the gobj(robj converted from), robj should not
be accessed again after drm_gem_object_put, otherwith it will result in
use-after-free.

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarMin Li <lm0963hack@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 99c2c466
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment