libndctl: sizeof_namespace_index: nmem10: label area (1024) too small to host (256 byte) labels
This issue is fixed by: commit 9c6aae5 Author: Dan Williams <[email protected]> Date: Tue Jan 15 01:51:45 2019 ndctl/init-labels: Fix label slot accounting per UEFI 2.7 Quoting from Linux kernel commit 9e694d9c18dd "libnvdimm, label: change nvdimm_num_label_slots per UEFI 2.7": sizeof_namespace_index() fails when NVDIMM devices have the minimum 1024 bytes label storage area. nvdimm_num_label_slots() returns 3 slots while the area is only big enough for 2 slots. Change nvdimm_num_label_slots() to calculate a number of label slots according to UEFI 2.7 spec. Without this fix attempts to initialize labels on a small (1K) label area results in the following: libndctl: sizeof_namespace_index: nmem2: label area (1024) too small to host (128 byte) labels libndctl: sizeof_namespace_index: nmem2: label area (1024) too small to host (256 byte) labels Based on an original patch by Toshi Kani Fixes: bdaec95463ca ("ndctl: introduce ndctl_dimm_{validate_labels,init_labels}") Reported-by: Sujith Pandel <[email protected]> Link: https://github.com/pmem/ndctl/issues/78 Signed-off-by: Dan Williams <[email protected]> Signed-off-by: Vishal Verma <[email protected]> Upstream. ** Changed in: linux (Ubuntu) Status: Confirmed => Invalid ** Changed in: ndctl (Ubuntu) Importance: Undecided => Medium ** Changed in: ndctl (Ubuntu) Assignee: (unassigned) => Rafael David Tinoco (rafaeldtinoco) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1811785 Title: NVDIMM-N doesn't work properly on Dell EMC PowerEdge R840 To manage notifications about this bug go to: https://bugs.launchpad.net/ndctl/+bug/1811785/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
