# git rev-parse -q --verify 78807804b0854ecb7dc6906e379fc688aca36456^{commit} 78807804b0854ecb7dc6906e379fc688aca36456 already have revision, skipping fetch # git checkout -q -f -B kisskb 78807804b0854ecb7dc6906e379fc688aca36456 # git clean -qxdf # < git log -1 # commit 78807804b0854ecb7dc6906e379fc688aca36456 # Author: Sandipan Das # Date: Thu Jul 16 16:33:47 2020 +0530 # # selftests/powerpc: Add test for pkey siginfo verification # # Commit c46241a370a61 ("powerpc/pkeys: Check vma before # returning key fault error to the user") fixes a bug which # causes the kernel to set the wrong pkey in siginfo when a # pkey fault occurs after two competing threads that have # allocated different pkeys, one fully permissive and the # other restrictive, attempt to protect a common page at the # same time. This adds a test to detect the bug. # # Signed-off-by: Sandipan Das # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/af137a935684955a60f13de2eb4ca358284f3d7c.1594897099.git.sandipan@linux.ibm.com # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 78807804b0854ecb7dc6906e379fc688aca36456 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:12, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:330.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcbf508) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xcaed04) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:38 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6200405 Bytes = 6055.08 KiB = 5.91 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:40 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6228906 Bytes = 6082.92 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:40 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6229863 Bytes = 6083.85 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:41 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6231066 Bytes = 6085.03 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:41 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6229747 Bytes = 6083.74 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:40 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6228927 Bytes = 6082.94 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:41 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6232728 Bytes = 6086.65 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:41 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6228915 Bytes = 6082.92 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:43 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6229779 Bytes = 6083.77 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:43 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6231728 Bytes = 6085.67 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:43 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6228651 Bytes = 6082.67 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:43 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6229349 Bytes = 6083.35 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:43 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6229813 Bytes = 6083.80 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:44 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6231668 Bytes = 6085.61 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:44 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6229351 Bytes = 6083.35 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.8.0-rc2-g78807804b085 Created: Mon Jul 27 02:36:44 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6228917 Bytes = 6082.93 KiB = 5.94 MiB Load Address: 00d00000 Entry Point: 00d00314 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-gcc5 # Build took: 0:02:23.247881