aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2021-11-05 16:23:30 -0700
committerAlexei Starovoitov <[email protected]>2021-11-07 11:54:51 -0800
commitf108662b27c96cdadfadd39f0c0d650704cd593d (patch)
tree0adf410fb0caebdb0252f340a7fd0b27ff6c56e3 /lib/test_overflow.c
parent7c7e3d31e7856a8260a254f8c71db416f7f9f5a1 (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