Re: 4k stacks in 2.6

From: Matt Mackall
Date: Wed May 26 2004 - 14:04:13 EST


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@xxxxxxxxxxxxxxxxxxxx> 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.
-
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/