linux/arch/mips/boot/compressed
John Thomson 62776e4378 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 54d9469bc5 ("fortify: Add run-time WARN for
cross-field memcpy()")
Link: https://lore.kernel.org/r/202209161144.x9xSqNQZ-lkp@intel.com/

Resolve this in the same style as commit cfecea6ead ("lib/string:
Move helper functions out of string.c")

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 54d9469bc5 ("fortify: Add run-time WARN for cross-field memcpy()")
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2022-11-11 15:43:26 +01:00
..
ashldi3.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
bswapdi.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
bswapsi.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
calc_vmlinuz_load_addr.c MIPS: fix build on non-linux hosts 2019-06-19 15:55:53 -07:00
clz_ctz.c MIPS: compressed: Fix build with ZSTD compression 2022-01-09 15:43:07 +01:00
dbg.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
decompress.c mips: boot/compressed: use __NO_FORTIFY 2022-11-11 15:43:26 +01:00
dummy.c
head.S MIPS: zboot: Avoid endless loop in clear BSS. 2021-01-07 17:12:14 +01:00
ld.script MIPS: zboot: put appended dtb into a section 2020-11-06 11:28:16 +01:00
Makefile mips: Enable KCSAN 2022-02-22 09:45:05 +01:00
string.c MIPS: Add support for ZSTD-compressed kernels 2020-09-03 10:13:24 +02:00
uart-16550.c MIPS: Remove NETLOGIC support 2021-10-24 17:24:47 +02:00
uart-alchemy.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uart-ath79.c mips: decompressor: do not copy source files while building 2021-11-10 19:45:06 +01:00
uart-prom.c mips: unify prom_putchar() declarations 2018-07-17 09:40:17 -07:00