diff options
| author | David Vernet <[email protected]> | 2022-10-12 23:20:15 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-10-13 15:27:38 +0000 |
| commit | 6e44b9f375a3135fc4960d76a9ea6720625cad73 (patch) | |
| tree | bc4231cfacdb6fb9493d576ea718775f325086a0 /net/lapb/lapb_in.c | |
| parent | bpf: Allow bpf_user_ringbuf_drain() callbacks to return 1 (diff) | |
| download | kernel-6e44b9f375a3135fc4960d76a9ea6720625cad73.tar.gz kernel-6e44b9f375a3135fc4960d76a9ea6720625cad73.zip | |
selftests/bpf: Make bpf_user_ringbuf_drain() selftest callback return 1
In commit 1bfe26fb0827 ("bpf: Add verifier support for custom callback
return range"), the verifier was updated to require callbacks to BPF
helpers to explicitly specify the range of values that can be returned.
bpf_user_ringbuf_drain() was merged after this in commit 205715673844
("bpf: Add bpf_user_ringbuf_drain() helper"), and this change in default
behavior was missed. This patch updates the BPF_MAP_TYPE_USER_RINGBUF
selftests to also return 1 from a bpf_user_ringbuf_drain() callback so
as to properly test this going forward.
Signed-off-by: David Vernet <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions
