Re: [PATCH] add checkstack Makefile target

From: Muli Ben-Yehuda (mulix@mulix.org)
Date: Tue Mar 04 2003 - 02:03:04 EST


On Mon, Mar 03, 2003 at 10:16:47PM +0100, J?rn Engel wrote:
> On Thu, 20 February 2003 08:54:55 -0800, Linus Torvalds wrote:
> >
> > A sorted list of bad stack users (more than 256 bytes) in my default build
> > follows. Anybody can create their own with something like
> >
> > objdump -d linux/vmlinux |
> > grep 'sub.*$0x...,.*esp' |
> > awk '{ print $9,$1 }' |
> > sort > bigstack
> >
> > and a script to look up the addresses.
>
> Since Linus didn't give us the script, I had to try it myself. The
> result is likely ugly and inefficient, but it works for i386 and ppc
> (actually crosscompiling for ppc).

Keith Owens has such a script, and even posted it here a time or
three. You can find it (and various other near scripts) at
http://www.kernelnewbies.org/scripts/. As for making a Makefile
target, nice idea, but probably 2.5 material.

-- 
Muli Ben-Yehuda
http://www.mulix.org


- 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/



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:24 EST