]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ebtables: make broute table work again
authorFlorian Westphal <fw@strlen.de>
Tue, 11 Jan 2011 22:55:51 +0000 (23:55 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 11 Jan 2011 22:55:51 +0000 (23:55 +0100)
commitd4776fd6d7730b1d5bbf8207df962d3f04e69707
tree204c3b071e832cf17cefaaab309966f73da3808b
parent8be3a14049435d58c90875690f5e50fed6c44e1e
netfilter: ebtables: make broute table work again

broute table init hook sets up the "br_should_route_hook" pointer,
which then gets called from br_input.

commit 5942ee4b8dc755356b25a3a950ca01e8227b319a
(bridge: add proper RCU annotation to should_route_hook)
introduced a typedef, and then changed this to:

br_should_route_hook_t *rhook;
[..]
rhook = rcu_dereference(br_should_route_hook);
if (*rhook(skb))

problem is that "br_should_route_hook" contains the address of the function,
so calling *rhook() results in kernel panic.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/if_bridge.h