Re: [PATCH resend] fib:fix BUG_ON in fib_nl_newrule when add newfib rule

From: David Miller
Date: Wed Sep 21 2011 - 15:17:14 EST


From: Wanlong Gao <wanlong.gao@xxxxxxxxx>
Date: Mon, 12 Sep 2011 09:36:05 +0800

> From: Gao feng <gaofeng@xxxxxxxxxxxxxx>
>
> add new fib rule can cause BUG_ON happen
> the reproduce shell is
> ip rule add pref 38
> ip rule add pref 38
> ip rule add to 192.168.3.0/24 goto 38
> ip rule del pref 38
> ip rule add to 192.168.3.0/24 goto 38
> ip rule add pref 38
>
> then the BUG_ON will happen
> del BUG_ON and use (ctarget == NULL) identify whether this rule is unresolved
>
> Signed-off-by: Gao feng <gaofeng@xxxxxxxxxxxxxx>
> Signed-off-by: Eric Dumazet <eric.dumazet@xxxxxxxxx>

Applied, thanks a lot.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/