Messages in this thread | | | From | Andy Lutomirski <> | Date | Fri, 24 Oct 2014 21:42:35 -0700 | Subject | Re: vmalloced stacks on x86_64? |
| |
On Oct 24, 2014 7:38 PM, "H. Peter Anvin" <hpa@zytor.com> wrote: > > On 10/24/2014 05:22 PM, Andy Lutomirski wrote: > > Is there any good reason not to use vmalloc for x86_64 stacks? > > Additional TLB pressure if anything else.
I wonder how much this matters. It certainly helps on context switches if the new stack is in the same TLB entry. But, for entries that use less than one page of stack, I can imagine this making almost no difference.
> > Now, on the flipside: what is the *benefit*?
Immediate exception on overflow, and no high order allocation issues. The former is a nice mitigation against exploits based on overflowing the stack.
--Andy
> > -hpa >
| |