# git rev-parse -q --verify 612ee81b9461475b5a5612c2e8d71559dd3c7920^{commit} 612ee81b9461475b5a5612c2e8d71559dd3c7920 already have revision, skipping fetch # git checkout -q -f -B kisskb 612ee81b9461475b5a5612c2e8d71559dd3c7920 # git clean -qxdf # < git log -1 # commit 612ee81b9461475b5a5612c2e8d71559dd3c7920 # Author: Vaibhav Jain # Date: Fri Sep 27 11:50:02 2019 +0530 # # powerpc/papr_scm: Fix an off-by-one check in papr_scm_meta_{get, set} # # A validation check to prevent out of bounds read/write inside # functions papr_scm_meta_{get,set}() is off-by-one that prevent reads # and writes to the last byte of the label area. # # This bug manifests as a failure to probe a dimm when libnvdimm is # unable to read the entire config-area as advertised by # ND_CMD_GET_CONFIG_SIZE. This usually happens when there are large # number of namespaces created in the region backed by the dimm and the # label-index spans max possible config-area. An error of the form below # usually reported in the kernel logs: # # [ 255.293912] nvdimm: probe of nmem0 failed with error -22 # # The patch fixes these validation checks there by letting libnvdimm # access the entire config-area. # # Fixes: 53e80bd042773('powerpc/nvdimm: Add support for multibyte read/write for metadata') # Signed-off-by: Vaibhav Jain # Reviewed-by: Aneesh Kumar K.V # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20190927062002.3169-1-vaibhav@linux.ibm.com # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 612ee81b9461475b5a5612c2e8d71559dd3c7920 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_tqm8xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- tqm8xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_tqm8xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:338:21: note: 'pdeo' was declared here Completed OK # rm -rf /kisskb/build/powerpc-next_tqm8xx_defconfig_powerpc-gcc4.6 # Build took: 0:00:40.846447