Disallow the creation of perf and ftrace kprobes when the kernel is locked down in confidentiality mode by preventing their registration. This prevents kprobes from being used to access kernel memory to steal crypto data, but continues to allow the use of kprobes from signed modules.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -117,6 +117,7 @@ enum lockdown_reason { · 116 unmodified lines | |||
| 117 | LOCKDOWN_MMIOTRACE, | 117 | LOCKDOWN_MMIOTRACE, |
| 118 | LOCKDOWN_INTEGRITY_MAX, | 118 | LOCKDOWN_INTEGRITY_MAX, |
| 119 | LOCKDOWN_KCORE, | 119 | LOCKDOWN_KCORE, |
| 120 | LOCKDOWN_KPROBES, | ||
| 120 | LOCKDOWN_CONFIDENTIALITY_MAX, | 121 | LOCKDOWN_CONFIDENTIALITY_MAX, |
| 121 | }; | 122 | }; |
| 122 | 123 | ||