aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2019-05-24 06:45:29 +0000
committerChris Wilson <[email protected]>2019-05-24 09:02:01 +0000
commit63e8dcdb4f8e596f2a290af4278e0bca3304a1f1 (patch)
treedfa64b984a7af5670fe0fcedd0a5ebe23eacdf0b /arch/powerpc/lib/code-patching.c
parentdrm/i915: remove unused IO_TLB_SEGPAGES which should be defined by swiotlb (diff)
downloadkernel-63e8dcdb4f8e596f2a290af4278e0bca3304a1f1.tar.gz
kernel-63e8dcdb4f8e596f2a290af4278e0bca3304a1f1.zip
drm/i915/gtt: Neuter the deferred unbind callback from gen6_ppgtt_cleanup
Having deferred the vma destruction to a worker where we can acquire the struct_mutex, we have to avoid chasing back into the now destroyed ppgtt. The pd_vma is special in having a custom unbind function to scan for unused pages despite the VMA itself being notionally part of the GGTT. As such, we need to disable that callback to avoid a use-after-free. This unfortunately blew up so early during boot that CI declared the machine unreachable as opposed to being the major failure it was. Oops. Fixes: d3622099c76f ("drm/i915/gtt: Always acquire struct_mutex for gen6_ppgtt_cleanup") Signed-off-by: Chris Wilson <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Cc: Tomi Sarvela <[email protected]> Reviewed-by: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions