[PATCH] fib: fix adding default route overwriting entire table

Thomas Monjalon thomas at monjalon.net
Tue Oct 17 15:26:09 CEST 2023


02/10/2023 17:11, Vladimir Medvedkin:
> When FIB contains any route covering last ip address
> (255.255.255.255), upon adding a new default route
> the entire fib table will be overwritten with corresponding
> default route next hop.
> 
> Previous fix added check for ledge against 0 for case
> if default route is added as a first route, however
> this check was also erroneously triggered in case when
> ledge was wrapped around the address space
> (this would happen if FIB contains any route covering
> last possible address - 255.255.255.255).
> 
> This fix prevents wrap around from happening.
> 
> Fixes: 880bc2b5f3bd ("fib: fix adding default route")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>

Applied, thanks.




More information about the stable mailing list