Hi Linus, please pull from
...to receive, three fixes, a test unit fix, and a ratelimit change on output.
The following changes since commit 7daf201d7fe8334e2d2364d4e8ed3394ec9af819:
Linux 4.18-rc2 (2018-06-24 20:54:29 +0800)
are available in the Git repository at:
for you to fetch changes up to ee6581ceba7f8314b81b2f2a81f1cf3f67c679e2:
nfit: fix unchecked dereference in acpi_nfit_ctl (2018-07-11 10:25:24 -0700)
* fix one ensures that a variable passed in by reference to
acpi_nfit_ctl is always set to a value. An incremental patch is provided
due to notice from testing in -next. The rest of the commits did not
* fix two fixes a return path in nsio_rw_bytes() that was not
returning "bytes remain" as expected for the function.
* fix three addresses an issue where applications polling on
scrub-completion for the NVDIMM may falsely wakeup and read the wrong
state value and cause hang.
* the test unit changed the persistent capability to reflect the correct
attribute it's testing.
* An output ratelimit to dev_info is introduced to the dax device
check_vma() function since this is easily triggered from userspace.
Dan Williams (2):
libnvdimm, pmem: Fix memcpy_mcsafe() return code handling in nsio_rw_bytes()
acpi, nfit: Fix scrub idle detection
Dave Jiang (2):
acpi/nfit: fix cmd_rc for acpi_nfit_ctl to always return a value
nfit: fix unchecked dereference in acpi_nfit_ctl
Jeff Moyer (1):
dev-dax: check_vma: ratelimit dev_info-s
Vishal Verma (1):
tools/testing/nvdimm: advertise a write cache for nfit_test
drivers/acpi/nfit/core.c | 48 +++++++++++++++++++++++++++++++---------
drivers/acpi/nfit/nfit.h | 1 +
drivers/dax/device.c | 12 ++++++----
drivers/nvdimm/claim.c | 1 +
tools/testing/nvdimm/test/nfit.c | 3 +--
5 files changed, 48 insertions(+), 17 deletions(-)
The ndctl inject-smart doesn't have a [-H | --health] option.
This patch replaces [-H | --health] in the manpage of inject-smart
with [-f | --fatal].
Signed-off-by: QI Fuli <qi.fuli(a)jp.fujitsu.com>
Documentation/ndctl/ndctl-inject-smart.txt | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/Documentation/ndctl/ndctl-inject-smart.txt b/Documentation/ndctl/ndctl-inject-smart.txt
index 0dc6481..06710ec 100644
@@ -50,6 +50,7 @@ OPTIONS
Set <value> for the smart media temperature threshold.
Enable or disable the smart media temperature alarm. Options are
'on' or 'off'.
@@ -62,6 +63,7 @@ OPTIONS
Set <value> for the smart controller temperature threshold.
Enable or disable the smart controller temperature alarm. Options are
'on' or 'off'.
@@ -74,16 +76,16 @@ OPTIONS
Set <value> for the smart spares threshold.
Enable or disable the smart spares alarm. Options are 'on' or 'off'.
- Smart attribute for health status. Provide either 'fatal' or 'nominal'
- to set the state of the attribute.
+ Inject fatal for the health state attribute.
Set the flag to spoof an unsafe shutdown on the next power down.
We considered your resume to be very attractive and we thought the vacant position in our company could be interesting for you.
Our firm specializes in online services in the matter of business administration.
We cooperate with different countries and currently we have many clients in yours region.
Due to this fact, we need to increase the number of our destination representatives' regular staff.
Part-time and full-time employment are both currently important.
We offer a flat wage from $1500 up to $7000 per month.
If you are interested in our offer, please visit our web page.
Attention! Accept applications only on this and next week.
The following series implements security support for nvdimm. Mostly adding
new security DSM support from the Intel NVDIMM DSM spec v1.7, but also
adding generic support libnvdimm for other vendors. The most important
security features are unlocking locked nvdimms, and updating/setting security
passphrase to nvdimms.
Security folks, thanks in advance for taking a look at my key management
implementation and making sure that I'm doing something sane. Mainly you'll
want to review patches 2, 4, and 5 as most relevant ones that need scrutiny.
- Set x86 wrappers for x86 only bits. (Dan)
- Fixed up some verbiage in commit headers.
- Put in usage of sysfs_streq() for sysfs inputs.
- 0-day build fixes for non-x86 archs.
- Move inclusion of intel.h to relevant source files and not in nfit.h. (Dan)
- Moved security ring relevant code to dimm_devs.c. (Dan)
- Added dimm_id to nfit_mem to avoid recreate per sysfs show call. (Dan)
- Added routine to return security_ops based on family supplied. (Dan)
- Added nvdimm_key_data struct to wrap raw passphrase string. (Dan)
- Allocate firmware package on stack. (Dan)
- Added missing frozen state detection when retrieving security state.
Dave Jiang (11):
nfit: add support for Intel DSM 1.7 commands
libnvdimm: create keyring to store security keys
nfit/libnvdimm: store dimm id as a member to struct nvdimm
nfit/libnvdimm: add unlock of nvdimm support for Intel DIMMs
nfit/libnvdimm: add set passphrase support for Intel nvdimms
nfit/libnvdimm: add disable passphrase support to Intel nvdimm.
nfit/libnvdimm: add freeze security support to Intel nvdimm
nfit/libnvdimm: add support for issue secure erase DSM to Intel nvdimm
nfit_test: add context to dimm_dev for nfit_test
nfit_test: add test support for Intel nvdimm security DSMs
libnvdimm: add documentation for nvdimm security support
Documentation/nvdimm/security | 70 ++++++
drivers/acpi/nfit/Makefile | 1
drivers/acpi/nfit/core.c | 64 +++++-
drivers/acpi/nfit/intel.c | 366 +++++++++++++++++++++++++++++++++
drivers/acpi/nfit/intel.h | 83 +++++++
drivers/acpi/nfit/nfit.h | 18 ++
drivers/nvdimm/bus.c | 2
drivers/nvdimm/core.c | 7 +
drivers/nvdimm/dimm.c | 7 +
drivers/nvdimm/dimm_devs.c | 426 ++++++++++++++++++++++++++++++++++++++
drivers/nvdimm/nd-core.h | 4
drivers/nvdimm/nd.h | 2
include/linux/libnvdimm.h | 41 +++-
tools/testing/nvdimm/Kbuild | 1
tools/testing/nvdimm/test/nfit.c | 227 +++++++++++++++++++-
15 files changed, 1285 insertions(+), 34 deletions(-)
create mode 100644 Documentation/nvdimm/security
create mode 100644 drivers/acpi/nfit/intel.c
create mode 100644 drivers/acpi/nfit/intel.h