Skip to content

crypto/ccp: Properly NULL variables on sev exit

John Allen linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto/ccp: Cleanup misc_dev on sev_exit()drivers/crypto/ccp/sev-dev.c+3 -31 reply
2/2crypto/ccp: Cleanup sp_dev_master in psp_dev_destroy()drivers/crypto/ccp/psp-dev.c drivers/crypto/ccp/sp-dev.h drivers/crypto/ccp/sp-pci.c+13 -01 reply

Reviews trailers per patch

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

PatchTom Lendacky
1/2A-b
2/2A-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/2] crypto/ccp: Properly NULL variables on sev exit

Stale pointers left in static variables misc_dev and sp_dev_master will trigger use-after-free error when DEBUG_TEST_DRIVER_REMOVE is configured.

John Allen (2):
crypto/ccp: Cleanup misc_dev on sev exit crypto/ccp: Cleanup sp_dev_master on psp device destroy

 drivers/crypto/ccp/psp-dev.c | 3 +++
 drivers/crypto/ccp/sev-dev.c | 6 +++---
 drivers/crypto/ccp/sp-dev.h  | 1 +
 drivers/crypto/ccp/sp-pci.c  | 9 +++++++++
 4 files changed, 16 insertions(+), 3 deletions(-)
Signature · 1 line
2.18.2