[PATCH 5/5] ARM: spectre-v2: per-CPU vtables to work around big.Little systems
From: krzk@kernel.org (Krzysztof Kozlowski)
Date: 2018-10-05 09:35:52
Also in:
linux-samsung-soc
From: krzk@kernel.org (Krzysztof Kozlowski)
Date: 2018-10-05 09:35:52
Also in:
linux-samsung-soc
On Fri, 5 Oct 2018 at 11:09, Marek Szyprowski [off-list ref] wrote:
Hi All, On 2018-09-19 11:49, Russell King wrote:quoted
In big.Little systems, some CPUs require the Spectre workarounds in paths such as the context switch, but other CPUs do not. In order to handle these differences, we need per-CPU vtables. We are unable to use the kernel's per-CPU variables to support this as per-CPU is not initialised at times when we need access to the vtables, so we have to use an array indexed by logical CPU number. Signed-off-by: Russell King <redacted>This patch causes lots of kernel 'BUG' messages on all Samsung Exynos boards. It started to appear since it has been merged to linux-next on 20181002. I wonder if this issue is Exynos specific or there are some patches missing in linux-next, which should fix those 'BUGS'. If this is Exynos specific, please let us know what should be changed in Exynos platform code to avoid this issue.
Thanks Marek for narrowing this down. I confirm. All my Exynos boards experience this. Full logs: https://krzk.eu/#/builders/1/builds/2811/steps/12/logs/serial0 Best regards, Krzysztof