commit | 2890ac993daa7bdcc57a92da2f07bcdec243666b | [log] [tgz] |
---|---|---|
author | Marc Zyngier <maz@kernel.org> | Wed Apr 01 12:25:05 2020 +0100 |
committer | Marc Zyngier <maz@kernel.org> | Fri Apr 17 09:51:45 2020 +0100 |
tree | 3de85579ff6aec6ef51dc586435aa9bb2febc0db | |
parent | 8f3d9f354286745c751374f5f1fcafee6b3f3136 [diff] |
KVM: arm64: PSCI: Narrow input registers when using 32bit functions When a guest delibarately uses an SMC32 function number (which is allowed), we should make sure we drop the top 32bits from the input arguments, as they could legitimately be junk. Reported-by: Christoffer Dall <christoffer.dall@arm.com> Reviewed-by: Christoffer Dall <christoffer.dall@arm.com> Reviewed-by: Alexandru Elisei <alexandru.elisei@arm.com> Signed-off-by: Marc Zyngier <maz@kernel.org>