lkml.org 
[lkml]   [2014]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: 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
    >


    \
     
     \ /
      Last update: 2014-10-25 23:21    [W:4.145 / U:1.148 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site