From: WANG Cong Date: Mon, 15 Sep 2014 21:21:50 +0000 (-0700) Subject: net_sched: fix suspicious RCU usage in cls_bpf_classify() X-Git-Tag: v3.18-rc1~52^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=80dcbd12fb30932bb001b913ffe36843e2a1fe3a;p=platform%2Fkernel%2Flinux-exynos.git net_sched: fix suspicious RCU usage in cls_bpf_classify() Fixes: commit 1f947bf151e90ec0baad2948 ("net: sched: rcu'ify cls_bpf") Cc: John Fastabend Signed-off-by: Cong Wang Acked-by: John Fastabend Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_bpf.c b/net/sched/cls_bpf.c index 6a7386e..4e3f5bf 100644 --- a/net/sched/cls_bpf.c +++ b/net/sched/cls_bpf.c @@ -52,7 +52,7 @@ static const struct nla_policy bpf_policy[TCA_BPF_MAX + 1] = { static int cls_bpf_classify(struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res) { - struct cls_bpf_head *head = rcu_dereference(tp->root); + struct cls_bpf_head *head = rcu_dereference_bh(tp->root); struct cls_bpf_prog *prog; int ret;