From: "Wu, Bryan" <bryan.wu@analog.com>
To: roland@redhat.com, David Howells <dhowells@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: [PATCH -mm] utrace: nommu fixup support utrace
Date: Tue, 06 Mar 2007 15:25:27 +0800 [thread overview]
Message-ID: <1173165927.17134.5.camel@roc-desktop> (raw)
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
next reply other threads:[~2007-03-06 7:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 7:25 Wu, Bryan [this message]
2007-03-06 9:37 ` [PATCH -mm] utrace: nommu fixup support utrace 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1173165927.17134.5.camel@roc-desktop \
--to=bryan.wu@analog.com \
--cc=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=roland@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox