[GIT PULL] libnvdimm fixes for 4.16-rc7

From: Williams, Dan J
Date: Thu Mar 22 2018 - 20:34:21 EST


Hi Linus, please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm libnvdimm-fixes

...to receive 2 regression fixes, 2 bug fixes for older issues, 2
fixes for new functionality added this cycle that have userspace ABI
concerns, and a small cleanup. These have appeared in a linux-next
release and have a build success report from the 0day robot.

+ACo- The 4.16 rework of altmap handling led to some configurations leaking
page table allocations due to freeing from the altmap reservation
rather than the page allocator. The impact without the fix is leaked
memory and a WARN() message when tearing down libnvdimm namespaces. The
rework also missed a place where error handling code needed to be
removed that can lead to a crash if devm+AF8-memremap+AF8-pages() fails.

+ACo- acpi+AF8-map+AF8-pxm+AF8-to+AF8-node() had a latent bug whereby it could misidentify
the closest online node to a given proximity domain.

+ACo- Block integrity handling was reworked several kernels back to allow
calling add+AF8-disk() after setting up the integrity profile. The nd+AF8-btt
and nd+AF8-blk drivers are just now catching up to fix automatic partition
detection at driver load time.

+ACo- The new peristence+AF8-domain attribute, a platform indicator of whether
cpu caches are powerfail protected for example, is meant to be a single
value enum and not a set of flags. This oversight was caught while
reviewing new userspace code in libndctl to communicate the attribute.
Fix this new enabling up so that we are not stuck with an unwanted
userspace ABI.

The following changes since commit 661e50bc853209e41a5c14a290ca4decc43cbfd1:

Linux 4.16-rc4 (2018-03-04 14:54:11 -0800)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm libnvdimm-fixes

for you to fetch changes up to fe9a552e715dfe5167d52deb74ea16335896bdaf:

libnvdimm, nfit: fix persistence domain reporting (2018-03-21 15:12:07 -0700)

----------------------------------------------------------------
Colin Ian King (1):
libnvdimm: remove redundant assignment to pointer 'dev'

Dan Williams (4):
x86, memremap: fix altmap accounting at free
acpi, numa: fix pxm to online numa node associations
libnvdimm, region: hide persistence+AF8-domain when unknown
libnvdimm, nfit: fix persistence domain reporting

Oliver O'Halloran (1):
kernel/memremap: Remove stale devres+AF8-free() call

Vishal Verma (1):
libnvdimm, +AHs-btt, blk+AH0-: do integrity setup before add+AF8-disk()

arch/x86/mm/init+AF8-64.c +AHw- 60 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+------------------------
drivers/acpi/nfit/core.c +AHw- 10 +-+-+-+-+----
drivers/acpi/numa.c +AHw- 10 +-+-+-+-+----
drivers/nvdimm/blk.c +AHw- 3 +---
drivers/nvdimm/btt.c +AHw- 3 +---
drivers/nvdimm/pfn+AF8-devs.c +AHw- 2 +--
drivers/nvdimm/region+AF8-devs.c +AHw- 17 +-+-+-+-+-+-+-+-+-+----
kernel/memremap.c +AHw- 1 -
8 files changed, 57 insertions(+-), 49 deletions(-)