On Oct 24, 2014 7:38 PM, "H. Peter Anvin" <h...@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 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/