From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933867AbcI3O1O (ORCPT ); Fri, 30 Sep 2016 10:27:14 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:64944 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933295AbcI3O1B (ORCPT ); Fri, 30 Sep 2016 10:27:01 -0400 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) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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