[lkml]   [2003]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [x86] Access off the bottom of stack causes a segfault?
    Followup to:  <Pine.LNX.4.53.0310141510590.2211@chaos>
    By author: "Richard B. Johnson" <>
    In newsgroup:
    > > main:
    > > mov DWORD PTR [%ESP - 16004], %EBP # Save EBP to stack
    > BAM **INTERRUPT** writes return address below stack-pointer.

    Since we're in user mode, interrupts don't matter, but signals have
    the same effect.

    Note that this is a matter of the ABI definition. For example, in the
    x86-64 ABI there is a designated region of well-defined size below
    %rsp called the redzone, which signals aren't allowed to clobber.

    <> at work, <> in private!
    If you send me mail in HTML format I will assume it's spam.
    "Unix gives you enough rope to shoot yourself in the foot."
    Architectures needed: ia64 m68k mips64 ppc ppc64 s390 s390x sh v850 x86-64
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:49    [W:0.021 / U:1.308 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site