Commit 2ddcb08
committed
x86/bugs: Fix reporting of LFENCE retpoline
JIRA: https://issues.redhat.com/browse/RHEL-119227
commit d1cc1ba
Author: David Kaplan <david.kaplan@amd.com>
Date: Mon, 15 Sep 2025 08:47:05 -0500
x86/bugs: Fix reporting of LFENCE retpoline
The LFENCE retpoline mitigation is not secure but the kernel prints
inconsistent messages about this fact. The dmesg log says 'Mitigation:
LFENCE', implying the system is mitigated. But sysfs reports 'Vulnerable:
LFENCE' implying the system (correctly) is not mitigated.
Fix this by printing a consistent 'Vulnerable: LFENCE' string everywhere
when this mitigation is selected.
Signed-off-by: David Kaplan <david.kaplan@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250915134706.3201818-1-david.kaplan@amd.com
Signed-off-by: Waiman Long <longman@redhat.com>1 parent ac5bd67 commit 2ddcb08
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2032 | 2032 | | |
2033 | 2033 | | |
2034 | 2034 | | |
2035 | | - | |
| 2035 | + | |
2036 | 2036 | | |
2037 | 2037 | | |
2038 | 2038 | | |
| |||
3559 | 3559 | | |
3560 | 3560 | | |
3561 | 3561 | | |
3562 | | - | |
3563 | | - | |
3564 | | - | |
3565 | 3562 | | |
3566 | 3563 | | |
3567 | 3564 | | |
| |||
0 commit comments