Re: [PATCH] net: fix buffer overflow in af_xdp_umem_create()

2025-06-02 Thread Jason Wang
On Mon, Jun 2, 2025 at 4:57 PM Anastasia Belova wrote: > > s->pool has n_descs elements so maximum i should be > n_descs - 1. Fix the upper bound. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes: cb039ef3d9 ("net: add initial support for AF_XDP network backend") > S

Re: [PATCH] net: fix buffer overflow in af_xdp_umem_create()

2025-06-02 Thread Ilya Maximets
On 6/2/25 10:57 AM, Anastasia Belova wrote: > s->pool has n_descs elements so maximum i should be > n_descs - 1. Fix the upper bound. > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Fixes: cb039ef3d9 ("net: add initial support for AF_XDP network backend") > Signed-off-by

[PATCH] net: fix buffer overflow in af_xdp_umem_create()

2025-06-02 Thread Anastasia Belova
s->pool has n_descs elements so maximum i should be n_descs - 1. Fix the upper bound. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: cb039ef3d9 ("net: add initial support for AF_XDP network backend") Signed-off-by: Anastasia Belova --- net/af-xdp.c | 2 +- 1 file chang