diff options
author | Rob Clark <[email protected]> | 2023-01-19 09:32:58 -0800 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-01-30 15:48:08 -0500 |
commit | 41d419382ec7e257e54b7b6ff0d3623aafb1316d (patch) | |
tree | b6cf4aff0a181e24eeb2994cfea2cd0c9c691cc0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6d796c50f84ca79f1722bb131799e5a5710c4700 (diff) |
drm/i915: Avoid potential vm use-after-free
Adding the vm to the vm_xa table makes it visible to userspace, which
could try to race with us to close the vm. So we need to take our extra
reference before putting it in the table.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Fixes: 9ec8795e7d91 ("drm/i915: Drop __rcu from gem_context->vm")
Cc: <[email protected]> # v5.16+
Signed-off-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 99343c46d4e2b34c285d3d5f68ff04274c2f9fb4)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions