diff options
author | Karol Herbst <[email protected]> | 2022-04-20 11:57:20 +0200 |
---|---|---|
committer | Joonas Lahtinen <[email protected]> | 2022-05-09 10:36:49 +0300 |
commit | 3220c3b2115102bb35f8f07d90d2989a3f5eb452 (patch) | |
tree | 32bb89220688bc961c600bada20cd93a4a4c345a /net/unix/sysctl_net_unix.c | |
parent | c5eb0a61238dd6faf37f58c9ce61c9980aaffd7a (diff) |
drm/i915: Fix race in __i915_vma_remove_closed
i915_vma_reopen checked if the vma is closed before without taking the
lock. So multiple threads could attempt removing the vma.
Instead the lock needs to be taken before actually checking.
v2: move struct declaration
Cc: Chris Wilson <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: <[email protected]> # v5.3+
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5732
Signed-off-by: Karol Herbst <[email protected]>
Fixes: 155ab8836caa ("drm/i915: Move object close under its own lock")
Reviewed-by: Tvrtko Ursulin <[email protected]>
Signed-off-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 1df1c79cbb7ac9bf148930be3418973c76ba8dde)
Signed-off-by: Joonas Lahtinen <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions