ARM: report Spectre v2 status through sysfs
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 11 Feb 2022 16:45:54 +0000 (16:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2022 09:03:31 +0000 (10:03 +0100)
commitb24d4041cfb6dab83f9edf40573375bd1365e619
treeac226b504261095c7b1271b5dede3d7c67f06313
parent407ef3694b2f5424bc174a2402df6ab31093e00c
ARM: report Spectre v2 status through sysfs

commit 9dd78194a3722fa6712192cdd4f7032d45112a9a upstream.

As per other architectures, add support for reporting the Spectre
vulnerability status via sysfs CPU.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
[ preserve res variable and add SMCCC_ARCH_WORKAROUND_RET_UNAFFECTED - gregkh ]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/spectre.h [new file with mode: 0644]
arch/arm/kernel/Makefile
arch/arm/kernel/spectre.c [new file with mode: 0644]
arch/arm/mm/Kconfig
arch/arm/mm/proc-v7-bugs.c