linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] arm64: correctly and consistently handle Xt == XZR
@ 2017-02-09 15:19 Mark Rutland
  2017-02-09 15:19 ` [PATCH 1/4] arm64: ptrace: add XZR-safe regs accessors Mark Rutland
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Mark Rutland @ 2017-02-09 15:19 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I spotted that we inconsistently handle the use of Xt when we trap
instructions, and in some cases we may erroneously access SP.

These patches add new helpers to handle this for us, and moves code over to
using them, fixing the erroneous SP usage in the process.

Patch 2 (correcting the trapped CTR_EL0 handling) will need backporting to
stable, and is dependent on patch 1.

Patch 3 is also a fix, but shouldn't need backporting as the patch hasn't made
it into a release yet. Patch 4 is a cleanup for consistency.

Thanks,
Mark.

Mark Rutland (4):
  arm64: ptrace: add XZR-safe regs accessors
  arm64: traps: correctly handle MRS/MSR with XZR
  arm64: cpufeature: correctly handle MRS to XZR
  arm64/kprobes: consistently handle MRS/MSR with XZR

 arch/arm64/include/asm/ptrace.h          | 20 ++++++++++++++++++++
 arch/arm64/kernel/cpufeature.c           |  2 +-
 arch/arm64/kernel/probes/simulate-insn.c | 18 ++++++------------
 arch/arm64/kernel/traps.c                |  6 ++++--
 4 files changed, 31 insertions(+), 15 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-09 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-09 15:19 [PATCH 0/4] arm64: correctly and consistently handle Xt == XZR Mark Rutland
2017-02-09 15:19 ` [PATCH 1/4] arm64: ptrace: add XZR-safe regs accessors Mark Rutland
2017-02-09 15:19 ` [PATCH 2/4] arm64: traps: correctly handle MRS/MSR with XZR Mark Rutland
2017-02-09 15:19 ` [PATCH 3/4] arm64: cpufeature: correctly handle MRS to XZR Mark Rutland
2017-02-09 15:19 ` [PATCH 4/4] arm64/kprobes: consistently handle MRS/MSR with XZR Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).