[PATCH] fib: fix vector lookup
David Marchand
david.marchand at redhat.com
Mon Oct 14 19:01:22 CEST 2024
On Fri, Sep 6, 2024 at 7:04 PM Vladimir Medvedkin
<vladimir.medvedkin at intel.com> 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.
> This patch fixes potential out of bound access by gather instruction
> allocating an extra 4 byte in the end of the tbl24.
>
> Fixes: 7dc7868b200d ("fib: add DIR24-8 dataplane algorithm")
> Fixes: c3e12e0f0354 ("fib: add dataplane algorithm for IPv6")
> Cc: stable at dpdk.org
>
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>
Applied, thanks.
--
David Marchand
More information about the dev
mailing list