powerpc: don't fortify prom_init
PATCH 61/96 powerpc: don't fortify prom_init
From: Daniel Axtens <[email protected]>
Subject: powerpc: don't fortify prom_init
prom_init is a bit special; in theory it should be able to be linked separately to the kernel. To keep this from getting too complex, the symbols that prom_init.c uses are checked.
Fortification adds symbols, and it gets quite messy as it includes things like panic(). So just don't fortify prom_init.c for now.
Signed-off-by Daniel Axtens <[email protected]>
Signed-off-by Kees Cook <[email protected]>
Acked-by Michael Ellerman <[email protected]>
Cc Daniel Micay <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/powerpc/kernel/prom_init.c | 3 +++ 1 file changed, 3 insertions(+)
arch/powerpc/kernel/prom_init.c renamed from arch/powerpc/kernel/prom_init.c~powerpc-dont-fortify-prom_init +3 -0
@@ -15,6 +15,9 @@#undef DEBUG_PROM +/* we cannot use FORTIFY as it brings in new symbols */ +#define __NO_FORTIFY +#include <stdarg.h> #include <linux/kernel.h> #include <linux/string.h>
_