Skip to content

Extend "trusted" keys to support a new trust source named the PowerVM Key Wrapping Module (PKWM)

Srish Srinivasan keyrings linux-integrity linux-security-module linuxppc-dev lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest6 patches 4 repliesIn review
  2. v56 patches 1 replySuperseded
  3. v46 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v36 patches3 repliesSuperseded
v26 patches7 repliesSuperseded
v16 patches2 repliesSuperseded

Changes in v6 from the cover letter

* Patch 1 to Patch 3:
- Add Nayna's Tested-by tag
* Patch 4
- Fix build error reported by kernel test robot <[email protected]>
- Add Nayna's Tested-by tag
* Patch 5
- Add Nayna's Tested-by tag

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6pseries/plpks: fix kernel-doc comment inconsistenciesarch/powerpc/include/asm/plpks.h arch/powerpc/platforms/pseries/plpks.c+318 -870 replies
2/6powerpc/pseries: move the PLPKS config inside its own sysfs directoryDocumentation/ABI/testing/sysfs-firmware-plpks Documentation/ABI/testing/sysfs-secvar arch/powerpc/include/asm/plpks.h +5 more+156 -1110 replies
3/6pseries/plpks: expose PowerVM wrapping features via the sysfsDocumentation/ABI/testing/sysfs-firmware-plpks arch/powerpc/include/asm/hvcall.h arch/powerpc/include/asm/plpks.h +2 more+36 -10 replies
4/6pseries/plpks: add HCALLs for PowerVM Key Wrapping ModuleDocumentation/arch/powerpc/papr_hcalls.rst arch/powerpc/include/asm/plpks.h arch/powerpc/platforms/pseries/plpks.c+395 -20 replies
5/6keys/trusted_keys: establish PKWM as a trusted sourceMAINTAINERS include/keys/trusted-type.h include/keys/trusted_pkwm.h +4 more+253 -20 replies
6/6docs: trusted-encryped: add PKWM as a new trust sourceDocumentation/admin-guide/kernel-parameters.txt Documentation/security/keys/trusted-encrypted.rst+51 -01 reply

Reviews trailers per patch

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

PatchNayna JainMimi ZoharJarkko Sakkinen
1/6R-b T-b
2/6R-b T-b R-b
3/6R-b T-b
4/6R-b T-b
5/6R-b T-b R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/6] Extend "trusted" keys to support a new trust source named the PowerVM Key Wrapping Module (PKWM)

Power11 has introduced a feature called the PowerVM Key Wrapping Module (PKWM), where PowerVM in combination with Power LPAR Platform KeyStore (PLPKS) [1] supports a new feature called "Key Wrapping" [2] to protect user secrets by wrapping them using a hypervisor generated wrapping key. This wrapping key is an AES-GCM-256 symmetric key that is stored as an object in the PLPKS. It has policy based protections that prevents it from being read out or exposed to the user. This wrapping key can then be used by the OS to wrap or unwrap secrets via hypervisor calls.

This patchset intends to add the PKWM, which is a combination of IBM PowerVM and PLPKS, as a new trust source for trusted keys. The wrapping key does not exist by default and its generation is requested by the kernel at the time of PKWM initialization. This key is then persisted by the PKWM and is used for wrapping any kernel provided key, and is never exposed to the user. The kernel is aware of only the label to this wrapping key.

Along with the PKWM implementation, this patchset includes two preparatory
patches: one fixing the kernel-doc inconsistencies in the PLPKS code and another reorganizing PLPKS config variables in the sysfs.

Changelog:

v6:

* Patch 1 to Patch 3:
- Add Nayna's Tested-by tag
* Patch 4
- Fix build error reported by kernel test robot <[email protected]>
- Add Nayna's Tested-by tag
* Patch 5
- Add Nayna's Tested-by tag

v5:

* Patch 1 to Patch 3:
- Add Nayna's Reviewed-by tag
* Patch 4:
- Fix build error identified by [email protected]
- Add Nayna's Reviewed-by tag
* Patch 5:
- Add Reviewed-by tags from Nayna and Jarkko

v4:

* Patch 5:
- Add a per-backend private data pointer in trusted_key_options to store a pointer to the backend-specific options structure
- Minor clean-up

v3:

* Patch 2:
- Add Mimi's Reviewed-by tag
* Patch 4:
- Minor tweaks to some print statements
- Fix typos
* Patch 5:
- Fix typos
- Add Mimi's Reviewed-by tag
* Patch 6:
- Add Mimi's Reviewed-by tag

v2:

* Patch 2:
- Fix build warning detected by the kernel test bot
* Patch 5:
- Use pr_debug inside dump_options
- Replace policyhande with wrap_flags inside dump_options
- Provide meaningful error messages with error codes

Nayna Jain (1):
docs: trusted-encryped: add PKWM as a new trust source

Srish Srinivasan (5):
pseries/plpks: fix kernel-doc comment inconsistencies powerpc/pseries: move the PLPKS config inside its own sysfs directory pseries/plpks: expose PowerVM wrapping features via the sysfs pseries/plpks: add HCALLs for PowerVM Key Wrapping Module keys/trusted_keys: establish PKWM as a trusted source

 .../ABI/testing/sysfs-firmware-plpks          |  58 ++
 Documentation/ABI/testing/sysfs-secvar        |  65 --
 .../admin-guide/kernel-parameters.txt         |   1 +
 Documentation/arch/powerpc/papr_hcalls.rst    |  43 ++
 .../security/keys/trusted-encrypted.rst       |  50 ++
 MAINTAINERS                                   |   9 +
 arch/powerpc/include/asm/hvcall.h             |   4 +-
 arch/powerpc/include/asm/plpks.h              |  95 +--
 arch/powerpc/include/asm/secvar.h             |   1 -
 arch/powerpc/kernel/secvar-sysfs.c            |  21 +-
 arch/powerpc/platforms/pseries/Makefile       |   2 +-
 arch/powerpc/platforms/pseries/plpks-secvar.c |  29 -
 arch/powerpc/platforms/pseries/plpks-sysfs.c  |  96 +++
 arch/powerpc/platforms/pseries/plpks.c        | 688 +++++++++++++++++-
 include/keys/trusted-type.h                   |   7 +-
 include/keys/trusted_pkwm.h                   |  33 +
 security/keys/trusted-keys/Kconfig            |   8 +
 security/keys/trusted-keys/Makefile           |   2 +
 security/keys/trusted-keys/trusted_core.c     |   6 +-
 security/keys/trusted-keys/trusted_pkwm.c     | 190 +++++
 20 files changed, 1207 insertions(+), 201 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-firmware-plpks
 create mode 100644 arch/powerpc/platforms/pseries/plpks-sysfs.c
 create mode 100644 include/keys/trusted_pkwm.h
 create mode 100644 security/keys/trusted-keys/trusted_pkwm.c
Signature · 1 line
2.47.3