On Tue, Oct 31, 2023 at 10:51 AM Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > > The "cpool_populated" variable is the number of elements in the cpool[] > array that have been populated. It is incremented in > tcp_sigpool_alloc_ahash() every time we populate a new element. > Unpopulated elements are NULL but if we have populated every element then > this code will read one element beyond the end of the array. > > Fixes: 8c73b26315aa ("net/tcp: Prepare tcp_md5sig_pool for TCP-AO") > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > From static analysis and review. > Reviewed-by: Eric Dumazet <edumazet@xxxxxxxxxx>