# 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/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 612ee81b9461475b5a5612c2e8d71559dd3c7920 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/sound/ppc/pmac.h:12, from /kisskb/src/sound/ppc/awacs.c:16: /kisskb/src/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:208:9: warning: 'speaker_vol' may be used uninitialized in this function [-Wmaybe-uninitialized] return _snd_ctl_add_slave(master, slave, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/sound/ppc/awacs.c:873:36: note: 'speaker_vol' was declared here struct snd_kcontrol *master_vol, *speaker_vol; ^~~~~~~~~~~ INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4f8c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ffd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4f8c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5434189 Bytes = 5306.83 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c00934 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433216 Bytes = 5305.88 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:08 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433769 Bytes = 5306.42 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:09 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5434117 Bytes = 5306.75 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:09 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5398512 Bytes = 5271.98 KiB = 5.15 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433415 Bytes = 5306.07 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433521 Bytes = 5306.17 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5434234 Bytes = 5306.87 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c00934 Image Name: Linux-5.4.0-rc2+ Created: Fri Oct 11 00:27:10 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5433446 Bytes = 5306.10 KiB = 5.18 MiB Load Address: 00c00000 Entry Point: 00c002a4 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc8 # Build took: 0:04:24.031832