# git rev-parse -q --verify f4a0318f278d98d9492916722e85f258c2221f88^{commit} f4a0318f278d98d9492916722e85f258c2221f88 already have revision, skipping fetch # git checkout -q -f -B kisskb f4a0318f278d98d9492916722e85f258c2221f88 # git clean -qxdf # < git log -1 # commit f4a0318f278d98d9492916722e85f258c2221f88 # Author: Xiu Jianfeng # Date: Fri Jul 1 16:24:35 2022 +0800 # # powerpc: add support for syscall stack randomization # # Add support for adding a random offset to the stack while handling # syscalls. This patch uses mftb() instead of get_random_int() for better # performance. # # In order to avoid unconditional stack canaries on syscall entry (due to # the use of alloca()), also disable stack protector to avoid triggering # needless checks and slowing down the entry path. As there is no general # way to control stack protector coverage with a function attribute, this # must be disabled at the compilation unit level. # # Signed-off-by: Xiu Jianfeng # Reviewed-by: Kees Cook # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20220701082435.126596-3-xiujianfeng@huawei.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 f4a0318f278d98d9492916722e85f258c2221f88 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64_defconfig # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc64_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-next_ppc64_defconfig_powerpc-gcc5 # Build took: 0:02:32.349190