Skip to content

Commit 62776e4

Browse files
john-thotsbogend
authored andcommitted
mips: boot/compressed: use __NO_FORTIFY
In the mips CONFIG_SYS_SUPPORTS_ZBOOT kernel, fix the compile error when using CONFIG_FORTIFY_SOURCE=y LD vmlinuz mipsel-openwrt-linux-musl-ld: arch/mips/boot/compressed/decompress.o: in function `decompress_kernel': ./include/linux/decompress/mm.h:(.text.decompress_kernel+0x177c): undefined reference to `warn_slowpath_fmt' kernel test robot helped identify this as related to fortify. The error appeared with commit 54d9469 ("fortify: Add run-time WARN for cross-field memcpy()") Link: https://lore.kernel.org/r/[email protected]/ Resolve this in the same style as commit cfecea6 ("lib/string: Move helper functions out of string.c") Reported-by: kernel test robot <[email protected]> Fixes: 54d9469 ("fortify: Add run-time WARN for cross-field memcpy()") Reviewed-by: Kees Cook <[email protected]> Signed-off-by: John Thomson <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent f0c4d9f commit 62776e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/boot/compressed/decompress.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#define DISABLE_BRANCH_PROFILING
1111

12+
#define __NO_FORTIFY
1213
#include <linux/types.h>
1314
#include <linux/kernel.h>
1415
#include <linux/string.h>

0 commit comments

Comments
 (0)