bpf: sockmap add missing rcu_read_(un)lock in smap_data_ready
authorJohn Fastabend <john.fastabend@gmail.com>
Mon, 28 Aug 2017 14:10:45 +0000 (07:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 18:13:21 +0000 (11:13 -0700)
commitd26e597d87635d90128fafb3f6bb0a14d972d952
treec3da1ee7debd158cbd33beaea31330c807a7c2fd
parent2f857d04601a1bb56958b95a9f180bce0e91e5e6
bpf: sockmap add missing rcu_read_(un)lock in smap_data_ready

References to psock must be done inside RCU critical section.

Fixes: 174a79ff9515 ("bpf: sockmap with sk redirect support")
Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/sockmap.c