Re: [RFC, PATCHv2 29/29] mm, x86: introduce RLIMIT_VADDR

From: Linus Torvalds
Date: Wed Jan 11 2017 - 14:39:08 EST


On Wed, Jan 11, 2017 at 11:32 AM, Kirill A. Shutemov
<kirill@xxxxxxxxxxxxx> wrote:
>
> Running legacy binary with full address space is valuable option.

I disagree.

It's simply not valuable enough to worry about. Especially when there
is a fairly trivial wrapper approach: just make a full-address-space
wrapper than acts as a binary loader (think "specialized ld.so").

Sure, the wrapper may be "fairly trivial" but not necessarily
pleasant: you have to parse ELF sections etc and basically load the
binary by hand. But there are libraries for that, and loading an ELF
executable isn't rocket surgery, it's just possibly tedious.

Linus