# Re: \[PATCH V36 23/29\] bpf: Restrict bpf when kernel lockdown is in confidentiality mode

- From: Matthew Garrett \<hidden\>
- Date: 2019-07-29 21:47:18 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2019/07/5671132
- Thread: https://ratatoskr.run/linux-security-module/2019/07/5659396/t.md

```text
On Thu, Jul 18, 2019 at 12:45 PM Matthew Garrett
[ref] wrote:
> bpf_read() and bpf_read_str() could potentially be abused to (eg) allow
> private keys in kernel memory to be leaked. Disable them if the kernel
> has been locked down in confidentiality mode.
>
> Suggested-by: Alexei Starovoitov <redacted>
> Signed-off-by: Matthew Garrett <redacted>
> cc: <redacted>
> cc: Chun-Yi Lee <jlee@suse.com>
> cc: Alexei Starovoitov <redacted>
> Cc: Daniel Borkmann <daniel@iogearbox.net>

Any further feedback on this?
```
