Re: [PATCH v6 04/10] arm64: Advertise mitigation of Spectre-v2, or lack thereof

From: Suzuki K Poulose
Date: Mon Mar 25 2019 - 06:59:41 EST




On 21/03/2019 23:05, Jeremy Linton wrote:
From: Marc Zyngier <marc.zyngier@xxxxxxx>

We currently have a list of CPUs affected by Spectre-v2, for which
we check that the firmware implements ARCH_WORKAROUND_1. It turns
out that not all firmwares do implement the required mitigation,
and that we fail to let the user know about it.

Instead, let's slightly revamp our checks, and rely on a whitelist
of cores that are known to be non-vulnerable, and let the user know
the status of the mitigation in the kernel log.

Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx>
[This makes more sense in front of the sysfs patch]
[Pick pieces of that patch into this and move it earlier]
Signed-off-by: Jeremy Linton <jeremy.linton@xxxxxxx>
Reviewed-by: Andre Przywara <andre.przywara@xxxxxxx>
Tested-by: Stefan Wahren <stefan.wahren@xxxxxxxx>
---

Reviewed-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>