diff mbox series

[xenial,2/3] UBUNTU: SAUCE: s390: print messages for gmb and nobp

Message ID 1516291994-11660-3-git-send-email-marcelo.cerri@canonical.com
State New
Headers show
Series Improve cpu alternative handling for gmb and nobp | expand

Commit Message

Marcelo Henrique Cerri Jan. 18, 2018, 4:13 p.m. UTC
CVE-2017-5753
CVE-2017-5715

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
---
 arch/s390/kernel/alternative.c | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/arch/s390/kernel/alternative.c b/arch/s390/kernel/alternative.c
index 4e443fe369c9..c86d14a6c235 100644
--- a/arch/s390/kernel/alternative.c
+++ b/arch/s390/kernel/alternative.c
@@ -137,5 +137,11 @@  void __init_or_module apply_alternatives(struct alt_instr *start,
 extern struct alt_instr __alt_instructions[], __alt_instructions_end[];
 void __init apply_alternative_instructions(void)
 {
+	pr_info("gmb %s",
+		(__test_facility(81, S390_lowcore.alt_stfle_fac_list)) ?
+		"enabled" : "disabled");
+	pr_info("nobp %s",
+		(__test_facility(82, S390_lowcore.alt_stfle_fac_list)) ?
+		"enabled" : "disabled");
 	apply_alternatives(__alt_instructions, __alt_instructions_end);
 }