public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 1/3] x86, xsave: remove the redundant access_ok() in setup_rt_frame()
@ 2008-08-13 18:38 Suresh Siddha
  2008-08-13 18:38 ` [patch 2/3] x86, xsave: clear the user buffer before doing fxsave/xsave Suresh Siddha
  2008-08-13 18:38 ` [patch 3/3] x86, xsave: use BUG_ON() instead of BUILD_BUG_ON() Suresh Siddha
  0 siblings, 2 replies; 4+ messages in thread
From: Suresh Siddha @ 2008-08-13 18:38 UTC (permalink / raw)
  To: mingo, hpa, tglx; +Cc: linux-kernel, Suresh Siddha

[-- Attachment #1: remove_redundant_access_ok.patch --]
[-- Type: text/plain, Size: 696 bytes --]

save_i387_xstate() is already doing the required access_ok(). Remove
the redundant access_ok() before it.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
---

Index: tip/arch/x86/kernel/signal_64.c
===================================================================
--- tip.orig/arch/x86/kernel/signal_64.c	2008-08-11 15:26:47.000000000 -0700
+++ tip/arch/x86/kernel/signal_64.c	2008-08-11 15:28:52.000000000 -0700
@@ -208,9 +208,6 @@
 		frame = (void __user *)round_down(
 			(unsigned long)fp - sizeof(struct rt_sigframe), 16) - 8;
 
-		if (!access_ok(VERIFY_WRITE, fp, sizeof(struct _fpstate)))
-			goto give_sigsegv;
-
 		if (save_i387_xstate(fp) < 0)
 			err |= -1;
 	} else

-- 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-14  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13 18:38 [patch 1/3] x86, xsave: remove the redundant access_ok() in setup_rt_frame() Suresh Siddha
2008-08-13 18:38 ` [patch 2/3] x86, xsave: clear the user buffer before doing fxsave/xsave Suresh Siddha
2008-08-13 18:38 ` [patch 3/3] x86, xsave: use BUG_ON() instead of BUILD_BUG_ON() Suresh Siddha
2008-08-14  8:56   ` Ingo Molnar

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