]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tcp: protect sysctl_tcp_cookie_size reads
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 7 Dec 2010 12:20:47 +0000 (12:20 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:26 +0000 (13:58 -0800)
commit2efb9908d6ac415d69b2688b684799c51eb844fd
tree8925144283efebceaa48bee5cf958c58d353d789
parent90548909f7ff41934b9f719e9331695695cb3988
tcp: protect sysctl_tcp_cookie_size reads

[ Upstream commit f19872575ff7819a3723154657a497d9bca66b33 ]

Make sure sysctl_tcp_cookie_size is read once in
tcp_cookie_size_check(), or we might return an illegal value to caller
if sysctl_tcp_cookie_size is changed by another cpu.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Cc: William Allen Simpson <william.allen.simpson@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/tcp_output.c