Messages in this thread | | | Date | Wed, 26 May 2004 12:14:29 +0200 | From | Jörn Engel <> | Subject | Re: [4KSTACK][2.6.6] Stack overflow in radeonfb |
| |
On Tue, 18 May 2004 12:47:34 -0500, Matt Mackall wrote: > > Unfortunately, apparently at least objdump for parisc prints hex with > no leading 0x, and IA64 does something much uglier (as it is wont to > do), so I'll have to do something a bit more clever here.
Don't waste too much time with it, this is an ugly hack by design already, for two reasons:
1. It really ought to be part of gcc. Gcc needs a -Wstack-per-function option that will give a warning whenever the stack for any function exceeds some user-defined value. alloca() will exceed any value. 2. We don't care much about the usage per function, but for a complete code path. An expanded checker to do this already exists, I'm merely not allowed to give it to anyone. Lawyers.
Apart from that, go ahead and have fun!
Jörn
-- Data expands to fill the space available for storage. -- Parkinson's Law - 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/
| |