BUG : PowerPC RCU: torture test failed with __stack_chk_fail

Michael Ellerman mpe at ellerman.id.au
Thu Apr 27 00:45:44 AEST 2023


Peter Zijlstra <peterz at infradead.org> writes:
> On Wed, Apr 26, 2023 at 09:44:22AM -0400, Joel Fernandes wrote:
>
>> How could you control which code paths don't have the stack protector?
>> Just curious.
>
> https://lkml.kernel.org/r/20230412-no_stackp-v2-0-116f9fe4bbe7@google.com

We also have some entire files disabled, eg:

$ git grep no-stack-protector arch/powerpc/
arch/powerpc/kernel/Makefile:CFLAGS_prom_init.o += -fno-stack-protector
arch/powerpc/kernel/Makefile:CFLAGS_syscall.o += -fno-stack-protector
arch/powerpc/kernel/Makefile:CFLAGS_setup_64.o                += -fno-stack-protector
arch/powerpc/kernel/Makefile:CFLAGS_paca.o                        += -fno-stack-protector

cheers


More information about the Linuxppc-dev mailing list