[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200703050218.25028.arnd@arndb.de>
Date: Mon, 5 Mar 2007 02:18:24 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Chuck Ebbert <cebbert@...hat.com>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
Andi Kleen <andi@...stfloor.org>,
Andreas Krebbel <krebbel1@...ibm.com>
Subject: Re: Wanted: simple, safe x86 stack overflow detection
On Wednesday 28 February 2007, Chuck Ebbert wrote:
> Can we just put a canary in the threadinfo and check it on every
> task switch? What are the drawbacks?
It's not completely reliable, in case of functions that allocate
far too much stack space. You might want to take a look at the
gcc support that Andreas Krebbel implemented for s390 to check
for stack overflows:
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01308.html
I think there are some additions planned for the next gcc release,
but if you port this to i386, it will get you pretty far.
Arnd <><
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists