diff options
author | Rob Clark <[email protected]> | 2023-01-19 09:32:58 -0800 |
---|---|---|
committer | Tvrtko Ursulin <[email protected]> | 2023-01-27 13:44:27 +0000 |
commit | 99343c46d4e2b34c285d3d5f68ff04274c2f9fb4 (patch) | |
tree | 2197fac01824ea2d0c7cf88ac7bceed0113fcd32 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 7649a5d1f263b8cc5c2827ef0443ead9bee9ae0e (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]
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions