# git rev-parse -q --verify c716a25b9b70084e1144f77423f5aedd772ea478^{commit} c716a25b9b70084e1144f77423f5aedd772ea478 already have revision, skipping fetch # git checkout -q -f -B kisskb c716a25b9b70084e1144f77423f5aedd772ea478 # git clean -qxdf # < git log -1 # commit c716a25b9b70084e1144f77423f5aedd772ea478 # Author: Thiago Jung Bauermann # Date: Thu Sep 20 01:38:58 2018 -0300 # # powerpc/pkeys: Fix reading of ibm, processor-storage-keys property # # scan_pkey_feature() uses of_property_read_u32_array() to read the # ibm,processor-storage-keys property and calls be32_to_cpu() on the # value it gets. The problem is that of_property_read_u32_array() already # returns the value converted to the CPU byte order. # # The value of pkeys_total ends up more or less sane because there's a min() # call in pkey_initialize() which reduces pkeys_total to 32. So in practice # the kernel ignores the fact that the hypervisor reserved one key for # itself (the device tree advertises 31 keys in my test VM). # # This is wrong, but the effect in practice is that when a process tries to # allocate the 32nd key, it gets an -EINVAL error instead of -ENOSPC which # would indicate that there aren't any keys available # # Fixes: cf43d3b26452 ("powerpc: Enable pkey subsystem") # Cc: stable@vger.kernel.org # v4.16+ # Signed-off-by: Thiago Jung Bauermann # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < git log --format=%s --max-count=1 c716a25b9b70084e1144f77423f5aedd772ea478 # < make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- FIT description: Linux 4.19.0-rc3-gc716a25b9b70 Created: Fri Sep 21 01:21:50 2018 Image 0 (kernel@0) Description: Linux 4.19.0-rc3-gc716a25b9b70 Created: Fri Sep 21 01:21:50 2018 Type: Kernel Image Compression: gzip compressed Data Size: 4441857 Bytes = 4337.75 KiB = 4.24 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8083fff0 Hash algo: sha1 Hash value: d87cdbe52ab4382f27c8aa2906bd29acb841cd21 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Fri Sep 21 01:21:50 2018 Type: Flat Device Tree Compression: uncompressed Data Size: 3668 Bytes = 3.58 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 569c37cc891ce1e1f3a193cb41cc691a5d2debb5 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Fri Sep 21 01:21:50 2018 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Fri Sep 21 01:21:50 2018 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 509ce58e44c561d54539e64e9d4b47054e696fc6 Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Configuration 3 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/powerpc-fixes_mips-defconfig_mipsel # Build took: 0:00:52.321506