summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2026-05-08 13:26:37 +0300
committerMatthew Auld <matthew.auld@intel.com>2026-05-11 12:57:20 +0300
commit479669418253e0f27f8cf5db01a731352ea592e7 (patch)
tree2deae57f8f98208f8127630b85964d66e7eadac4 /include/linux
parentaf1f2ad0c59fe4e2f924c526f66e968289d77971 (diff)
downloadlinux-479669418253e0f27f8cf5db01a731352ea592e7.tar.xz
drm/xe/dma-buf: fix UAF with retry loop
Retry doesn't work here, since bo will be freed on error, leading to UAF. However, now that we do the alloc & init before the attach, we can now combine this as one unit and have the init do the alloc for us. This should make the retry safe. Reported by Sashiko. v2: Fix up the error unwind (CI) Closes: https://sashiko.dev/#/patchset/20260506184332.86743-2-matthew.auld%40intel.com Fixes: eb289a5f6cc6 ("drm/xe: Convert xe_dma_buf.c for exhaustive eviction") Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Matthew Brost <matthew.brost@intel.com> Cc: <stable@vger.kernel.org> # v6.18+ Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Link: https://patch.msgid.link/20260508102635.149172-4-matthew.auld@intel.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions