summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSteve Cohen <cohens@codeaurora.org>2020-07-21 01:30:50 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2020-07-27 23:05:51 +0300
commit8490d6a7e0a0a6fab5c2d82d57a3937306660864 (patch)
tree4c48fca4801198cf553f3ec0438fb069a6516615 /tools/perf/scripts/python/export-to-sqlite.py
parent900ab59e2621053b009f707f80b2c19ce0af5dee (diff)
downloadlinux-8490d6a7e0a0a6fab5c2d82d57a3937306660864.tar.xz
drm: hold gem reference until object is no longer accessed
A use-after-free in drm_gem_open_ioctl can happen if the GEM object handle is closed between the idr lookup and retrieving the size from said object since a local reference is not being held at that point. Hold the local reference while the object can still be accessed to fix this and plug the potential security hole. Signed-off-by: Steve Cohen <cohens@codeaurora.org> Cc: stable@vger.kernel.org Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/1595284250-31580-1-git-send-email-cohens@codeaurora.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions