Files
linux/arch/arm64/kernel
Will Deacon 97d4477d9e arm64: ptrace: change fs when passing kernel pointer to regset code
commit c168870704 upstream.

Our compat PTRACE_POKEUSR implementation simply passes the user data to
regset_copy_from_user after some simple range checking. Unfortunately,
the data in question has already been copied to the kernel stack by this
point, so the subsequent access_ok check fails and the ptrace request
returns -EFAULT. This causes problems tracing fork() with older versions
of strace.

This patch briefly changes the fs to KERNEL_DS, so that the access_ok
check passes even with a kernel address.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-30 20:09:42 -07:00
..
2012-09-17 13:42:21 +01:00
2012-09-17 13:41:59 +01:00
2014-01-09 12:24:26 -08:00
2012-09-17 13:42:14 +01:00
2012-12-05 11:26:49 +00:00
2012-09-17 13:42:04 +01:00
2013-01-29 16:56:37 +00:00
2012-09-17 13:42:19 +01:00
2013-02-14 09:17:29 -05:00
2014-03-06 21:30:12 -08:00
2013-02-14 09:17:29 -05:00
2012-09-17 13:42:21 +01:00