Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752639AbdLGKhf (ORCPT ); Thu, 7 Dec 2017 05:37:35 -0500 Received: from mx2.suse.de ([195.135.220.15]:47622 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752357AbdLGKhd (ORCPT ); Thu, 7 Dec 2017 05:37:33 -0500 From: Michal Suchanek To: Martin Schwidefsky , Heiko Carstens , Michal Suchanek , Marcelo Henrique Cerri , Greg Kroah-Hartman , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] s390/decompressor: add fortify_panic as x86 has. Date: Thu, 7 Dec 2017 11:37:27 +0100 Message-Id: <20171207103727.9461-1-msuchanek@suse.de> X-Mailer: git-send-email 2.13.6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 875 Lines: 27 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 --- 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