summaryrefslogtreecommitdiff
path: root/include/linux/extable.h
diff options
context:
space:
mode:
authorCambda Zhu <cambda@linux.alibaba.com>2020-04-24 16:06:16 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-11 11:45:27 +0200
commit457202c473b933dfcee9ea8f45fff18e9f8d448f (patch)
tree7048898d8125d5c87f493788008c5d6a0148c2bd /include/linux/extable.h
parent7a915cb7956153f8a6e2f5d6f03f5b10fbdeed25 (diff)
net: Replace the limit of TCP_LINGER2 with TCP_FIN_TIMEOUT_MAX
[ Upstream commit f0628c524fd188c3f9418e12478dfdfadacba815 ] This patch changes the behavior of TCP_LINGER2 about its limit. The sysctl_tcp_fin_timeout used to be the limit of TCP_LINGER2 but now it's only the default value. A new macro named TCP_FIN_TIMEOUT_MAX is added as the limit of TCP_LINGER2, which is 2 minutes. Since TCP_LINGER2 used sysctl_tcp_fin_timeout as the default value and the limit in the past, the system administrator cannot set the default value for most of sockets and let some sockets have a greater timeout. It might be a mistake that let the sysctl to be the limit of the TCP_LINGER2. Maybe we can add a new sysctl to set the max of TCP_LINGER2, but FIN-WAIT-2 timeout is usually no need to be too long and 2 minutes are legal considering TCP specs. Changes in v3: - Remove the new socket option and change the TCP_LINGER2 behavior so that the timeout can be set to value between sysctl_tcp_fin_timeout and 2 minutes. Changes in v2: - Add int overflow check for the new socket option. Changes in v1: - Add a new socket option to set timeout greater than sysctl_tcp_fin_timeout. Signed-off-by: Cambda Zhu <cambda@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net> Stable-dep-of: 9df5335ca974 ("tcp: annotate data-races around tp->linger2") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/extable.h')
0 files changed, 0 insertions, 0 deletions