# 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_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc44x_defconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/chleroy_ppc44x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/virtex440-ml510.dts:335.37-439.6: Warning (pci_bridge): /plb@0/plbv46-pci@85e00000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/virtex440-ml510.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/katmai.dts:322.26-361.5: Warning (pci_bridge): /plb/pciex@d00000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:363.26-402.5: Warning (pci_bridge): /plb/pciex@d20000000: node name is not "pci" or "pcie" /kisskb/src/arch/powerpc/boot/dts/katmai.dts:404.26-443.5: Warning (pci_bridge): /plb/pciex@d40000000: node name is not "pci" or "pcie" arch/powerpc/boot/dts/katmai.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x53f2bc) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2712558 Bytes = 2648.98 KiB = 2.59 MiB Load Address: 00000000 Entry Point: 00000000 INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2745296 Bytes = 2680.95 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 006000c4 INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2744930 Bytes = 2680.60 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 006001b8 INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x54f9d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2744820 Bytes = 2680.49 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:12 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2745257 Bytes = 2680.92 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2745046 Bytes = 2680.71 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601534 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2745292 Bytes = 2680.95 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 0060152c Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2745279 Bytes = 2680.94 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601514 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2745129 Bytes = 2680.79 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601544 Image Name: Linux-5.0.0-gcc0bb290a0da Created: Wed Mar 6 11:46:13 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2745020 Bytes = 2680.68 KiB = 2.62 MiB Load Address: 00600000 Entry Point: 00601524 Completed OK # rm -rf /kisskb/build/chleroy_ppc44x_defconfig_powerpc-gcc5 # Build took: 0:01:10.407620