From: Nir Dotan <n...@mellanox.com>
Date: Sun, 27 Jan 2019 09:26:22 +0200

> When the MC route socket is closed, mroute_clean_tables() is called to
> cleanup existing routes. Mistakenly notifiers call was put on the cleanup
> of the unresolved MC route entries cache.
> In a case where the MC socket closes before an unresolved route expires,
> the notifier call leads to a crash, caused by the driver trying to
> increment a non initialized refcount_t object [1] and then when handling
> is done, to decrement it [2]. This was detected by a test recently added in
> commit 6d4efada3b82 ("selftests: forwarding: Add multicast routing test").
> 
> Fix that by putting notifiers call on the resolved entries traversal,
> instead of on the unresolved entries traversal.
 ...
> Fixes: 088aa3eec2ce ("ip6mr: Support fib notifications")
> Signed-off-by: Nir Dotan <n...@mellanox.com>
> Reviewed-by: Ido Schimmel <ido...@mellanox.com>

Applied and queued up for -stable, thanks.

Reply via email to