diff options
author | Kal Conley <[email protected]> | 2023-03-08 18:40:13 +0100 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2023-03-16 16:02:55 +0100 |
commit | c7df4813b149362248d6ef7be41a311e27bf75fe (patch) | |
tree | f0103937861f5164aaf40267913e280f7d222292 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | a33a6eaa19d3af261e8708bfc8ba62020703117f (diff) |
xsk: Add missing overflow check in xdp_umem_reg
The number of chunks can overflow u32. Make sure to return -EINVAL on
overflow. Also remove a redundant u32 cast assigning umem->npgs.
Fixes: bbff2f321a86 ("xsk: new descriptor addressing scheme")
Signed-off-by: Kal Conley <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Magnus Karlsson <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions