Re: general protection fault in fib_dump_info (2)

From: David Ahern
Date: Fri Aug 21 2020 - 12:05:44 EST


On 8/21/20 10:00 AM, Nikolay Aleksandrov wrote:
>
> This seems like a much older bug to me, the code allows to pass 0 groups
> and
> thus we end up without any nh_grp_entry pointers. I reproduced it with a
> modified iproute2 that sends an empty NHA_GROUP and then just uses the new
> nexthop in any way (e.g. add a route with it). This is the same bug as the
> earlier report for: "general protection fault in fib_check_nexthop"

hmmm.... empty NHA_GROUP should not be allowed.

>
> I have a patch but I'll be able to send it tomorrow.
>

thanks.