mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][2/4] let's kill verify_area - convert kernel/signal.c to access_ok()
@ 2005-01-07  1:18 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2005-01-07  1:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton


Here's a patch to convert verify_area to access_ok in kernel/signal.c


Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>

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







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-07  1:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-07  1:18 [PATCH][2/4] let's kill verify_area - convert kernel/signal.c to access_ok() Jesper Juhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®