]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - net/ipv6/tcp_ipv6.c
tcp: md5: check md5 signature without socket lock
authorDmitry Popov <ixaphire@qrator.net>
Wed, 6 Aug 2014 22:38:22 +0000 (02:38 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Aug 2014 23:00:20 +0000 (16:00 -0700)
commit9ea88a153001ffeb3d8810917e8eea62ca9b6f25
tree5e0139567bed202fc110fbe1e78febe385f410ca
parent269f8cb2608c7bdebadeb9a2061ba42dcd6d4ff7
tcp: md5: check md5 signature without socket lock

Since a8afca032 (tcp: md5: protects md5sig_info with RCU) tcp_md5_do_lookup
doesn't require socket lock, rcu_read_lock is enough. Therefore socket lock is
no longer required for tcp_v{4,6}_inbound_md5_hash too, so we can move these
calls (wrapped with rcu_read_{,un}lock) before bh_lock_sock:
from tcp_v{4,6}_do_rcv to tcp_v{4,6}_rcv.

Signed-off-by: Dmitry Popov <ixaphire@qrator.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c