Skip to content

powerpc/pseries: restrict error injection and DT changes when locked down

Nathan Lynch linux-security-module linuxppc-dev lkml 2 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v12 patches 7 repliesSuperseded

Changes in v2 from the cover letter

* Move LOCKDOWN_DEVICE_TREE next to LOCKDOWN_ACPI_TABLES.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2powerpc/pseries: block untrusted device tree changes when locked downarch/powerpc/platforms/pseries/reconfig.c include/linux/security.h security/security.c+7 -02 replies
2/2powerpc/rtas: block error injection when locked downarch/powerpc/kernel/rtas.c include/linux/security.h security/security.c+26 -13 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPaul MooreAndrew Donnellan
1/2A-b R-b
2/2A-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] powerpc/pseries: restrict error injection and DT changes when locked down

Add two new lockdown reasons for use in powerpc's pseries platform code.

The pseries platform allows hardware-level error injection via certain calls to the RTAS (Run Time Abstraction Services) firmware. ACPI-based error injection is already restricted in lockdown; this facility should be restricted for the same reasons.

pseries also allows nearly arbitrary device tree changes via /proc/powerpc/ofdt. Just as overriding ACPI tables is not allowed while locked down, so should this facility be restricted.

Changes since v1:
* Move LOCKDOWN_DEVICE_TREE next to LOCKDOWN_ACPI_TABLES.

Nathan Lynch (2):
powerpc/pseries: block untrusted device tree changes when locked down powerpc/rtas: block error injection when locked down

 arch/powerpc/kernel/rtas.c                | 25 ++++++++++++++++++++++-
 arch/powerpc/platforms/pseries/reconfig.c |  5 +++++
 include/linux/security.h                  |  2 ++
 security/security.c                       |  2 ++
 4 files changed, 33 insertions(+), 1 deletion(-)
Signature · 1 line
2.37.3