You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selftests/bpf: Add tests for arena fault reporting
Add selftests for testing the reporting of arena page faults through BPF
streams. Two new bpf programs are added that read and write to an
unmapped arena address and the fault reporting is verified in the
userspace through streams.
The bpf programs need to access the user_vm_start in struct bpf_arena,
this is done by casting &arena to struct bpf_arena *, but barrier_var()
is used on this ptr before accessing ptr->user_vm_start; to stop GCC
from issuing an out-of-bound access due to the cast from smaller map
struct to larger "struct bpf_arena"
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
0 commit comments