projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bc8ea8
)
powerpc/fsl: Update Spectre v2 reporting
author
Diana Craciun
<diana.craciun@nxp.com>
Wed, 12 Dec 2018 14:03:09 +0000
(16:03 +0200)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 20 Dec 2018 11:59:03 +0000
(22:59 +1100)
Report branch predictor state flush as a mitigation for
Spectre variant 2.
Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/security.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/security.c
b/arch/powerpc/kernel/security.c
index 9ab771b1aebbb2638d483e3f241d958711c00712..9b8631533e02a4559a4dfc4c23240db58e39192c 100644
(file)
--- a/
arch/powerpc/kernel/security.c
+++ b/
arch/powerpc/kernel/security.c
@@
-213,8
+213,11
@@
ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, c
if (count_cache_flush_type == COUNT_CACHE_FLUSH_HW)
seq_buf_printf(&s, "(hardware accelerated)");
- } else
+ } else if (btb_flush_enabled) {
+ seq_buf_printf(&s, "Mitigation: Branch predictor state flush");
+ } else {
seq_buf_printf(&s, "Vulnerable");
+ }
seq_buf_printf(&s, "\n");