|
Message-ID: <CAFTCetQr+TAAfBi1+gOzSP_uk2sFo4g+W9=bWOxYpLYzZe7Z7A@mail.gmail.com> Date: Wed, 7 Jun 2017 16:04:43 +0530 From: Bhupesh SHARMA <bhupesh.linux@...il.com> To: Michael Ellerman <mpe@...erman.id.au> Cc: Daniel Micay <danielmicay@...il.com>, Bhupesh Sharma <bhsharma@...hat.com>, "open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)" <linuxppc-dev@...ts.ozlabs.org>, linux-kernel@...r.kernel.org, kernel-hardening@...ts.openwall.com, Anton Blanchard <anton@...ba.org>, Daniel Cashman <dcashman@...roid.com>, Kees Cook <keescook@...omium.org>, Benjamin Herrenschmidt <benh@...nel.crashing.org> Subject: Re: [PATCH] powerpc: Increase ELF_ET_DYN_BASE to 1TB for 64-bit applications On Wed, Jun 7, 2017 at 2:59 PM, Michael Ellerman <mpe@...erman.id.au> wrote: > Daniel Micay <danielmicay@...il.com> writes: > >> Rather than doing this, the base should just be split for an ELF >> interpreter like PaX. > > I don't quite parse that, I think you mean PaX uses a different base for > an ELF interpreter vs a regular ET_DYN? I am also not very conversant with PaX. AFAIU, we can use the following methods to print the shared object dependencies instead of ldd: 1. One can load the binary directly with LD_TRACE_LOADED_OBJECTS=1. So, instead of: # /lib64/ld-2.24.so ./large-bss-test-app Segmentation fault (core dumped) One can do: # LD_TRACE_LOADED_OBJECTS=1 ./large-bss-test-app linux-vdso64.so.1 (0x00007fffa67a0000) libc.so.6 => /lib64/libc.so.6 (0x00007fffa6590000) /lib64/ld64.so.2 (0x00007fffa67c0000) 2. There are other utils like pax-utils etc that we can use. But, we generally cannot force a user to not use ldd to determine the shared object dependencies, especially when all the documentation points to it and it works well on the other archs like x86 and arm64. > That would be cool. How do you know that it's an ELF interpreter you're > loading? Is it just something that's PIE but doesn't request an > interpreter? > > Is the PaX code somewhere I can look at? > >> It makes sense for a standalone executable to be as low in the address >> space as possible. > > More or less. There are performance reasons why 1T could be good for us, > but I want to see some performance numbers to justify that change. And > it does mean you have a bit less address space to play with. Do you have any specific performance test(s) in mind which I can run to see how the 1TB impacts them? I am trying to run ltp after this change and will be able to share the results shortly, but I am not sure it provides the right data to validate such a change. Regards, Bhupesh
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.