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

From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 11/14/05

  • Next message: Tom Rini: "Re: Linuv 2.6.15-rc1"
    To: Alistair John Strachan <s0348365@sms.ed.ac.uk>
    Date:	Mon, 14 Nov 2005 20:27:04 +0000
    
    

    On Llu, 2005-11-14 at 18:02 +0000, Alistair John Strachan wrote:
    > > If we spent our entire lives waiting for people to fix code nothing
    > > would ever happen. Removing 8K stacks is a good thing to do for many
    > > reasons. The ndis wrapper people have known it is coming for a long
    > > time, and if it has a lot of users I'm sure someone in that community
    > > will take the time to make patches.
    >
    > I honestly don't know if this is the case, but is it conceivable that no patch
    > could be written to resolve this, because the Windows drivers themselves only
    > respect Windows stack limits (which are presumably still 8K?).

    Both systems are (subject to memory limits) turing complete, so it is
    definitely possible 8) The kernel itself switches stacks on an IRQ with
    the 4K stack so you only have to worry about switching your kernel stack
    not about taking interrupts on it and confusion that may cause.

    -
    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: Tom Rini: "Re: Linuv 2.6.15-rc1"

    Relevant Pages

    • Re: [PATCH] Add FUTEX_CMP_REQUEUE futex op
      ... stack it is impossible for lcrash or crash to decode the system entry ... kernel stack I don't see a problem. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Question regarding thread_struct
      ... EACH PROCESS'S KERNEL STACK IS A PAGE OR TWO. ... a process's kernel stack cannot be resized. ... The user-space stack is handled by user-space. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] x86: fix ESP corruption CPU bug (take 2)
      ... >> which isn't what I have in mind. ... >kernel stack for the 16bit stack. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Question regarding thread_struct
      ... When you say kernel stack, ... Every task has its own stack which can be as large as ... you use kmallocor other kernel allocators ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [RFC] Handling kernel stack overflows
      ... Every process has a dedicated kernel stack. ... The block device targeted by the I/O subsystem can be a raw device, ... Chain all the extra stacks onto a global free list and set a counting ...
      (Linux-Kernel)