Commit 98b5dab
x86/bugs: Clean up SRSO microcode handling
SRSO microcode only exists for Zen3/Zen4 CPUs. For those CPUs, the microcode
is required for any mitigation other than Safe-RET to be effective. Safe-RET
can still protect user->kernel and guest->host attacks without microcode.
Clarify this in the code and ensure that SRSO_MITIGATION_UCODE_NEEDED is
selected for any mitigation besides Safe-RET if the required microcode isn't
present.
Signed-off-by: David Kaplan <david.kaplan@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250625155805.600376-4-david.kaplan@amd.com1 parent ff54ae7 commit 98b5dab
1 file changed
Lines changed: 18 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2902 | 2902 | | |
2903 | 2903 | | |
2904 | 2904 | | |
2905 | | - | |
2906 | | - | |
2907 | 2905 | | |
2908 | 2906 | | |
2909 | 2907 | | |
| |||
2913 | 2911 | | |
2914 | 2912 | | |
2915 | 2913 | | |
2916 | | - | |
2917 | | - | |
2918 | | - | |
2919 | | - | |
2920 | | - | |
2921 | | - | |
2922 | | - | |
2923 | | - | |
2924 | | - | |
2925 | | - | |
2926 | | - | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
2927 | 2921 | | |
2928 | 2922 | | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
2929 | 2933 | | |
2930 | 2934 | | |
2931 | 2935 | | |
2932 | 2936 | | |
| 2937 | + | |
2933 | 2938 | | |
2934 | 2939 | | |
2935 | 2940 | | |
| |||
2939 | 2944 | | |
2940 | 2945 | | |
2941 | 2946 | | |
2942 | | - | |
2943 | | - | |
2944 | | - | |
2945 | 2947 | | |
2946 | 2948 | | |
2947 | 2949 | | |
| |||
2956 | 2958 | | |
2957 | 2959 | | |
2958 | 2960 | | |
2959 | | - | |
2960 | | - | |
2961 | | - | |
2962 | 2961 | | |
2963 | 2962 | | |
2964 | 2963 | | |
| |||
0 commit comments