mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/3] ptrace: annotate lock context change on exit_ptrace()
@ 2010-08-22 10:22 Namhyung Kim
  2010-08-23 16:53 ` Roland McGrath
  0 siblings, 1 reply; 2+ messages in thread
From: Namhyung Kim @ 2010-08-22 10:22 UTC (permalink / raw)
  To: Roland McGrath, Oleg Nesterov; +Cc: linux-kernel

exit_ptrace() is called within tasklist_lock context and releases it and
reacquires but was missing proper annotations. Add it.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 kernel/ptrace.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index f34d798..4afd9b8 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -329,6 +329,8 @@ int ptrace_detach(struct task_struct *child, unsigned int data)
  * and reacquire the lock.
  */
 void exit_ptrace(struct task_struct *tracer)
+	__releases(&tasklist_lock)
+	__acquires(&tasklist_lock)
 {
 	struct task_struct *p, *n;
 	LIST_HEAD(ptrace_dead);
-- 
1.7.0.4


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

end of thread, other threads:[~2010-08-23 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-22 10:22 [PATCH 1/3] ptrace: annotate lock context change on exit_ptrace() Namhyung Kim
2010-08-23 16:53 ` Roland McGrath

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®