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, Aug 7, 2017 at 11:40 AM, Kees Cook <keescook@xxxxxxxxxx> wrote:
> On Mon, Aug 7, 2017 at 11:36 AM, Evgenii Stepanov <eugenis@xxxxxxxxxx> wrote:
>> MSan is 64-bit only and does not allow any mappings _outside_ of these regions:
>> 000000000000 - 010000000000 app-1
>> 510000000000 - 600000000000 app-2
>> 700000000000 - 800000000000 app-3
>>
>> https://github.com/google/sanitizers/issues/579
>>
>> It sounds like the ELF_ET_DYN_BASE change should not break MSan.
>
> Hah, so the proposed move to 0x1000 8000 0000 for ASan would break
> MSan. Lovely! :P

That's unfortunate.
This will not help existing binaries, but going forward the mapping
can be adjusted at runtime to anything like
000000000000 .. A
500000000000 + A .. 600000000000
700000000000 .. 800000000000
i.e. we can look at where the binary is mapped and set A to anything
in the range of [0, 1000 0000 0000). That's still not compatible with
0x1000 8000 0000 though.

--
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