Skip to content

Commit 054f367

Browse files
daxtenstorvalds
authored andcommitted
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. Link: http://lkml.kernel.org/r/[email protected] 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]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 4c93496 commit 054f367

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/kernel/prom_init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
#undef DEBUG_PROM
1717

18+
/* we cannot use FORTIFY as it brings in new symbols */
19+
#define __NO_FORTIFY
20+
1821
#include <stdarg.h>
1922
#include <linux/kernel.h>
2023
#include <linux/string.h>

0 commit comments

Comments
 (0)