[PATCH][2/4] let's kill verify_area - convert kernel/signal.c toaccess_ok()
From: Jesper Juhl
Date: Thu Jan 06 2005 - 20:41:46 EST
Here's a patch to convert verify_area to access_ok in kernel/signal.c
Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>
diff -up linux-2.6.10-bk9-orig/kernel/signal.c linux-2.6.10-bk9/kernel/signal.c
--- linux-2.6.10-bk9-orig/kernel/signal.c 2005-01-06 22:19:19.000000000 +0100
+++ linux-2.6.10-bk9/kernel/signal.c 2005-01-07 02:02:55.000000000 +0100
@@ -2435,7 +2435,7 @@ do_sigaltstack (const stack_t __user *us
int ss_flags;
error = -EFAULT;
- if (verify_area(VERIFY_READ, uss, sizeof(*uss))
+ if (!access_ok(VERIFY_READ, uss, sizeof(*uss))
|| __get_user(ss_sp, &uss->ss_sp)
|| __get_user(ss_flags, &uss->ss_flags)
|| __get_user(ss_size, &uss->ss_size))
-
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/