lkml.org 
[lkml]   [2010]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 1/3] ptrace: annotate lock context change on exit_ptrace()
    Date
    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


    \
     
     \ /
      Last update: 2010-08-22 12:25    [W:0.019 / U:60.676 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site