# git rev-parse -q --verify dcb85f85fa6f142aae1fe86f399d4503d49f2b60^{commit} dcb85f85fa6f142aae1fe86f399d4503d49f2b60 already have revision, skipping fetch # git checkout -q -f -B kisskb dcb85f85fa6f142aae1fe86f399d4503d49f2b60 # git clean -qxdf # < git log -1 # commit dcb85f85fa6f142aae1fe86f399d4503d49f2b60 # Author: Kees Cook # Date: Thu Feb 3 12:17:54 2022 -0800 # # gcc-plugins/stackleak: Use noinstr in favor of notrace # # While the stackleak plugin was already using notrace, objtool is now a # bit more picky. Update the notrace uses to noinstr. Silences the # following objtool warnings when building with: # # CONFIG_DEBUG_ENTRY=y # CONFIG_STACK_VALIDATION=y # CONFIG_VMLINUX_VALIDATION=y # CONFIG_GCC_PLUGIN_STACKLEAK=y # # vmlinux.o: warning: objtool: do_syscall_64()+0x9: call to stackleak_track_stack() leaves .noinstr.text section # vmlinux.o: warning: objtool: do_int80_syscall_32()+0x9: call to stackleak_track_stack() leaves .noinstr.text section # vmlinux.o: warning: objtool: exc_general_protection()+0x22: call to stackleak_track_stack() leaves .noinstr.text section # vmlinux.o: warning: objtool: fixup_bad_iret()+0x20: call to stackleak_track_stack() leaves .noinstr.text section # vmlinux.o: warning: objtool: do_machine_check()+0x27: call to stackleak_track_stack() leaves .noinstr.text section # vmlinux.o: warning: objtool: .text+0x5346e: call to stackleak_erase() leaves .noinstr.text section # vmlinux.o: warning: objtool: .entry.text+0x143: call to stackleak_erase() leaves .noinstr.text section # vmlinux.o: warning: objtool: .entry.text+0x10eb: call to stackleak_erase() leaves .noinstr.text section # vmlinux.o: warning: objtool: .entry.text+0x17f9: call to stackleak_erase() leaves .noinstr.text section # # Note that the plugin's addition of calls to stackleak_track_stack() from # noinstr functions is expected to be safe, as it isn't runtime # instrumentation and is self-contained. # # Cc: Alexander Popov # Suggested-by: Peter Zijlstra # Signed-off-by: Kees Cook # Signed-off-by: Linus Torvalds # < /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 dcb85f85fa6f142aae1fe86f399d4503d49f2b60 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- skiroot_defconfig # < make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/kernel/stacktrace.c: In function 'handle_backtrace_ipi': /kisskb/src/arch/powerpc/kernel/stacktrace.c:171:2: error: implicit declaration of function 'nmi_cpu_backtrace' [-Werror=implicit-function-declaration] nmi_cpu_backtrace(regs); ^ /kisskb/src/arch/powerpc/kernel/stacktrace.c: In function 'arch_trigger_cpumask_backtrace': /kisskb/src/arch/powerpc/kernel/stacktrace.c:226:2: error: implicit declaration of function 'nmi_trigger_cpumask_backtrace' [-Werror=implicit-function-declaration] nmi_trigger_cpumask_backtrace(mask, exclude_self, raise_backtrace_ipi); ^ cc1: all warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:288: arch/powerpc/kernel/stacktrace.o] Error 1 make[2]: *** [/kisskb/src/scripts/Makefile.build:550: arch/powerpc/kernel] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1831: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 8 ARCH=powerpc O=/kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/linus_skiroot_defconfig_powerpc-gcc5 # Build took: 0:00:58.726318