diff options
author | Chris Wilson <[email protected]> | 2020-07-23 18:21:19 +0100 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2020-09-30 14:24:37 -0400 |
commit | 4fe9af8e881d946bf60790eeb37a7c4f96e28382 (patch) | |
tree | 138f5cc7f7c3beddd27bd283a778205a49001f50 /scripts/gdb/linux | |
parent | cef8ce5528bf61a91d3116f327fc6b78310facfa (diff) |
drm/i915/gem: Serialise debugfs i915_gem_objects with ctx->mutex
Since the debugfs may peek into the GEM contexts as the corresponding
client/fd is being closed, we may try and follow a dangling pointer.
However, the context closure itself is serialised with the ctx->mutex,
so if we hold that mutex as we inspect the state coupled in the context,
we know the pointers within the context are stable and will remain valid
as we inspect their tables.
Signed-off-by: Chris Wilson <[email protected]>
Cc: CQ Tang <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: [email protected]
Reviewed-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 102f5aa491f262c818e607fc4fee08a724a76c69)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions