[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100927.215147.48498294.davem@davemloft.net>
Date: Mon, 27 Sep 2010 21:51:47 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, paulmck@...ux.vnet.ibm.com
Subject: Re: [PATCH net-next-2.6] fib: use atomic_inc_not_zero() in
fib_rules_lookup
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 27 Sep 2010 16:18:27 +0200
> It seems we dont use appropriate refcount increment in an
> rcu_read_lock() protected section.
>
> fib_rule_get() might increment a null refcount and bad things could
> happen.
>
> While fib_nl_delrule() respects an rcu grace period before calling
> fib_rule_put(), fib_rules_cleanup_ops() calls fib_rule_put() without a
> grace period.
>
> Note : after this patch, we might avoid the synchronize_rcu() call done
> in fib_nl_delrule()
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists