Re: [2.6 patch] i386: always use 4k stacks

From: Benjamin LaHaise (bcrl_at_kvack.org)
Date: 11/14/05

  • Next message: Ram Pai: "Re: [PATCH 17/18] unbindable mounts"
    Date:	Mon, 14 Nov 2005 14:18:50 -0500
    To: Olivier Galibert <galibert@pobox.com>, linux-kernel@vger.kernel.org
    
    

    On Mon, Nov 14, 2005 at 08:00:07PM +0100, Olivier Galibert wrote:
    > Couldn't ndiswrapper have its own private stack to switch to when
    > calling the windows driver, or are there still things hanging off the
    > end of the stack area?

    It's possible, but would need a change to how the kernel finds the thread
    local data (which is currently done by masking off the stack pointer).
    There are certainly a few ways of doing this, like using tr to find out
    which cpu we're on and then indexing into the thread info state.

                    -ben

    -- 
    "Time is what keeps everything from happening all at once." -- John Wheeler
    -
    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/
    

  • Next message: Ram Pai: "Re: [PATCH 17/18] unbindable mounts"

    Relevant Pages

    • Re: [Bug 2773] New: kernel panic under medium load
      ... Now, that would look like a pointer that _should_ be zero, but with a ... possibly due to a stack overflow that just overwrote the thread-info (and ... > Controller ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rcX cdrom.c is subject to "chaotic" behaviour
      ... The culprit is newly ... while the offsetof on the other hand is ... >> which in turn results in random values from the stack being evaluated ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] cleanup patches for strings
      ... larger, slower, and uses more stack. ... If the array is declared const makes ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] i386: always use 4k stacks
      ... > today on an older Niksun box running off the end of the stack. ... Check the compaq drivers for SATA as well, ... Jeff ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: XFS over 7.7TB LVM partition through NFS
      ... And, that stack looks awfully long if it's real, turning on the stack ... > over NFS. ... After exporting the filesystem clients start writing files to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)