From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754932AbcFPRZ6 (ORCPT ); Thu, 16 Jun 2016 13:25:58 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:38050 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754091AbcFPRZ4 (ORCPT ); Thu, 16 Jun 2016 13:25:56 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Kees Cook Date: Thu, 16 Jun 2016 10:25:54 -0700 X-Google-Sender-Auth: N7454jqAWzbDwUWxfOgykq15rxI Message-ID: Subject: Re: [PATCH 06/13] fork: Add generic vmalloced stack support To: Andy Lutomirski Cc: "linux-kernel@vger.kernel.org" , "x86@kernel.org" , Borislav Petkov , Nadav Amit , Brian Gerst , "kernel-hardening@lists.openwall.com" , Linus Torvalds , Josh Poimboeuf Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 15, 2016 at 5:28 PM, Andy Lutomirski wrote: > If CONFIG_VMAP_STACK is selected, kernel stacks are allocated with > vmalloc_node. > > Signed-off-by: Andy Lutomirski > --- > arch/Kconfig | 12 ++++++++++++ > kernel/fork.c | 45 +++++++++++++++++++++++++++++++++++++-------- > 2 files changed, 49 insertions(+), 8 deletions(-) > > diff --git a/arch/Kconfig b/arch/Kconfig > index d794384a0404..1acd262036b0 100644 > --- a/arch/Kconfig > +++ b/arch/Kconfig > @@ -658,4 +658,16 @@ config ARCH_NO_COHERENT_DMA_MMAP > config CPU_NO_EFFICIENT_FFS > def_bool n > > +config HAVE_ARCH_VMAP_STACK > + def_bool n In the style of HAVE_ARCH_SECCOMP_FILTER, can you detail all the things an architecture needs to do to correctly support a vmap stack? This will help with arch porting. -Kees -- Kees Cook Chrome OS & Brillo Security