arm64/speculation: Support 'mitigations=' cmdline option
authorJosh Poimboeuf <jpoimboe@redhat.com>
Fri, 12 Apr 2019 20:39:32 +0000 (15:39 -0500)
committerWill Deacon <will.deacon@arm.com>
Wed, 1 May 2019 13:48:07 +0000 (14:48 +0100)
commita111b7c0f20e13b54df2fa959b3dc0bdf1925ae6
treefb21c31d9d66a71ece8f4a9b8138002ca5eacb6d
parenteb337cdfcd5dd3b10522c2f34140a73a4c285c30
arm64/speculation: Support 'mitigations=' cmdline option

Configure arm64 runtime CPU speculation bug mitigations in accordance
with the 'mitigations=' cmdline option.  This affects Meltdown, Spectre
v2, and Speculative Store Bypass.

The default behavior is unchanged.

Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
[will: reorder checks so KASLR implies KPTI and SSBS is affected by cmdline]
Signed-off-by: Will Deacon <will.deacon@arm.com>
Documentation/admin-guide/kernel-parameters.txt
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c