From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f72.google.com (mail-wm0-f72.google.com [74.125.82.72]) by kanga.kvack.org (Postfix) with ESMTP id D01F66B0038 for ; Tue, 4 Oct 2016 12:54:14 -0400 (EDT) Received: by mail-wm0-f72.google.com with SMTP id b80so14562241wme.1 for ; Tue, 04 Oct 2016 09:54:14 -0700 (PDT) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com. [2a00:1450:400c:c09::22b]) by mx.google.com with ESMTPS id cj2si5569175wjc.184.2016.10.04.09.54.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Oct 2016 09:54:13 -0700 (PDT) Received: by mail-wm0-x22b.google.com with SMTP id f193so26671262wmg.0 for ; Tue, 04 Oct 2016 09:54:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <877f9p55lu.fsf@concordia.ellerman.id.au> References: <20161003161322.3835-1-dvlasenk@redhat.com> <877f9p55lu.fsf@concordia.ellerman.id.au> From: Kees Cook Date: Tue, 4 Oct 2016 09:54:12 -0700 Message-ID: Subject: Re: [PATCH v6] powerpc: Do not make the entire heap executable Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Michael Ellerman , Andrew Morton Cc: Denys Vlasenko , "linuxppc-dev@lists.ozlabs.org" , Jason Gunthorpe , Benjamin Herrenschmidt , Paul Mackerras , "Aneesh Kumar K.V" , Oleg Nesterov , Florian Weimer , Linux-MM , LKML On Mon, Oct 3, 2016 at 5:18 PM, Michael Ellerman wrote: > Kees Cook writes: > >> On Mon, Oct 3, 2016 at 9:13 AM, Denys Vlasenko wrote: >>> On 32-bit powerpc the ELF PLT sections of binaries (built with --bss-plt, >>> or with a toolchain which defaults to it) look like this: > ... >>> >>> Signed-off-by: Jason Gunthorpe >>> Signed-off-by: Denys Vlasenko >>> Acked-by: Kees Cook >>> Acked-by: Michael Ellerman >>> CC: Benjamin Herrenschmidt >>> CC: Paul Mackerras >>> CC: "Aneesh Kumar K.V" >>> CC: Kees Cook >>> CC: Oleg Nesterov >>> CC: Michael Ellerman >>> CC: Florian Weimer >>> CC: linux-mm@kvack.org >>> CC: linuxppc-dev@lists.ozlabs.org >>> CC: linux-kernel@vger.kernel.org >>> --- >>> Changes since v5: >>> * made do_brk_flags() error out if any bits other than VM_EXEC are set. >>> (Kees Cook: "With this, I'd be happy to Ack.") >>> See https://patchwork.ozlabs.org/patch/661595/ >> >> Excellent, thanks for the v6! Should this go via the ppc tree or the -mm tree? > > -mm would be best, given the diffstat I think it's less likely to > conflict if it goes via -mm. Okay, excellent. Andrew, do you have this already in email? I think you weren't on the explicit CC from the v6... -Kees -- Kees Cook Nexus Security -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org