-
- Downloads
[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>
Showing
- include/linux/filter.h 7 additions, 6 deletionsinclude/linux/filter.h
- include/net/sock.h 17 additions, 17 deletionsinclude/net/sock.h
- net/core/filter.c 4 additions, 4 deletionsnet/core/filter.c
- net/core/sock.c 9 additions, 13 deletionsnet/core/sock.c
- net/dccp/ipv6.c 1 addition, 1 deletionnet/dccp/ipv6.c
- net/decnet/dn_nsp_in.c 1 addition, 1 deletionnet/decnet/dn_nsp_in.c
- net/ipv4/tcp_ipv4.c 1 addition, 1 deletionnet/ipv4/tcp_ipv4.c
- net/ipv6/tcp_ipv6.c 2 additions, 2 deletionsnet/ipv6/tcp_ipv6.c
- net/packet/af_packet.c 18 additions, 25 deletionsnet/packet/af_packet.c
- net/sctp/input.c 1 addition, 1 deletionnet/sctp/input.c
Loading
Please register or sign in to comment