From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3slv070xNPzDvLJ for ; Sat, 1 Oct 2016 00:27:01 +1000 (AEST) Message-Id: From: Christophe Leroy Subject: [PATCH 0/2] powerpc: stack protector (-fstack-protector) support To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Scott Wood Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Nicolas Pitre Date: Fri, 30 Sep 2016 16:26:56 +0200 (CEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Add HAVE_CC_STACKPROTECTOR to powerpc. This is copied from ARM. Not tested on PPC64, compile ok with ppc64_defconfig Christophe Leroy (2): powerpc: initial stack protector (-fstack-protector) support powerpc/32: stack protector: change the canary value per task arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/stackprotector.h | 38 +++++++++++++++++++++++++++++++ arch/powerpc/kernel/Makefile | 5 ++++ arch/powerpc/kernel/asm-offsets.c | 3 +++ arch/powerpc/kernel/entry_32.S | 6 ++++- arch/powerpc/kernel/process.c | 6 +++++ 6 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 arch/powerpc/include/asm/stackprotector.h -- 2.1.0