Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC v3 0/2] drm/i915/selftests: Use safe userspace memory for mappings
@ 2026-04-03  9:00 Krzysztof Karas
  2026-04-03  9:00 ` [RFC v3 1/2] drm/i915/selftests: Add userspace PID parameter Krzysztof Karas
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Krzysztof Karas @ 2026-04-03  9:00 UTC (permalink / raw)
  To: intel-gfx
  Cc: Andi Shyti, Sebastian Brzezinka, Krzysztof Niemiec,
	Janusz Krzysztofik, Krzysztof Karas

Test-with: 20260330102400.1157658-1-krzysztof.karas@intel.com

Currently, i915 selftests use unknown process's address space to
perform mappings to userspace memory. This is problematic,
because there is no control over lifetime of the memory of such
task, so the test would occasionally borrow memory scheduled for
or in the middle of a cleanup causing SIGBUS errors.

Utilize user-provided PID of running userspace process to
perfofm mapping in a safe environment.

Krzysztof Karas (2):
  drm/i915/selftests: Add userspace PID parameter
  drm/i915/selftests: Prevent userspace mapping invalidation

 .../drm/i915/gem/selftests/i915_gem_mman.c    | 14 +++----
 drivers/gpu/drm/i915/i915_selftest.h          |  1 +
 .../gpu/drm/i915/selftests/i915_selftest.c    | 40 +++++++++++++++++++
 3 files changed, 47 insertions(+), 8 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-04-08  7:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03  9:00 [RFC v3 0/2] drm/i915/selftests: Use safe userspace memory for mappings Krzysztof Karas
2026-04-03  9:00 ` [RFC v3 1/2] drm/i915/selftests: Add userspace PID parameter Krzysztof Karas
2026-04-03  9:57   ` Janusz Krzysztofik
2026-04-08  7:54     ` Krzysztof Karas
2026-04-03  9:00 ` [RFC v3 2/2] drm/i915/selftests: Prevent userspace mapping invalidation Krzysztof Karas
2026-04-03  9:47   ` Janusz Krzysztofik
2026-04-08  7:52     ` Krzysztof Karas
2026-04-03 11:29   ` Sebastian Brzezinka
2026-04-08  7:48     ` Krzysztof Karas
2026-04-03 11:33 ` ✗ i915.CI.BAT: failure for drm/i915/selftests: Use safe userspace memory for mappings Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox