On Thu, Oct 29, 2026 at 04:43:59PM -0700, Alison Schofield wrote: > Changes in v2: > - Patch 3: Reset errno before each readdir() (GregoryP) > - Link to v1: > https://lore.kernel.org/nvdimm/[email protected]/ > > Review and testing of Gregory's dax kmem atomic whole-device hotplug > series[1] exposed an existing libdaxctl bug when handling DAX devices with > multiple physical address ranges. > > libdaxctl identifies a device's memory blocks using a single contiguous > address window, even when the device has separate ranges with gaps between > them. This can exclude blocks belonging to the device and include blocks > belonging to another device in the gaps. As a result, daxctl can report > incorrect memory block counts and potentially online or offline another > device's memory. > > Patches 1-2 address mapping reliability issues discovered while fixing > the memory block ownership checks. > > Patch 3 corrects the memory block ownership checks. > > Patch 4 adds regression coverage using a two-range DAX device.
For the series - Applied to https://github.com/pmem/ndctl/commits/pending/ > > [1] > https://lore.kernel.org/linux-cxl/[email protected]/ > > > Alison Schofield (4): > libdaxctl: handle mapping initialization failures > libdaxctl: tie mapping cache lifetime to the device > libdaxctl: match memory blocks against each dax device mapping > test/daxctl-create.sh: count memory blocks across dax mappings > > daxctl/lib/libdaxctl.c | 98 ++++++++++++++++++++++++++++++++++-------- > test/daxctl-create.sh | 58 +++++++++++++++++++++++++ > 2 files changed, 137 insertions(+), 19 deletions(-) > > -- > 2.37.3 >
