]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
UBUNTU: SAUCE: (efi-lockdown) bpf: Restrict kernel image access functions when the...
authorLee, Chun-Yi <jlee@suse.com>
Wed, 23 Nov 2016 13:52:16 +0000 (13:52 +0000)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:34:05 +0000 (07:34 -0500)
commit75d8d17e3575830e95225de69c3ee0cf66a85447
tree0889d28d8a68197efbc4a4848fbc813bf91645c1
parent3dfd7658cf23ed4d07eea9cee3e35f6cc556677a
UBUNTU: SAUCE: (efi-lockdown) bpf: Restrict kernel image access functions when the kernel is locked down

There are some bpf functions can be used to read kernel memory:
bpf_probe_read, bpf_probe_write_user and bpf_trace_printk.  These allow
private keys in kernel memory (e.g. the hibernation image signing key) to
be read by an eBPF program.  Prohibit those functions when the kernel is
locked down.

Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: David Howells <dhowells@redhat.com>
(cherry picked from commit 59e44bdc67df6cdcd4627f2b5b0b4d7e735c23fc
 git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/trace/bpf_trace.c