diff options
author | Marc Zyngier <maz@kernel.org> | 2020-07-16 19:11:10 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-01 14:45:37 +0300 |
commit | dfaa0f7d0832fdfd915f1bab5887323401d9b021 (patch) | |
tree | 789bf18e3bdf11357e7c61b9edc8a366d3d2887a /scripts/package/mkspec | |
parent | 0ccd5c2c60e0eba3f9cf624fb6b4d28c4aa8c84a (diff) | |
download | linux-dfaa0f7d0832fdfd915f1bab5887323401d9b021.tar.xz |
arm64: Run ARCH_WORKAROUND_2 enabling code on all CPUs
commit 39533e12063be7f55e3d6ae21ffe067799d542a4 upstream.
Commit 606f8e7b27bf ("arm64: capabilities: Use linear array for
detection and verification") changed the way we deal with per-CPU errata
by only calling the .matches() callback until one CPU is found to be
affected. At this point, .matches() stop being called, and .cpu_enable()
will be called on all CPUs.
This breaks the ARCH_WORKAROUND_2 handling, as only a single CPU will be
mitigated.
In order to address this, forcefully call the .matches() callback from a
.cpu_enable() callback, which brings us back to the original behaviour.
Fixes: 606f8e7b27bf ("arm64: capabilities: Use linear array for detection and verification")
Cc: <stable@vger.kernel.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/package/mkspec')
0 files changed, 0 insertions, 0 deletions