[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201910110908.040009F27@keescook>
Date: Fri, 11 Oct 2019 09:09:22 -0700
From: Kees Cook <keescook@...omium.org>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: Borislav Petkov <bp@...en8.de>,
Rick Edgecombe <rick.p.edgecombe@...el.com>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Andy Lutomirski <luto@...nel.org>,
Arnd Bergmann <arnd@...db.de>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Will Deacon <will@...nel.org>, linux-arch@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linuxppc-dev@...ts.ozlabs.org, linux-alpha@...r.kernel.org,
linux-ia64@...r.kernel.org, linux-s390@...r.kernel.org,
linux-c6x-dev@...ux-c6x.org,
Yoshinori Sato <ysato@...rs.sourceforge.jp>,
Michal Simek <monstr@...str.eu>, linux-parisc@...r.kernel.org,
linux-xtensa@...ux-xtensa.org, x86@...nel.org,
linux-kernel@...r.kernel.org, Joel Stanley <joel@....id.au>,
Segher Boessenkool <segher@...nel.crashing.org>
Subject: Re: [PATCH v2 02/29] powerpc: Remove PT_NOTE workaround
On Fri, Oct 11, 2019 at 05:07:04PM +1100, Michael Ellerman wrote:
> Kees Cook <keescook@...omium.org> writes:
> > In preparation for moving NOTES into RO_DATA, remove the PT_NOTE
> > workaround since the kernel requires at least gcc 4.6 now.
> >
> > Signed-off-by: Kees Cook <keescook@...omium.org>
> > ---
> > arch/powerpc/kernel/vmlinux.lds.S | 24 ++----------------------
> > 1 file changed, 2 insertions(+), 22 deletions(-)
>
> Acked-by: Michael Ellerman <mpe@...erman.id.au>
Thanks!
> For the archives, Joel tried a similar patch a while back which caused
> some problems, see:
>
> https://lore.kernel.org/linuxppc-dev/20190321003253.22100-1-joel@jms.id.au/
>
> and a v2:
>
> https://lore.kernel.org/linuxppc-dev/20190329064453.12761-1-joel@jms.id.au/
>
> This is similar to his v2. The only outstanding comment on his v2 was
> from Segher:
> (And I do not know if there are any tools that expect the notes in a phdr,
> or even specifically the second phdr).
>
> But this patch solves that by not changing the note.
Ah yes. Agreed: I'm retaining the note and dropping the workarounds.
FWIW, this builds happily for me in my tests.
-Kees
--
Kees Cook
Powered by blists - more mailing lists