summaryrefslogtreecommitdiff
path: root/kernel/async.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2018-02-06 17:56:06 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-16 20:09:45 +0100
commitb1da6f0262b000b9834728f4f767111882451efc (patch)
tree4be34dbae90eb3f57c38e23c556d029599b33d8e /kernel/async.c
parent7b66838321edc86d094cf49d0c2b314b6c3179c8 (diff)
arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls
commit 20e8175d246e9f9deb377f2784b3e7dfb2ad3e86 upstream. KVM doesn't follow the SMCCC when it comes to unimplemented calls, and inject an UNDEF instead of returning an error. Since firmware calls are now used for security mitigation, they are becoming more common, and the undef is counter productive. Instead, let's follow the SMCCC which states that -1 must be returned to the caller when getting an unknown function number. Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/async.c')
0 files changed, 0 insertions, 0 deletions