Skip to content
GitLab
  • Explore
  • Sign in
  • Register
  • xcap
  • xcap-capability-linux
  • Repository
  • xcap-capability-linux
  • include
  • linux
  • if_bridge.h
Find file Blame History Permalink
  • Florian Westphal's avatar
    netfilter: ebtables: make broute table work again · 2f46e079
    Florian Westphal authored Jan 11, 2011
    broute table init hook sets up the "br_should_route_hook" pointer,
    which then gets called from br_input.
    
    commit a386f990
    
    
    (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: default avatarFlorian Westphal <fw@strlen.de>
    Acked-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
    Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
    2f46e079