]> git.baikalelectronics.ru Git - kernel.git/commit
[INET]: local port range robustness
authorStephen Hemminger <shemminger@linux-foundation.org>
Thu, 11 Oct 2007 00:30:46 +0000 (17:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2007 00:30:46 +0000 (17:30 -0700)
commit60d16ba946210f0039b9639f68a2d8d052a9f9e7
tree2c9e372601ba794894833b0618bc531a9f5d57c4
parent9efc6803a3bbbe8a2a715ff5f5bbfac942766f42
[INET]: local port range robustness

Expansion of original idea from Denis V. Lunev <den@openvz.org>

Add robustness and locking to the local_port_range sysctl.
1. Enforce that low < high when setting.
2. Use seqlock to ensure atomic update.

The locking might seem like overkill, but there are
cases where sysadmin might want to change value in the
middle of a DoS attack.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/core/cma.c
include/net/ip.h
net/ipv4/inet_connection_sock.c
net/ipv4/inet_hashtables.c
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp_ipv4.c
net/ipv4/udp.c
net/ipv6/inet6_hashtables.c
net/sctp/socket.c
security/selinux/hooks.c