diff options
author | Gustavo Romero <gromero@linux.vnet.ibm.com> | 2017-07-19 07:44:13 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-07-28 07:56:06 +0200 |
commit | cd63f3cf1d59b7ad8419eba1cac8f9126e79cc43 (patch) | |
tree | a654af0dfd9be1b77674292f8fa94471275440e2 /arch/ia64/kernel/Makefile.gate | |
parent | powerpc/mm: Fix pmd/pte_devmap() on non-leaf entries (diff) | |
download | linux-cd63f3cf1d59b7ad8419eba1cac8f9126e79cc43.tar.xz linux-cd63f3cf1d59b7ad8419eba1cac8f9126e79cc43.zip |
powerpc/tm: Fix saving of TM SPRs in core dump
Currently flush_tmregs_to_thread() does not save the TM SPRs (TFHAR,
TFIAR, TEXASR) to the thread struct, unless the process is currently
inside a suspended transaction.
If the process is core dumping, and the TM SPRs have changed since the
last time the process was context switched, then we will save stale
values of the TM SPRs to the core dump.
Fix it by saving the live register state to the thread struct in that
case.
Fixes: 08e1c01d6aed ("powerpc/ptrace: Enable support for TM SPR state")
Cc: stable@vger.kernel.org # v4.8+
Signed-off-by: Gustavo Romero <gromero@linux.vnet.ibm.com>
Reviewed-by: Cyril Bur <cyrilbur@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/ia64/kernel/Makefile.gate')
0 files changed, 0 insertions, 0 deletions