Commit 1fd5eb0
x86/bugs: Add SRSO_MITIGATION_NOSMT
AMD Zen1 and Zen2 CPUs with SMT disabled are not vulnerable to SRSO.
Instead of overloading the X86_FEATURE_SRSO_NO bit to indicate this,
define a separate mitigation to make the code cleaner.
Signed-off-by: David Kaplan <david.kaplan@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: H . Peter Anvin <hpa@zytor.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250625155805.600376-2-david.kaplan@amd.com1 parent ab9f238 commit 1fd5eb0
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2851 | 2851 | | |
2852 | 2852 | | |
2853 | 2853 | | |
| 2854 | + | |
2854 | 2855 | | |
2855 | 2856 | | |
2856 | 2857 | | |
| |||
2862 | 2863 | | |
2863 | 2864 | | |
2864 | 2865 | | |
| 2866 | + | |
2865 | 2867 | | |
2866 | 2868 | | |
2867 | 2869 | | |
| |||
2914 | 2916 | | |
2915 | 2917 | | |
2916 | 2918 | | |
2917 | | - | |
2918 | | - | |
| 2919 | + | |
2919 | 2920 | | |
2920 | 2921 | | |
2921 | 2922 | | |
| |||
2968 | 2969 | | |
2969 | 2970 | | |
2970 | 2971 | | |
2971 | | - | |
2972 | | - | |
| 2972 | + | |
2973 | 2973 | | |
2974 | 2974 | | |
2975 | 2975 | | |
| |||
3265 | 3265 | | |
3266 | 3266 | | |
3267 | 3267 | | |
3268 | | - | |
3269 | | - | |
3270 | | - | |
3271 | 3268 | | |
3272 | 3269 | | |
3273 | 3270 | | |
| |||
0 commit comments