Skip to content

Refactor and harden PLPKS code

Srish Srinivasan linuxppc-dev lkml stable 1 version Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/12pseries/plpks: fix error handling in plpks_read_var()arch/powerpc/platforms/pseries/plpks.c+8 -60 replies
2/12pseries/plpks: fix error code for wrapping key readsarch/powerpc/platforms/pseries/plpks.c+1 -10 replies
3/12pseries/plpks: validate input to plpks_signed_update_var()arch/powerpc/platforms/pseries/plpks.c+3 -00 replies
4/12pseries/plpks: clear sensitive PLPKS buffersarch/powerpc/platforms/pseries/plpks.c+4 -40 replies
5/12pseries/plpks: clear sensitive buffers in wrapping operationsarch/powerpc/platforms/pseries/plpks.c+4 -40 replies
6/12pseries/plpks: clear signed update authentication bufferarch/powerpc/platforms/pseries/plpks.c+1 -10 replies
7/12pseries/plpks: clear SED key data after usearch/powerpc/platforms/pseries/plpks_sed_ops.c+9 -30 replies
8/12pseries/plpks: fix self-reference in plpks_var initializerarch/powerpc/platforms/pseries/plpks.c+2 -20 replies
9/12pseries/plpks: hide wrapping_features when unsupportedarch/powerpc/platforms/pseries/plpks-sysfs.c+15 -50 replies
10/12pseries/plpks: make narrowing conversions explicitarch/powerpc/platforms/pseries/plpks.c+3 -30 replies
11/12pseries/plpks: rename the default wrapping key macroarch/powerpc/platforms/pseries/plpks.c+5 -50 replies
12/12pseries/plpks: update PKS documentation and MAINTAINERS entryDocumentation/arch/powerpc/papr_hcalls.rst MAINTAINERS+9 -90 replies

Reviews trailers per patch

4 of 12 patches have a Reviewed-by or Acked-by.

PatchR Nageswara SastryNayna JainGreg Joyce
1/12T-b
2/12T-b
3/12T-b
4/12T-b R-b
5/12T-b R-b
6/12T-b R-b
7/12T-b R-b
8/12T-b
9/12T-b
10/12T-b
11/12T-b
12/12T-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 v1 thread

Cover letter [PATCH 00/12] Refactor and harden PLPKS code

This series contains fixes, hardening changes, and general cleanup for the PLPKS code. It addresses error handling and input validation issues, improves the cleanup of sensitive data, and prevents the wrapping_features sysfs attribute from being exposed when the key-wrapping interface is not supported.

Srish Srinivasan (12):
pseries/plpks: fix error handling in plpks_read_var() pseries/plpks: fix error code for wrapping key reads pseries/plpks: validate input to plpks_signed_update_var() pseries/plpks: clear sensitive PLPKS buffers pseries/plpks: clear sensitive buffers in wrapping operations pseries/plpks: clear signed update authentication buffer pseries/plpks: clear SED key data after use pseries/plpks: fix self-reference in plpks_var initializer pseries/plpks: hide wrapping_features when unsupported pseries/plpks: make narrowing conversions explicit pseries/plpks: rename the default wrapping key macro pseries/plpks: update PKS documentation and MAINTAINERS entry

 Documentation/arch/powerpc/papr_hcalls.rst    | 16 +++---
 MAINTAINERS                                   |  2 +-
 arch/powerpc/platforms/pseries/plpks-sysfs.c  | 20 ++++++--
 arch/powerpc/platforms/pseries/plpks.c        | 51 ++++++++++---------
 .../powerpc/platforms/pseries/plpks_sed_ops.c | 12 +++--
 5 files changed, 61 insertions(+), 40 deletions(-)
Signature · 1 line
2.52.0