From: "Hefty, Sean" <[email protected]>
Date: Mon, 18 Jul 2011 18:29:46 +0000

> Reported by Dave Miller:
> 
> In drivers/infiniband/core/addr.c:
> 
>       neigh = dst->neighbour;
>       if (!neigh || !(neigh->nud_state & NUD_VALID)) {
>               neigh_event_send(dst->neighbour, NULL);
>               ret = -ENODATA;
>               goto put;
>       }
> 
> neigh_event_send() can be passed a NULL pointer, and it will
> OOPS when this happens.
> 
> Avoid passing in a NULL neighbour pointer to neigh_event_send().
> Add checks when resolving both ipv4 and ipv6 addresses.
> 
> Signed-off-by: Sean Hefty <[email protected]>
> ---
> I added a check to addr4_resolve() as well, but tried to keep the same overall
> logic.  There may be a cleaner way of handling this, but we should at least
> avoid an OOPS in neigh_event_send().

See net-next-2.6, I already took care of this stuff last night during my
neigh layer cleanups.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to