Re: binfmt_elf: use ELF_ET_DYN_BASE only for PIE breaks asan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2017-08-07 at 12:40 -0700, Kostya Serebryany wrote:
> 
> 
> On Mon, Aug 7, 2017 at 12:34 PM, Kees Cook <keescook@xxxxxxxxxx>
> wrote:
> > (To be clear, this subthread is for dealing with _future_ changes;
> > I'm
> > already preparing the revert, which is in the other subthread.)
> > 
> > On Mon, Aug 7, 2017 at 12:26 PM, Kostya Serebryany <kcc@xxxxxxxxxx>
> > wrote:
> > > Oh, a launcher (e.g. just using setarch) would be a huge pain to
> > deploy.
> > 
> > Would loading the executable into the mmap region work? 
> 
> This is beyond my knowledge. :( 
> Could you explain? 
> 
> If we can do this w/o a launcher (and w/o re-executing), we should
> try. 

If you launch a program with /usr/lib/ld-2.25.so /usr/bin/foo right now,
that probably already works because it disables the separate base.

There's probably a way to get ASan linked executables to disable the
separate PIE base automatically, making the exe get mapped with other
mmap allocations / libraries. I think that's the best approach.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux