selftest/bpf: Check invalid length in test_xdp_update_frags
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 9 Feb 2022 00:35:12 +0000 (01:35 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 11 Feb 2022 01:48:30 +0000 (17:48 -0800)
commita5a358abbc392c7ad7b12a23c99e8602460b5804
treed5171065058f9c555775fadd2f29835532daad57
parent85fbd23303bcdc474ee2c76190ee59fa31e8f5f2
selftest/bpf: Check invalid length in test_xdp_update_frags

Update test_xdp_update_frags adding a test for a buffer size
set to (MAX_SKB_FRAGS + 2) * PAGE_SIZE. The kernel is supposed
to return -ENOMEM.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/3e4afa0ee4976854b2f0296998fe6754a80b62e5.1644366736.git.lorenzo@kernel.org
tools/testing/selftests/bpf/prog_tests/xdp_adjust_frags.c