diff options
| author | Matthew Auld <matthew.auld@intel.com> | 2026-09-08 17:50:54 +0100 |
|---|---|---|
| committer | Matthew Auld <matthew.auld@intel.com> | 2026-09-09 10:57:10 +0100 |
| commit | 7cf85c190814c209cb182eaba39e184c1655faa9 (patch) | |
| tree | f20bb7181e6512f76406ba071473ccf1e2c1d7d8 /tools/perf/scripts/python | |
| parent | fb2ee38bab8025ad6a7a9cbb4635c5a178e4a7bc (diff) | |
| download | linux-7cf85c190814c209cb182eaba39e184c1655faa9.tar.gz linux-7cf85c190814c209cb182eaba39e184c1655faa9.zip | |
drm/xe/mmio_gem: reject VM_EXEC and drop VM_DONTCOPY
Hardware MMIO registers should never be executable; reject VM_EXEC
at mmap time and clear VM_MAYEXEC to prevent later mprotect attempts.
Also drop VM_DONTCOPY so that child processes across fork() can
inherit the mapping and lazily fault in the PFNs, matching standard
DRM GEM semantics and making the existing drm_gem_vm_open() callback
functional.
This aligns with existing PCI_BARRIER, which will use this in the next
patch. We don't want any noticeable behaviour change there, since this
will be user visible. This will also be the first user.
Assisted-by: LLM
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Ilia Levi <ilia.levi@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20260908165046.1393557-17-matthew.auld@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
