# Re: \[PATCH V34 20/29\] x86/mmiotrace: Lock down the testmmiotrace module

- From: Thomas Gleixner \<hidden\>
- Date: 2019-06-23 11:10:21 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2019/06/5637045
- Thread: https://ratatoskr.run/linux-security-module/2019/06/5636588/t.md

```text


On Fri, 21 Jun 2019, Matthew Garrett wrote:

> From: David Howells <dhowells@redhat.com>
> 
> The testmmiotrace module shouldn't be permitted when the kernel is locked
> down as it can be used to arbitrarily read and write MMIO space. This is
> a runtime check rather than buildtime in order to allow configurations
> where the same kernel may be run in both locked down or permissive modes
> depending on local policy.
> 
> Suggested-by: Thomas Gleixner <redacted>
> Signed-off-by: David Howells <dhowells@redhat.com
> Signed-off-by: Matthew Garrett <redacted>
> cc: Thomas Gleixner <redacted>
> cc: Steven Rostedt <rostedt@goodmis.org>
> cc: Ingo Molnar <mingo@kernel.org>
> cc: "H. Peter Anvin" <hpa@zytor.com>
> cc: x86@kernel.org

Reviewed-by: Thomas Gleixner <redacted>
```
