Peter Zijlstra <peterz@xxxxxxxxxxxxx> 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@xxxxxxxxxx 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