Writing to MSRs should not be allowed if the kernel is locked down, since it could lead to execution of arbitrary code in kernel mode. Based on a patch by Kees Cook.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -109,6 +109,7 @@ enum lockdown_reason { · 108 unmodified lines | |||
| 109 | LOCKDOWN_HIBERNATION, | 109 | LOCKDOWN_HIBERNATION, |
| 110 | LOCKDOWN_PCI_ACCESS, | 110 | LOCKDOWN_PCI_ACCESS, |
| 111 | LOCKDOWN_IOPORT, | 111 | LOCKDOWN_IOPORT, |
| 112 | LOCKDOWN_MSR, | ||
| 112 | LOCKDOWN_INTEGRITY_MAX, | 113 | LOCKDOWN_INTEGRITY_MAX, |
| 113 | LOCKDOWN_CONFIDENTIALITY_MAX, | 114 | LOCKDOWN_CONFIDENTIALITY_MAX, |
| 114 | }; | 115 | }; |