[lkml]   [1999]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: stack overruns [was: Re: "Please HELP"-crash]
    > 1) at system startup one huge block (16 kB per task slot, (8 kB stack +
    > 8 kB guard pages)) is vm_alloc'ed. The area must be 8 kB aligned.

    You can't vmalloc the stack without changing drivers that assume the stack
    is DMAable. Thats a 2.3.x thing but yes. vmalloc I seem to remember already
    does guard pages

    > 2) if a task is created, then 2 single pages get allocated,
    > and inserted into the vm_alloc'ed area.
    > 3) the task_struct is moved to the end of the stack.
    > (Windows 95 does it this way around)

    The task struct is where it is in order to make dereferencing current


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:51    [W:0.019 / U:1.564 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site