This is a note to let you know that I've just added the patch titled

    kprobes: adjust "fix a memory leak in function pre_handler_kretprobe()"

to the 3.0-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kprobes-adjust-fix-a-memory-leak-in-function-pre_handler_kretprobe.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From [email protected]  Wed Mar  7 11:32:41 2012
From: "Jan Beulich" <[email protected]>
Date: Tue, 28 Feb 2012 10:41:37 +0000
Subject: kprobes: adjust "fix a memory leak in function pre_handler_kretprobe()"
To: <[email protected]>
Cc: <[email protected]>,<[email protected]>, "Jiri Slaby" 
<[email protected]>
Message-ID: <[email protected]>
Content-Disposition: inline


From: Jan Beulich <[email protected]>

3.0.21's 603b63484725a6e88e4ae5da58716efd88154b1e directly used
the upstream patch, yet kprobes locking in 3.0.x uses spin_lock...()
rather than raw_spin_lock...().

Signed-off-by: Jan Beulich <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 kernel/kprobes.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -1663,9 +1663,9 @@ static int __kprobes pre_handler_kretpro
                ri->task = current;
 
                if (rp->entry_handler && rp->entry_handler(ri, regs)) {
-                       raw_spin_lock_irqsave(&rp->lock, flags);
+                       spin_lock_irqsave(&rp->lock, flags);
                        hlist_add_head(&ri->hlist, &rp->free_instances);
-                       raw_spin_unlock_irqrestore(&rp->lock, flags);
+                       spin_unlock_irqrestore(&rp->lock, flags);
                        return 0;
                }
 


Patches currently in stable-queue which might be from [email protected] are

queue-3.0/kprobes-adjust-fix-a-memory-leak-in-function-pre_handler_kretprobe.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to