diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-12-15 05:47:03 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-15 21:12:21 -0800 |
commit | 1a35ca80c1db7279c3c0655063f6d3490e399b17 (patch) | |
tree | 3ff2f23730c2bc6ea8af20232d02dad65ae63f0a /.gitignore | |
parent | 81e839efc22361e3fa7ee36f99fd57c57d0d1871 (diff) | |
download | linux-3.10-1a35ca80c1db7279c3c0655063f6d3490e399b17.tar.gz linux-3.10-1a35ca80c1db7279c3c0655063f6d3490e399b17.tar.bz2 linux-3.10-1a35ca80c1db7279c3c0655063f6d3490e399b17.zip |
packet: dont call sleeping functions while holding rcu_read_lock()
commit 654d1f8a019dfa06d (packet: less dev_put() calls)
introduced a problem, calling potentially sleeping functions from a
rcu_read_lock() protected section.
Fix this by releasing lock before the sock_wmalloc()/memcpy_fromiovec() calls.
After skb allocation and copy from user space, we redo device
lookup and appropriate tests.
Reported-and-tested-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions