From: Will Deacon Date: Tue, 21 Feb 2012 11:29:03 +0000 (+0100) Subject: ARM: 7337/1: ptrace: fix ptrace_read_user for !CONFIG_MMU platforms X-Git-Tag: v3.4-rc2~28^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a4f5da543b169d555a19e889850780ddceb8f98;p=pandora-kernel.git ARM: 7337/1: ptrace: fix ptrace_read_user for !CONFIG_MMU platforms Commit 68b7f715 ("nommu: ptrace support") added definitions for PT_TEXT_ADDR and friends, as well as adding ptrace support for reading from these magic offsets. Unfortunately, this has probably never worked, since ptrace_read_user predicates reading on off < sizeof(struct user), returning -EIO otherwise. This patch moves the offset size check until after we have tried to match it against either a magic value or an offset into pt_regs. Cc: Paul Brook Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed