[PATCH] Implement Computer Aided Ignorance

From: Jörn Engel
Date: Mon Mar 07 2005 - 16:29:58 EST



Jörn

--
Happiness isn't having what you want, it's wanting what you have.
-- unknown

Implement Computer Aided Ignorance (CAI) for Randy:
o Only negative numbers >= -256MiB are turned positive.
o Numbers above 256MiB (or below -256MiB) are ignored.

This specifically catches a case when 0xc000_0000 is added/removed.

Signed-off-by: Jörn Engel <joern@xxxxxxxxxxxxxxxxxxxx>
---

scripts/checkstack.pl | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.11cow/scripts/checkstack.pl~randy_check 2004-12-28 17:31:38.000000000 +0100
+++ linux-2.6.11cow/scripts/checkstack.pl 2005-03-07 00:39:44.000000000 +0100
@@ -90,11 +90,12 @@ while (my $line = <STDIN>) {
my $size = $1;
$size = hex($size) if ($size =~ /^0x/);

- if ($size > 0x80000000) {
+ if ($size > 0xf0000000) {
$size = - $size;
$size += 0x80000000;
$size += 0x80000000;
}
+ next if ($size > 0x10000000);

next if $line !~ m/^($xs*)/;
my $addr = $1;
-
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/