Skip to content

Fix minor LLM findings in zcrypt dd

Harald Freudenberger linux-s390 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v22 patches 1 replySuperseded
  3. v12 patches 0 repliesSuperseded

Changelog from the cover letter

v1: Two patches:
- The first patch fixes a gap related to speculative execution with the domain index.
- The second patch fixes a length/pointer check with parsing the FQ reply from a CCA card.
v2: Fix a complain from Sashiko about silently dropping invalid
domains down to domain value 0. So now a explicit check makes sure domain is either AUTOSEL_DOM or in range 0...255. 2nd patch unchanged.
v3: Well this spectre thing points out to be really wired. So here is
again a rework claiming it shall protect against speculative execution with respect to the domain value.
2nd patch unchanged.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2s390/zcrypt: Guard domain index uses against speculative bypassdrivers/s390/crypto/zcrypt_api.c+25 -101 reply
2/2s390/zcrypt: Fix out-of-bounds ptr advance in cca_query_crypto_facility()drivers/s390/crypto/zcrypt_ccamisc.c+20 -21 reply

Reviews trailers per patch

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

PatchHolger Dengler
1/2R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] Fix minor LLM findings in zcrypt dd

Fix some minor LLM findings related to the zcrypt device driver.

Changelog:
v1: Two patches:
- The first patch fixes a gap related to speculative execution with the domain index.
- The second patch fixes a length/pointer check with parsing the FQ reply from a CCA card.
v2: Fix a complain from Sashiko about silently dropping invalid
domains down to domain value 0. So now a explicit check makes sure domain is either AUTOSEL_DOM or in range 0...255. 2nd patch unchanged.
v3: Well this spectre thing points out to be really wired. So here is
again a rework claiming it shall protect against speculative execution with respect to the domain value.
2nd patch unchanged.

Harald Freudenberger (2):
s390/zcrypt: Guard domain index uses against speculative bypass s390/zcrypt: Fix out-of-bounds ptr advance in
cca_query_crypto_facility()

 drivers/s390/crypto/zcrypt_api.c     | 35 ++++++++++++++++++++--------
 drivers/s390/crypto/zcrypt_ccamisc.c | 22 +++++++++++++++--
 2 files changed, 45 insertions(+), 12 deletions(-)

--
2.43.0