From: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
linuxppc-dev@lists.ozlabs.org,
Andrew Morton <akpm@linux-foundation.org>,
Denys Vlasenko <dvlasenk@redhat.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
"Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>,
Kees Cook <keescook@chromium.org>,
Oleg Nesterov <oleg@redhat.com>,
Florian Weimer <fweimer@redhat.com>,
linux-mm@kvack.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5] powerpc: Do not make the entire heap executable
Date: Tue, 27 Sep 2016 20:55:44 -0600 [thread overview]
Message-ID: <20160928025544.GA24199@obsidianresearch.com> (raw)
In-Reply-To: <87d1jo7qbw.fsf@concordia.ellerman.id.au>
On Wed, Sep 28, 2016 at 11:42:11AM +1000, Michael Ellerman wrote:
> But this is not really a powerpc patch, and I'm not an ELF expert. So
> I'm not comfortable merging it via the powerpc tree. It doesn't look
> like we really have a maintainer for binfmt_elf.c, so I'm not sure who
> should be acking that part.
Thanks a bunch for looking at this Michael.
> I've added Al Viro to Cc, he maintains fs/ and might be interested.
> I've also added Andrew Morton who might be happy to put this in his
> tree, and see if anyone complains?
For those added to the CC, I would re-state my original commit message
more clearly.
My research showed that the ELF loader bug fixed in this patch is the
root cause bug fix required to implement this hunk:
> > -#define VM_DATA_DEFAULT_FLAGS32 (VM_READ | VM_WRITE | VM_EXEC | \
> > +#define VM_DATA_DEFAULT_FLAGS32 \
> > + (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
> > + VM_READ | VM_WRITE | \
> > VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
Eg that 32 bit powerpc currently unconditionally injects writable,
executable pages into a user space process.
This critically undermines all the W^X security work that has been
done in the tool chain and user space by the PPC community.
I would encourage people to view this as an important security patch
for 32 bit powerpc environments.
Regards,
Jason
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2016-09-28 2:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-22 18:51 [PATCH v5] powerpc: Do not make the entire heap executable Denys Vlasenko
2016-09-28 1:42 ` Michael Ellerman
2016-09-28 2:55 ` Jason Gunthorpe [this message]
2016-09-28 13:12 ` Florian Weimer
2016-09-28 17:16 ` Kees Cook
2016-09-29 16:07 ` Oleg Nesterov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160928025544.GA24199@obsidianresearch.com \
--to=jgunthorpe@obsidianresearch.com \
--cc=akpm@linux-foundation.org \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=benh@kernel.crashing.org \
--cc=dvlasenk@redhat.com \
--cc=fweimer@redhat.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=oleg@redhat.com \
--cc=paulus@samba.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).