lkml.org 
[lkml]   [2006]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Segfault on the i386 enter instruction
    Tomasz Malesinski wrote:
    > On Fri, May 12, 2006 at 03:50:20PM +0200, Andi Kleen wrote:
    >> Handling it like you expect would require to disassemble
    >> the function in the page fault handler and it's probably not
    >> worth doing that for this weird case.
    >
    > Does it mean that the ENTER instruction should not be used to create
    > stack frames in Linux programs?
    >

    Basically, yes. Here is a link to a relevant discussion in the 2.2.7 era:

    http://groups.google.co.nz/groups?selm=7i86ni%24b7n%241%40palladium.transmeta.com

    And perhaps x86-64 is handled different because of the red zone (some
    memory below the stack-pointer that can be accessed legally)?

    Groeten,
    Bart

    --
    Bart Hartgers - TUE Eindhoven - http://plasimo.phys.tue.nl/bart/contact/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-05-15 13:39    [W:0.021 / U:0.744 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site