aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorShigeru Yoshida <[email protected]>2025-01-21 15:06:43 +0000
committerAlexei Starovoitov <[email protected]>2025-01-29 16:51:51 +0000
commitc7f2188d68c114095660a950b7e880a1e5a71c8f (patch)
tree868938e91e43d8dbd5e6ec0ccea897d02bd54445 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parentbpf, test_run: Fix use-after-free issue in eth_skb_pkt_type() (diff)
downloadkernel-c7f2188d68c114095660a950b7e880a1e5a71c8f.tar.gz
kernel-c7f2188d68c114095660a950b7e880a1e5a71c8f.zip
selftests/bpf: Adjust data size to have ETH_HLEN
The function bpf_test_init() now returns an error if user_size (.data_size_in) is less than ETH_HLEN, causing the tests to fail. Adjust the data size to ensure it meets the requirement of ETH_HLEN. Signed-off-by: Shigeru Yoshida <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions