aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorKal Conley <[email protected]>2023-03-08 18:40:13 +0100
committerDaniel Borkmann <[email protected]>2023-03-16 16:02:55 +0100
commitc7df4813b149362248d6ef7be41a311e27bf75fe (patch)
treef0103937861f5164aaf40267913e280f7d222292 /lib/mpi/mpi-mod.c
parenta33a6eaa19d3af261e8708bfc8ba62020703117f (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 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions