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 |
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); }
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(+)