commit | fda9ef5d679b07c9d9097aaf6ef7f069d794a8f9 | [log] [tgz] |
---|---|---|
author | Dmitry Mishin <dim@openvz.org> | Thu Aug 31 15:28:39 2006 -0700 |
committer | David S. Miller <davem@sunset.davemloft.net> | Fri Sep 22 15:18:47 2006 -0700 |
tree | 6a265dc2038bc5568c5a499e6c8d4733650ed3f7 | |
parent | dc435e6dac1439340eaeceef84022c4e4749796d [diff] |
[NET]: Fix sk->sk_filter field access Function sk_filter() is called from tcp_v{4,6}_rcv() functions with arg needlock = 0, while socket is not locked at that moment. In order to avoid this and similar issues in the future, use rcu for sk->sk_filter field read protection. Signed-off-by: Dmitry Mishin <dim@openvz.org> Signed-off-by: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Signed-off-by: Kirill Korotaev <dev@openvz.org>