]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: add sysfs vulnerability show for spectre-v2
authorJeremy Linton <jeremy.linton@arm.com>
Mon, 15 Apr 2019 21:21:26 +0000 (16:21 -0500)
committerWill Deacon <will.deacon@arm.com>
Fri, 26 Apr 2019 15:31:36 +0000 (16:31 +0100)
commit06bb54dbb8248a9a5b485f9246afa57addf4bd38
tree31f1be21c8df7abee8f3235afcad6fa411fb133c
parentcae918ae4af69757d8ace4118707a3ad51a1795b
arm64: add sysfs vulnerability show for spectre-v2

Track whether all the cores in the machine are vulnerable to Spectre-v2,
and whether all the vulnerable cores have been mitigated. We then expose
this information to userspace via sysfs.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpu_errata.c