Re: [PATCH] fib: fix vector lookup

2024-10-14 Thread David Marchand
On Fri, Sep 6, 2024 at 7:04 PM Vladimir Medvedkin wrote: > > Vector lookup uses gather instructions which loads data in 4byte chunks. > This could lead to out of bounds access at the end of the tbl24 in case > of 1 or 2 byte entries if e.g. lookup is attempted for 255.255.255.255 > in IPv4 case. >

[PATCH] fib: fix vector lookup

2024-09-06 Thread Vladimir Medvedkin
Vector lookup uses gather instructions which loads data in 4byte chunks. This could lead to out of bounds access at the end of the tbl24 in case of 1 or 2 byte entries if e.g. lookup is attempted for 255.255.255.255 in IPv4 case. This patch fixes potential out of bound access by gather instruction