diff options
author | 2020-08-25 16:20:01 -0700 | |
---|---|---|
committer | 2020-08-26 12:47:56 -0700 | |
commit | 6dc03dc71387e1dc65cf14efb49e5cf7062a2d46 (patch) | |
tree | 46675c899ce84ed38a4d43e93796afa7ca600468 /kernel/bpf/ringbuf.c | |
parent | bpf: verifier: Use target program's type for access verifications (diff) | |
download | wireguard-linux-6dc03dc71387e1dc65cf14efb49e5cf7062a2d46.tar.xz wireguard-linux-6dc03dc71387e1dc65cf14efb49e5cf7062a2d46.zip |
selftests/bpf: Add test for freplace program with write access
This adds a selftest that tests the behavior when a freplace target program
attempts to make a write access on a packet. The expectation is that the read or write
access is granted based on the program type of the linked program and
not itself (which is of type, for e.g., BPF_PROG_TYPE_EXT).
This test fails without the associated patch on the verifier.
Signed-off-by: Udip Pant <udippant@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200825232003.2877030-3-udippant@fb.com
Diffstat (limited to 'kernel/bpf/ringbuf.c')
0 files changed, 0 insertions, 0 deletions