diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-04-10 13:26:13 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-04-14 21:28:57 +0200 |
commit | 642c1654702731ab42a3be771bebbd6ef938f0dc (patch) | |
tree | 766a7490a2cdb507523f1369f73ec902fb699e85 /tools/bpf | |
parent | 1f6cb19be2e231fe092f40decb71f066eba090d7 (diff) | |
download | linux-642c1654702731ab42a3be771bebbd6ef938f0dc.tar.gz linux-642c1654702731ab42a3be771bebbd6ef938f0dc.tar.bz2 linux-642c1654702731ab42a3be771bebbd6ef938f0dc.zip |
selftests/bpf: Validate frozen map contents stays frozen
Test that frozen and mmap()'ed BPF map can't be mprotect()'ed as writable or
executable memory. Also validate that "downgrading" from writable to read-only
doesn't screw up internal writable count accounting for the purposes of map
freezing.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200410202613.3679837-2-andriin@fb.com
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions