diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2021-05-14 21:07:26 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-05-21 00:48:38 +0300 |
commit | 704e2beba23c45eaa056b1c03b5e1fb221e03f80 (patch) | |
tree | ea97b769abc7cc1c79e625421809834528689e47 /kernel | |
parent | 8f1634b82189e715b0f82f16ce54fab43cfedd8a (diff) | |
download | linux-704e2beba23c45eaa056b1c03b5e1fb221e03f80.tar.xz |
selftests/bpf: Test ringbuf mmap read-only and read-write restrictions
Extend ringbuf selftest to validate read/write and read-only restrictions on
memory mapping consumer/producer/data pages. Ensure no "escalations" from
PROT_READ to PROT_WRITE/PROT_EXEC is allowed. And test that mremap() fails to
expand mmap()'ed area.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20210514180726.843157-1-andrii@kernel.org
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions