diff options
author | Dave Martin <Dave.Martin@arm.com> | 2017-06-21 17:00:43 +0200 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-06-22 16:58:19 +0200 |
commit | e1d5a8fb73e6c65280c21ec188180345649ee650 (patch) | |
tree | 96a8624bb07d0971286d9972c7b3c41f9c98c871 /arch/arm64/kernel/perf_event.c | |
parent | arm64: ptrace: Fix VFP register dumping in compat coredumps (diff) | |
download | linux-e1d5a8fb73e6c65280c21ec188180345649ee650.tar.xz linux-e1d5a8fb73e6c65280c21ec188180345649ee650.zip |
arm64: ptrace: Flush FPSIMD regs back to thread_struct before reading
When reading the FPSIMD state of current (which occurs when dumping
core), it is possible that userspace has modified the FPSIMD
registers since the time the task was last scheduled out. Such
changes are not guaranteed to be reflected immedately in
thread_struct.
As a result, a coredump can contain stale values for these
registers. Reading the registers of a stopped task via ptrace is
unaffected.
This patch explicitly flushes the CPU state back to thread_struct
before dumping when operating on current, thus ensuring that
coredump contents are up to date.
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/perf_event.c')
0 files changed, 0 insertions, 0 deletions