diff options
author | Srinivas Pandruvada <[email protected]> | 2019-11-28 07:08:24 -0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2019-11-29 09:17:52 +0100 |
commit | 5a43b87b3c62ad149ba6e9d0d3e5c0e5da02a5ca (patch) | |
tree | 30c85a5ce6f64a5f74bb8d62a19220be17ad026b /security/selinux/hooks.c | |
parent | c2da5bdc66a377f0b82ee959f19f5a6774706b83 (diff) |
x86/mce/therm_throt: Mask out read-only and reserved MSR bits
While writing to MSR IA32_THERM_STATUS/IA32_PKG_THERM_STATUS, avoid
writing 1 to read only and reserved fields because updating some fields
generates exception.
[ bp: Vertically align for better readability. ]
Fixes: f6656208f04e ("x86/mce/therm_throt: Optimize notifications of thermal throttle")
Reported-by: Dominik Brodowski <[email protected]>
Tested-by: Dominik Brodowski <[email protected]>
Signed-off-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: linux-edac <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: x86-ml <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions