summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDave Martin <Dave.Martin@arm.com>2018-09-27 16:53:21 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-10 08:52:08 +0200
commit14a65511bc7c1eec560764fe53018b0765fb8d2d (patch)
treedd4abcfd3c643de1c8b0e5ceb8d2a4ecfb98f2a4 /tools/perf/scripts/python
parent9aeb6fd7e2d9b459df8cce696f51e5c7dba2d73a (diff)
arm64: KVM: Tighten guest core register access from userspace
commit d26c25a9d19b5976b319af528886f89cf455692d upstream. We currently allow userspace to access the core register file in about any possible way, including straddling multiple registers and doing unaligned accesses. This is not the expected use of the ABI, and nobody is actually using it that way. Let's tighten it by explicitly checking the size and alignment for each field of the register file. Cc: <stable@vger.kernel.org> Fixes: 2f4a07c5f9fe ("arm64: KVM: guest one-reg interface") Reviewed-by: Christoffer Dall <christoffer.dall@arm.com> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Dave Martin <Dave.Martin@arm.com> [maz: rewrote Dave's initial patch to be more easily backported] Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions