# 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-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.1.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-rand_powerpc-randconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:6246:warning: override: reassigning to symbol PPC64 .config:6248:warning: override: reassigning to symbol SECTION_MISMATCH_WARN_ONLY .config:6249:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD .config:6251:warning: override: reassigning to symbol GCC_PLUGINS .config:6253:warning: override: reassigning to symbol TRIM_UNUSED_KSYMS .config:6254:warning: override: reassigning to symbol UBSAN # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc11 # Build took: 0:04:18.491165