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

From: jmerkey (jmerkey_at_utah-nac.org)
Date: 11/16/05

  • Next message: Nick Warne: "2.4.31 make - path name breakage (perhaps)"
    Date:	Wed, 16 Nov 2005 07:42:06 -0700
    To: Jörn Engel <joern@wohnheim.fh-wedel.de>
    
    

    Jörn Engel wrote:

    >On Wed, 16 November 2005 13:57:36 +0100, Andi Kleen wrote:
    >
    >
    >>I think it's in general risky. It's like balancing without a safety
    >>net. Might be a nice hobby, but for real production you want a safety
    >>net. That's simple because there are likely some code paths through
    >>the code that need more stack space and that are rarely hit (and
    >>cannot be easily found by static analysis, e.g. if they involve
    >>indirect pointers or particularly complex configuration setups).
    >>
    >>
    >
    >It isn't that hard to find such places. Trouble is that you find so
    >many of them and it takes quite a while to go through them all. Years
    >is a good unit for "quite a while".
    >
    >Jörn
    >
    >
    >
    Map a blank ro page beneath the address range when stack memory is
    mapped is trap on page faults to the page when folks go off the end of
    th e stack.

    Easy to find.

    Jeff
    -
    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: Nick Warne: "2.4.31 make - path name breakage (perhaps)"

    Relevant Pages

    • Re: [2.6 patch] i386: always use 4k stacks
      ... but for real production you want a safety ... That's simple because there are likely some code paths through ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux 2.6.7-rc2
      ... >> temporary structure on the stack and then copies the whole thing to ... with a test case that exercises these code paths. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] i386: always use 4k stacks
      ... > on the stack) and if x86 allows stackbloat, ... but for real production you want a safety ... the code that need more stack space and that are rarely hit (and ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [9fans] Van Jacobsens network stack restructure
      ... >> Plan 9 IP stack doesn't seem to have the lineage of the linux and bsd ... >> "They who can give up essential liberty for temporary ... >> safety, ... --Benjamin Franklin ...
      (comp.os.plan9)
    • Re: 4g/4g for 2.6.6
      ... > safety we assume 32G is the very safe limit). ... Just how many 3GB sized processes can you run on that ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)