On 04/12/2018 04:10 AM, Mark Rutland wrote:
Hi Greg,
These patches backport arm64 spectre mitigations to v4.9.y (based on 4.9.93).
I've done this backport from scratch, following the patches in the arm64 kpti branch [1] (which contrary to its name, also has spectre patches intended for backporting).
To the best of my understanding the code is correct, in the context of the v4.9.y kernel, and I've tested the series on arm64 hardware available to me, using firmware with SMCCC 1.1 and branch predictor mitigations.
I've Cc'd the usual suspects for testing. For anyone willing to test this, I've pushed this out to the stable/4.9.y/spectre branch of my kernel.org repo [2].
Note that I've left off the Qualcomm Falkor patches, as it was pointed out that necessary errata workarounds for Falkor were never backported, and thus I assume that no-one is using v4.9.y on Falkor parts. Shanker, do you have any idea whether people are using v4.9.y on Falkor?
Thanks, Mark.
I've run this series on hikey on top of vanilla 4.9.93 (boots AOSP to serial shell) and android-linaro-hikey-4.9 (boots AOSP to home screen), with both SMCCC 1.0 and SMCCC 1.1 firmware.
Tested-by: Greg Hackmann ghackmann@google.com