Commit:     662ae2169a16004700cc18c1898aead2e5e944d5
Parent:     d4ac2477fad0f2680e84ec12e387ce67682c5c13
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Sat Aug 4 13:39:21 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Sat Aug 4 13:39:21 2007 +0900

    sh: Fix PTRACE_PEEKTEXT/PEEKDATA fallout from generic_ptrace_peekdata().
    When generic_ptrace_peekdata() was merged, the break for these cases
    ended up getting dropped, which lead to each PEEKTEXT/PEEKDATA op leaking
    in to PEEKUSR and get_user_pages() always -EFAULTing. Add the break back
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
 arch/sh/kernel/ptrace.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sh/kernel/ptrace.c b/arch/sh/kernel/ptrace.c
index 891d1d4..f64a2d2 100644
--- a/arch/sh/kernel/ptrace.c
+++ b/arch/sh/kernel/ptrace.c
@@ -93,6 +93,7 @@ long arch_ptrace(struct task_struct *child, long request, 
long addr, long data)
        case PTRACE_PEEKTEXT: /* read word at location addr. */
        case PTRACE_PEEKDATA:
                ret = generic_ptrace_peekdata(child, addr, data);
+               break;
        /* read the word at location addr in the USER area. */
        case PTRACE_PEEKUSR: {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to