diff options
author | Victor Kamensky <victor.kamensky@linaro.org> | 2014-06-03 19:21:30 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-23 00:10:48 +0100 |
commit | dd7d4626b70d246242c57c4a9ffaecb961570406 (patch) | |
tree | 35e252bc2894cea3915d44e7b96c1c083731bbbb /drivers/xen/xenbus/xenbus_probe.c | |
parent | ab7ccd91004b55c29910c999f51bc40880646810 (diff) |
arm64: ptrace: fix empty registers set in prstatus of aarch32 process corev3.10/topic/ptracev3.10/topic/arm64-ptrace
Currently core file of aarch32 process prstatus note has empty
registers set. As result aarch32 core files create by V8 kernel are
not very useful.
It happens because compat_gpr_get and compat_gpr_set functions can
copy registers values to/from either kbuf or ubuf. ELF core file
collection function fill_thread_core_info calls compat_gpr_get
with kbuf set and ubuf set to 0. But current compat_gpr_get and
compat_gpr_set function handle copy to/from only ubuf case.
Fix is to handle kbuf and ubuf as two separate cases in similar
way as other functions like user_regset_copyout, user_regset_copyin do.
Signed-off-by: Victor Kamensky <victor.kamensky@linaro.org>
Acked-by: Will Deacon <will.deacon@arm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 2227901a0230d8fde81ba9c602d649839390f56b)
Signed-off-by: Mark Brown <broonie@linaro.org>
Conflicts:
arch/arm64/kernel/ptrace.c
Diffstat (limited to 'drivers/xen/xenbus/xenbus_probe.c')
0 files changed, 0 insertions, 0 deletions