diff options
author | Dave Jiang <dave.jiang@intel.com> | 2018-12-04 10:31:11 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-12-04 10:31:11 -0800 |
commit | b3ed2ce024c36054e51cca2eb31a1cdbe4a5f11e (patch) | |
tree | 6407ab38fea25437e92ddfbd5cf4104bdcf5b306 /drivers/acpi/nfit/Kconfig | |
parent | 2595646791c319cadfdbf271563aac97d0843dc7 (diff) | |
download | lwn-b3ed2ce024c36054e51cca2eb31a1cdbe4a5f11e.tar.gz lwn-b3ed2ce024c36054e51cca2eb31a1cdbe4a5f11e.zip |
acpi/nfit: Add support for Intel DSM 1.8 commands
Add command definition for security commands defined in Intel DSM
specification v1.8 [1]. This includes "get security state", "set
passphrase", "unlock unit", "freeze lock", "secure erase", "overwrite",
"overwrite query", "master passphrase enable/disable", and "master
erase", . Since this adds several Intel definitions, move the relevant
bits to their own header.
These commands mutate physical data, but that manipulation is not cache
coherent. The requirement to flush and invalidate caches makes these
commands unsuitable to be called from userspace, so extra logic is added
to detect and block these commands from being submitted via the ioctl
command submission path.
Lastly, the commands may contain sensitive key material that should not
be dumped in a standard debug session. Update the nvdimm-command
payload-dump facility to move security command payloads behind a
default-off compile time switch.
[1]: http://pmem.io/documents/NVDIMM_DSM_Interface-V1.8.pdf
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/nfit/Kconfig')
-rw-r--r-- | drivers/acpi/nfit/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/acpi/nfit/Kconfig b/drivers/acpi/nfit/Kconfig index f7c57e33499e..52eefd732cf2 100644 --- a/drivers/acpi/nfit/Kconfig +++ b/drivers/acpi/nfit/Kconfig @@ -13,3 +13,14 @@ config ACPI_NFIT To compile this driver as a module, choose M here: the module will be called nfit. + +config NFIT_SECURITY_DEBUG + bool "Enable debug for NVDIMM security commands" + depends on ACPI_NFIT + help + Some NVDIMM devices and controllers support encryption and + other security features. The payloads for the commands that + enable those features may contain sensitive clear-text + security material. Disable debug of those command payloads + by default. If you are a kernel developer actively working + on NVDIMM security enabling say Y, otherwise say N. |