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

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2017-01-11 19:31:29
Also in
linux-arch, linux-mm, lkml
Reply to
Andy Lutomirski, 2017-01-11
On Wed, Jan 11, 2017 at 11:20 AM, Andy Lutomirski [off-list ref] wrote:
Taking a step back, I think it would be fantastic if we could find a
way to make this work without any inheritable settings at all.
Perhaps we could have a per-mm value that is initialized to 2^47-1 on
execve() and can be raised by ELF note or by prctl()?
I definitely think this is the right model. No inheritable settings,
no suid issues, no worries. Make people who want the large address
space (and there aren't going to be a lot of them) just mark their
binaries at compile time.

And as to the stack location: I think it should just be the same
regardless - up in "high" virtual memory in the 47-bit model. Because
as you say, if you actually end up having 57 bits of address space,
that still gives you basically the whole VM for data mappings -
they'll just be up above the stack.

                Linus

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Thread (38 messages) 38 messages, 9 authors, last reply 2017-01-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help