[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <577A699F.9030909@oracle.com>
Date: Mon, 4 Jul 2016 15:50:23 +0200
From: Vegard Nossum <vegard.nossum@...cle.com>
To: Andy Gospodarek <gospo@...ulusnetworks.com>, davem@...emloft.net
Cc: netdev@...r.kernel.org, Dinesh Dutt <ddutt@...ulusnetworks.com>,
Scott Feldman <sfeldma@...il.com>
Subject: Re: [PATCH] net: check for NULL net_device in FIB tables
On 07/04/2016 02:47 PM, Vegard Nossum wrote:
> struct fib_nh->nh_dev can be NULL, so we should check it before calling
> __in_dev_get_rcu on it.
That should say __in_dev_get_rtnl(), obviously.
>
> Multiple places seem to want this (and check the return value), so we can
> add a convenience wrapper for this.
>
> This fixes a crash in AF_NETLINK sendmsg().
>
> Please double check that I caught all the callers that need the NULL
> guard.
>
> Fixes: 0eeb075fad73 ("net: ipv4 sysctl option to ignore routes when nexthop link is down")
> Cc: Andy Gospodarek <gospo@...ulusnetworks.com>
> Cc: Dinesh Dutt <ddutt@...ulusnetworks.com>
> Cc: Scott Feldman <sfeldma@...il.com>
> Cc: David S. Miller <davem@...emloft.net>
> Signed-off-by: Vegard Nossum <vegard.nossum@...cle.com>
I guess we could also add:
Cc: stable@...r.kernel.org
Vegard
Powered by blists - more mailing lists