mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Export PSP security attributes
@ 2022-03-29 16:41 Mario Limonciello
  2022-03-29 16:41 ` [PATCH v2 1/4] crypto: ccp: cache capability into psp device Mario Limonciello
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Mario Limonciello @ 2022-03-29 16:41 UTC (permalink / raw)
  To: Tom Lendacky, John Allen, Herbert Xu, David S . Miller
  Cc: open list, open list:AMD CRYPTOGRAPHIC COPROCESSOR (CCP) DRIVER,
	Kerneis Gabriel, Richard Hughes, Mario Limonciello

Select AMD SOCs include the ability to export capabilities that
have been activated or detected by the platform security processor.

This information is useful for both system designers as well as system
administrators to ensure that the system has been properly locked down
to their expectations.

Software such as fwupd will also be modified to use this information
as part of the calculations for a security level score that may be
presented to a user.

This series also adds the ability to detect that TSME and SME are both
activated simultaneously to notify a user.  Previously a user could turn
on TSME and SME at the same time, but the kernel was unable to detect
that TSME was enabled in the OS.

This information is evaluated "too late" right now in the kernel to stop
the kernel from enabling SME, but if that is desirable at a later time
some of the early code can be modified to read the same information and
make that decision.

v1->v2:
 * Add cover letter to explain background
 * See individual patches for changes from v1.

Mario Limonciello (4):
  crypto: ccp: cache capability into psp device
  crypto: ccp: Export PSP security bits to userspace
  crypto: ccp: Allow PSP driver to load without SEV/TEE support
  crypto: ccp: When TSME and SME both detected notify user

 Documentation/ABI/testing/sysfs-driver-ccp | 87 ++++++++++++++++++++++
 drivers/crypto/ccp/psp-dev.c               | 46 ++++++------
 drivers/crypto/ccp/psp-dev.h               | 22 ++++++
 drivers/crypto/ccp/sp-dev.c                |  6 ++
 drivers/crypto/ccp/sp-pci.c                | 62 +++++++++++++++
 5 files changed, 202 insertions(+), 21 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-ccp

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-03-31 20:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-29 16:41 [PATCH v2 0/4] Export PSP security attributes Mario Limonciello
2022-03-29 16:41 ` [PATCH v2 1/4] crypto: ccp: cache capability into psp device Mario Limonciello
2022-03-31 20:02   ` Tom Lendacky
2022-03-29 16:41 ` [PATCH v2 2/4] crypto: ccp: Export PSP security bits to userspace Mario Limonciello
2022-03-31 20:03   ` Tom Lendacky
2022-03-29 16:41 ` [PATCH v2 3/4] crypto: ccp: Allow PSP driver to load without SEV/TEE support Mario Limonciello
2022-03-31 20:10   ` Tom Lendacky
2022-03-29 16:41 ` [PATCH v2 4/4] crypto: ccp: When TSME and SME both detected notify user Mario Limonciello
2022-03-31 20:12   ` Tom Lendacky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®