Skip to content

HW_LOCK Security Patches

Peter Antoine dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm: Kernel Crash in drm_unlockdrivers/gpu/drm/drm_lock.c+8 -010 replies
2/5drm: Fixes unsafe deference in locks.drivers/gpu/drm/drm_context.c+7 -11 reply
3/5drm: Possible lock priority escalation.drivers/gpu/drm/drm_context.c drivers/gpu/drm/drm_lock.c+5 -54 replies
4/5drm: Make HW_LOCK access functions optional.drivers/gpu/drm/drm_lock.c drivers/gpu/drm/i915/i915_dma.c drivers/gpu/drm/nouveau/nouveau_drm.c +2 more+24 -128 replies
5/5drm: Make Legacy Context access functions optional.drivers/gpu/drm/drm_context.c drivers/gpu/drm/drm_drv.c+43 -51 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchIntel Graphics QA PRTS (Patch Regression Test System Contact:
SeriesT-b
1/5
2/5
3/5
4/5
5/5T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] HW_LOCK Security Patches

The following series of patches fix a number of security holes in the i915 driver (actually in drm but...). The first three patches remove the actual security issues that have been found. The last two patches make the functions optional for all drivers. The only driver that has this feature turned on is the Nouveau driver, thus hopefully not breaking that driver.

The patch set has been tested on the Intel platforms but has not been tested on the Nouveau driver. Hopefully someone with a working card and the right combination of drmlib can verify that the patches do what they say.

There is a i-g-t test that goes with this patchset, but that test SHOULD NOT be run before the kernel is patches as the test will crash the driver and/or make the kernel panic.

Peter.

Peter Antoine (5):
drm: Kernel Crash in drm_unlock
drm: Fixes unsafe deference in locks.
drm: Possible lock priority escalation.
drm: Make HW_LOCK access functions optional.
drm: Make Legacy Context access functions optional.

 drivers/gpu/drm/drm_context.c         | 50 ++++++++++++++++++++++++++++++++---
 drivers/gpu/drm/drm_drv.c             | 12 +++++----
 drivers/gpu/drm/drm_lock.c            | 18 +++++++++++--
 drivers/gpu/drm/i915/i915_dma.c       |  3 +++
 drivers/gpu/drm/nouveau/nouveau_drm.c |  3 ++-
 include/drm/drmP.h                    | 23 ++++++++--------
 include/uapi/drm/i915_drm.h           |  1 +
 7 files changed, 87 insertions(+), 23 deletions(-)
Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx