[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180807181419.15690-4-ykaukab@suse.de>
Date: Tue, 7 Aug 2018 20:14:16 +0200
From: Mian Yousaf Kaukab <ykaukab@...e.de>
To: will.deacon@....com, marc.zyngier@....com
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
robert.richter@...ium.com, cwu@...erecomputing.com,
Mian Yousaf Kaukab <ykaukab@...e.de>
Subject: [PATCH 3/6] arm64: add sysfs vulnerability show for spectre v1
Hard-coded since patches are merged and there are no configuration
options.
Signed-off-by: Mian Yousaf Kaukab <ykaukab@...e.de>
---
arch/arm64/kernel/cpu_errata.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index 996edb4e18ad..92616431ae4e 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -706,4 +706,10 @@ ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr,
return sprintf(buf, "Vulnerable\n");
}
+ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr,
+ char *buf)
+{
+ return sprintf(buf, "Mitigation: __user pointer sanitization\n");
+}
+
#endif
--
2.11.0
Powered by blists - more mailing lists