aboutsummaryrefslogtreecommitdiff
path: root/fs/hugetlbfs/inode.c
diff options
context:
space:
mode:
authorRicardo Cañuelo <[email protected]>2022-04-01 09:45:17 +0200
committerBorislav Petkov <[email protected]>2022-04-05 21:55:57 +0200
commit0205f8a738ab9e62d849e88e543cfa6ce4c13163 (patch)
tree3bd3ddea3f0c019a939ab5b97f8bcd170ec75a9a /fs/hugetlbfs/inode.c
parentf8858b5eff30d1b2be15ef1ea6285964013b95e6 (diff)
x86/speculation/srbds: Do not try to turn mitigation off when not supported
When SRBDS is mitigated by TSX OFF, update_srbds_msr() will still read and write to MSR_IA32_MCU_OPT_CTRL even when that MSR is not supported due to not having loaded the appropriate microcode. Check for X86_FEATURE_SRBDS_CTRL which is set only when the respective microcode which adds MSR_IA32_MCU_OPT_CTRL is loaded. Based on a patch by Thadeu Lima de Souza Cascardo <[email protected]>. [ bp: Massage commit message. ] Suggested-by: Pawan Gupta <[email protected]> Signed-off-by: Ricardo Cañuelo <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'fs/hugetlbfs/inode.c')
0 files changed, 0 insertions, 0 deletions