diff options
author | David Brazdil <dbrazdil@google.com> | 2020-12-08 17:24:47 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-12-22 13:47:59 +0300 |
commit | ff367fe473a9857160c17827931375a899076394 (patch) | |
tree | 4281bbe4ddc2f0a4bcff4d9e7de973ce4ce56c85 /fs/pnode.c | |
parent | 2a5f1b67ec577fb1544b563086e0377f095f88e2 (diff) | |
download | linux-ff367fe473a9857160c17827931375a899076394.tar.xz |
KVM: arm64: Prevent use of invalid PSCI v0.1 function IDs
PSCI driver exposes a struct containing the PSCI v0.1 function IDs
configured in the DT. However, the struct does not convey the
information whether these were set from DT or contain the default value
zero. This could be a problem for PSCI proxy in KVM protected mode.
Extend config passed to KVM with a bit mask with individual bits set
depending on whether the corresponding function pointer in psci_ops is
set, eg. set bit for PSCI_CPU_SUSPEND if psci_ops.cpu_suspend != NULL.
Previously config was split into multiple global variables. Put
everything into a single struct for convenience.
Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201208142452.87237-2-dbrazdil@google.com
Diffstat (limited to 'fs/pnode.c')
0 files changed, 0 insertions, 0 deletions