From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752647AbcHJVbB (ORCPT ); Wed, 10 Aug 2016 17:31:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50808 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbcHJSBd (ORCPT ); Wed, 10 Aug 2016 14:01:33 -0400 Subject: Re: [PATCH v3] powerpc: Do not make the entire heap executable To: Michael Ellerman , linuxppc-dev@lists.ozlabs.org References: <20160809190822.28856-1-dvlasenk@redhat.com> <87lh05tf30.fsf@concordia.ellerman.id.au> Cc: Jason Gunthorpe , Benjamin Herrenschmidt , Paul Mackerras , Kees Cook , Oleg Nesterov , Florian Weimer , linux-mm@kvack.org, linux-kernel@vger.kernel.org From: Denys Vlasenko Message-ID: <579d983b-6a6b-1a36-3ba6-ed8c6a756c5f@redhat.com> Date: Wed, 10 Aug 2016 14:05:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <87lh05tf30.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 10 Aug 2016 12:05:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/10/2016 06:36 AM, Michael Ellerman wrote: > Denys Vlasenko writes: > >> On 32-bit powerps the ELF PLT sections of binaries (built with --bss-plt, >> or with a toolchain which defaults to it) look like this: > ... >> >> arch/powerpc/include/asm/page.h | 10 +--------- >> arch/powerpc/include/asm/page_32.h | 2 -- >> arch/powerpc/include/asm/page_64.h | 4 ---- >> fs/binfmt_elf.c | 34 ++++++++++++++++++++++++++-------- >> include/linux/mm.h | 1 + >> mm/mmap.c | 20 +++++++++++++++----- >> 6 files changed, 43 insertions(+), 28 deletions(-) > > What tree is this against? Linus' tree from before August 2. The "mm: refuse wrapped vm_brk requests" commit collided with my changes I'll send patch v4 rebased to today's linus tree as soon as I finish testing it.