OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51973a8
)
powerpc/64s: Enhance the information in cpu_show_spectre_v1()
author
Michal Suchanek
<msuchanek@suse.de>
Mon, 28 May 2018 13:19:14 +0000
(15:19 +0200)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:46 +0000
(20:43 +1000)
We now have barrier_nospec as mitigation so print it in
cpu_show_spectre_v1() when enabled.
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
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
06d5195
..
3eb9c45
100644
(file)
--- a/
arch/powerpc/kernel/security.c
+++ b/
arch/powerpc/kernel/security.c
@@
-120,6
+120,9
@@
ssize_t cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, c
if (!security_ftr_enabled(SEC_FTR_BNDS_CHK_SPEC_BAR))
return sprintf(buf, "Not affected\n");
+ if (barrier_nospec_enabled)
+ return sprintf(buf, "Mitigation: __user pointer sanitization\n");
+
return sprintf(buf, "Vulnerable\n");
}