All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] s390/decompressor: add fortify_panic as x86 has.
@ 2017-12-07 10:37 Michal Suchanek
  2017-12-07 12:55 ` Martin Schwidefsky
  0 siblings, 1 reply; 6+ messages in thread
From: Michal Suchanek @ 2017-12-07 10:37 UTC (permalink / raw)
  To: Martin Schwidefsky, Heiko Carstens, Michal Suchanek,
	Marcelo Henrique Cerri, Greg Kroah-Hartman, linux-s390,
	linux-kernel

Fix following error:

  LD      arch/s390/boot/compressed/vmlinux
drivers/s390/char/sclp_early_core.o: In function `memcpy':
../include/linux/string.h:340: undefined reference to `fortify_panic'
make[4]: *** [../arch/s390/boot/compressed/Makefile:29: arch/s390/boot/compressed/vmlinux] Error 1

Fixes: 79962038dffa ("s390: add support for FORTIFY_SOURCE")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 arch/s390/boot/compressed/misc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/s390/boot/compressed/misc.c b/arch/s390/boot/compressed/misc.c
index cecf38b9ec82..e79c4499c548 100644
--- a/arch/s390/boot/compressed/misc.c
+++ b/arch/s390/boot/compressed/misc.c
@@ -174,3 +174,7 @@ unsigned long decompress_kernel(void)
 	return (unsigned long) output;
 }
 
+void fortify_panic(const char *name)
+{
+	error("detected buffer overflow");
+}
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-20 14:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-07 10:37 [PATCH] s390/decompressor: add fortify_panic as x86 has Michal Suchanek
2017-12-07 12:55 ` Martin Schwidefsky
2017-12-11 13:09   ` Michal Suchánek
2017-12-13  8:33     ` Heiko Carstens
2017-12-13  8:33       ` Heiko Carstens
2017-12-20 14:09       ` Michal Suchánek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.