✓ CI.checkpatch: success for drm/xe: Userptr invalid page access fixes (rev4)
Patchwork
patchwork at emeril.freedesktop.org
Wed Mar 5 10:25:10 UTC 2025
== Series Details ==
Series: drm/xe: Userptr invalid page access fixes (rev4)
URL : https://patchwork.freedesktop.org/series/145630/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
cbb4e4a079d89106c2736adc3c7de6f9dc56da07
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 6c63705163735c299598d3d82ecd902a0a80a6af
Author: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Date: Tue Mar 4 18:33:42 2025 +0100
drm/xe/userptr: Unmap userptrs in the mmu notifier
If userptr pages are freed after a call to the xe mmu notifier,
the device will not be blocked out from theoretically accessing
these pages unless they are also unmapped from the iommu, and
this violates some aspects of the iommu-imposed security.
Ensure that userptrs are unmapped in the mmu notifier to
mitigate this. A naive attempt would try to free the sg table, but
the sg table itself may be accessed by a concurrent bind
operation, so settle for only unmapping.
v3:
- Update lockdep asserts.
- Fix a typo (Matthew Auld)
Fixes: 81e058a3e7fd ("drm/xe: Introduce helper to populate userptr")
Cc: Oak Zeng <oak.zeng at intel.com>
Cc: Matthew Auld <matthew.auld at intel.com>
Cc: <stable at vger.kernel.org> # v6.10+
Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>
+ /mt/dim checkpatch a76e0e6082b604f430c20762ca8495a854ae5f0e drm-intel
daa13784d4e8 drm/xe/hmm: Style- and include fixes
a6967e5c1c46 drm/xe/hmm: Don't dereference struct page pointers without notifier lock
6c6370516373 drm/xe/userptr: Unmap userptrs in the mmu notifier
More information about the Intel-xe
mailing list