]> Git Repo - linux.git/commit
arm64: KVM: Tighten guest core register access from userspace
authorDave Martin <[email protected]>
Thu, 27 Sep 2018 15:53:21 +0000 (16:53 +0100)
committerWill Deacon <[email protected]>
Mon, 1 Oct 2018 13:38:05 +0000 (14:38 +0100)
commitd26c25a9d19b5976b319af528886f89cf455692d
treea7d45ee45745dda7244f599d6374486672535417
parent031e6e6b4e1277e76e73a6ab209095ad9bf3ce52
arm64: KVM: Tighten guest core register access from userspace

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: <[email protected]>
Fixes: 2f4a07c5f9fe ("arm64: KVM: guest one-reg interface")
Reviewed-by: Christoffer Dall <[email protected]>
Reviewed-by: Mark Rutland <[email protected]>
Signed-off-by: Dave Martin <[email protected]>
[maz: rewrote Dave's initial patch to be more easily backported]
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
arch/arm64/kvm/guest.c
This page took 0.057314 seconds and 4 git commands to generate.