Re: [PATCH v2 02/29] powerpc: Remove PT_NOTE workaround
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
- Subject: Re: [PATCH v2 02/29] powerpc: Remove PT_NOTE workaround
- From: Kees Cook <keescook@xxxxxxxxxxxx>
- Date: Fri, 11 Oct 2019 09:09:22 -0700
- Cc: Borislav Petkov <bp@xxxxxxxxx>, Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>, Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>, Andy Lutomirski <luto@xxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Heiko Carstens <heiko.carstens@xxxxxxxxxx>, Will Deacon <will@xxxxxxxxxx>, linux-arch@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, linux-alpha@xxxxxxxxxxxxxxx, linux-ia64@xxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx, linux-c6x-dev@xxxxxxxxxxxxx, Yoshinori Sato <ysato@xxxxxxxxxxxxxxxxxxxx>, Michal Simek <monstr@xxxxxxxxx>, linux-parisc@xxxxxxxxxxxxxxx, linux-xtensa@xxxxxxxxxxxxxxxx, x86@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Joel Stanley <joel@xxxxxxxxx>, Segher Boessenkool <segher@xxxxxxxxxxxxxxxxxxx>
- In-reply-to: <878sprx1br.fsf@mpe.ellerman.id.au>
- References: <20191011000609.29728-1-keescook@chromium.org> <20191011000609.29728-3-keescook@chromium.org> <878sprx1br.fsf@mpe.ellerman.id.au>
On Fri, Oct 11, 2019 at 05:07:04PM +1100, Michael Ellerman wrote:
> Kees Cook <keescook@xxxxxxxxxxxx> 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@xxxxxxxxxxxx>
> > ---
> > arch/powerpc/kernel/vmlinux.lds.S | 24 ++----------------------
> > 1 file changed, 2 insertions(+), 22 deletions(-)
>
> Acked-by: Michael Ellerman <mpe@xxxxxxxxxxxxxx>
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@xxxxxxxxx/
>
> and a v2:
>
> https://lore.kernel.org/linuxppc-dev/20190329064453.12761-1-joel@xxxxxxxxx/
>
> 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
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]