Re: Kernel stack

From: Jan Hudec (bulb_at_ucw.cz)
Date: 10/12/04

  • Next message: Stephan: "Re: Problem compiling linux-2.6.8.1......"
    Date:	Tue, 12 Oct 2004 16:31:54 +0200
    To: jonathan@jonmasters.org
    
    
    

    On Tue, Oct 12, 2004 at 15:30:34 +0100, Jon Masters wrote:
    > On Tue, 12 Oct 2004 11:41:04 +0200, Jan Hudec <bulb@ucw.cz> wrote:
    >
    > > The base of the stack does not have to be stored either, because it is
    > > AT FIXED OFFSET from the task_struct! If you don't believe me, look at
    > > definition of the current macro. It says just (%esp & ~8195) (it says it
    > > in assembly, because you can't directly access registers from C, and it
    > > uses some macros that mean "two pages" instead of 8195).
    >
    > The pedant in me wants to point out that 8K is 0-8191 and not 0-8195 :-)

    OOPS, a braino ;-).

    -------------------------------------------------------------------------------
                                                     Jan 'Bulb' Hudec <bulb@ucw.cz>

    
    

    -
    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: Stephan: "Re: Problem compiling linux-2.6.8.1......"

    Relevant Pages

    • Re: [2.6 patch] i386: always use 4k stacks
      ... and getting the customer running matters. ... larger than 4K kernel space on a stack) from user space crash -- so do wireless drivers -- and kdb crashes as well with some bugs with 4K stacks ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [patch 2.6.12-rc3] dell_rbu: Resubmitting patch for new Dell BIOS update driver
      ... You should never create a struct device on the stack. ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: kernel error in system call accept() under kernel 2.6.8
      ... > copied on the stack. ... > reference). ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: Kernel stack
      ... > AT FIXED OFFSET from the task_struct! ... > in assembly, because you can't directly access registers from C, and it ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: [PATCH 1/1] tpm: update tpm sysfs file ownership
      ... You do realize you just created those attributes on the stack? ... you try to remove them from within a different scope above? ... send the line "unsubscribe linux-kernel" in ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)