Re: 4k stacks in 2.6

Matt Mackall
2004-05-26T19:02:56Z

On Wed, May 26, 2004 at 11:12:22AM -0700, David S. Miller wrote:
> On Wed, 26 May 2004 14:50:14 +0200
> J?rn Engel <joern@wohnheim.fh-wedel.de> wrote:
>
> > Change gcc to catch stack overflows before the fact and disallow
> > module load unless modules have those checks as well.
>
> That's easy, just enable profiling then implement a suitable
> _mcount that checks for stack overflow. I bet someone has done
> this already.

There was a patch floating around for this in the 2.2 era that I
ported to 2.4 on one occassion. It won't tell you worst case though,
just worst observed case.

Sparse is probably not a bad place to put a real call chain stack analysis.

--
Mathematics is the supreme nostalgia of our time.