Re: [PATCH v2 bpf 2/2] selftests/bpf: add test for freplace program with write access

From: Yonghong Song
Date: Fri Aug 21 2020 - 02:19:40 EST




On 8/20/20 5:28 PM, Udip Pant wrote:
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@xxxxxx>
---

Acked-by: Yonghong Song <yhs@xxxxxx>