diff options
author | Song Liu <[email protected]> | 2021-11-05 16:23:30 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2021-11-07 11:54:51 -0800 |
commit | f108662b27c96cdadfadd39f0c0d650704cd593d (patch) | |
tree | 0adf410fb0caebdb0252f340a7fd0b27ff6c56e3 /lib/test_overflow.c | |
parent | 7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 (diff) |
selftests/bpf: Add tests for bpf_find_vma
Add tests for bpf_find_vma in perf_event program and kprobe program. The
perf_event program is triggered from NMI context, so the second call of
bpf_find_vma() will return -EBUSY (irq_work busy). The kprobe program,
on the other hand, does not have this constraint.
Also add tests for illegal writes to task or vma from the callback
function. The verifier should reject both cases.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions