public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] utrace: nommu fixup support utrace
@ 2007-03-06  7:25 Wu, Bryan
  2007-03-06  9:37 ` David Howells
  2007-03-07  3:42 ` Roland McGrath
  0 siblings, 2 replies; 7+ messages in thread
From: Wu, Bryan @ 2007-03-06  7:25 UTC (permalink / raw)
  To: roland, David Howells, Andrew Morton, linux-kernel

Hi folks,

When adding utrace support to blackfin architecture, I found a compiling
error in nommu related utrace stuff. Then this little patch will fix
this for nommu arch utrace.

Signed-off-by: Bryan Wu <bryan.wu@analog.com> 
---
 mm/nommu.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-2.6/mm/nommu.c
===================================================================
--- linux-2.6.orig/mm/nommu.c	2007-03-06 15:14:22.000000000 +0800
+++ linux-2.6/mm/nommu.c	2007-03-06 15:16:01.000000000 +0800
@@ -673,7 +673,11 @@
 	 * it's being traced - otherwise breakpoints set in it may interfere
 	 * with another untraced process
 	 */
+#ifdef CONFIG_UTRACE
+	if (flags & MAP_PRIVATE) 
+#else
 	if ((flags & MAP_PRIVATE) && (current->ptrace & PT_PTRACED))
+#endif
 		vm_flags &= ~VM_MAYSHARE;
 
 	return vm_flags;
_

Thanks
-Bryan Wu

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

end of thread, other threads:[~2007-03-09 11:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06  7:25 [PATCH -mm] utrace: nommu fixup support utrace Wu, Bryan
2007-03-06  9:37 ` David Howells
2007-03-06  9:49   ` Wu, Bryan
2007-03-07  3:42 ` Roland McGrath
2007-03-07 11:10   ` David Howells
2007-03-09  7:37     ` Roland McGrath
2007-03-09 11:41       ` David Howells

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