# git rev-parse -q --verify cc0bb290a0dabcdbc422fd4721e000ea115a5beb^{commit} cc0bb290a0dabcdbc422fd4721e000ea115a5beb already have revision, skipping fetch # git checkout -q -f -B kisskb cc0bb290a0dabcdbc422fd4721e000ea115a5beb # git clean -qxdf # < git log -1 # commit cc0bb290a0dabcdbc422fd4721e000ea115a5beb # Author: Christophe Leroy # Date: Sun Nov 25 11:48:22 2018 +0000 # # powerpc/book3s32: Implement Kernel Userspace Access Protection # # This patch implements Kernel Userspace Access Protection for # book3s/32. # # Due to limitations of the processor page protection capabilities, # the protection is only against writing. read protection cannot be # achieved using page protection. # # The previous patch modifies the page protection so that RW user # pages are RW for Key 0 and RO for Key 1, and it sets Key 0 for # both user and kernel. # # This patch changes userspace segment registers are set to Ku 0 # and Ks 1. When kernel needs to write to RW pages, the associated # segment register is then changed to Ks 0 in order to allow write # access to the kernel. # # In order to avoid having the read all segment registers when # locking/unlocking the access, some data is kept in the thread_struct # and saved on stack on exceptions. The field identifies both the # first unlocked segment and the first segment following the last # unlocked one. When no segment is unlocked, it contains value 0. # # Signed-off-by: Christophe Leroy # < /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 cc0bb290a0dabcdbc422fd4721e000ea115a5beb # < make -s -j 8 ARCH=powerpc O=/kisskb/build/chleroy_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 8 ARCH=powerpc O=/kisskb/build/chleroy_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:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, 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:77: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:334.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:334.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 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb88df8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723606 Bytes = 5589.46 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723117 Bytes = 5588.98 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5693396 Bytes = 5559.96 KiB = 5.43 MiB Load Address: 00000000 Entry Point: 00000000 INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:21 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723604 Bytes = 5589.46 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:22 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723661 Bytes = 5589.51 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c00314 INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:22 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5725062 Bytes = 5590.88 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:22 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5724928 Bytes = 5590.75 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:22 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5724393 Bytes = 5590.23 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 INFO: Uncompressed kernel (size 0xb9962c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:24 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5724999 Bytes = 5590.82 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:24 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723053 Bytes = 5588.92 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:25 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723453 Bytes = 5589.31 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:25 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723455 Bytes = 5589.31 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:25 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723793 Bytes = 5589.64 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:25 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723653 Bytes = 5589.50 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c002a4 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:25 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723506 Bytes = 5589.36 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c00314 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:47:25 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5723751 Bytes = 5589.60 KiB = 5.46 MiB Load Address: 00c00000 Entry Point: 00c00314 Completed OK # rm -rf /kisskb/build/chleroy_mpc85xx_defconfig_powerpc-gcc5 # Build took: 0:02:33.237748