summaryrefslogtreecommitdiffstats
path: root/net/rds/cong.c
diff options
context:
space:
mode:
authorJay Elliott <jelliott@arista.com>2017-11-16 00:01:13 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2017-11-28 01:17:04 +0100
commit8b1836c4b64386e9bc580438cae386ed31a43ab9 (patch)
tree0d4f9364bc5ef3f6fbf1ed9ac464262b632f9ffd /net/rds/cong.c
parentnetfilter: conntrack: lower timeout to RETRANS seconds if window is 0 (diff)
downloadlinux-8b1836c4b64386e9bc580438cae386ed31a43ab9.tar.xz
linux-8b1836c4b64386e9bc580438cae386ed31a43ab9.zip
netfilter: conntrack: clamp timeouts to INT_MAX
When the conntracking code multiplies a timeout by HZ, it can overflow from positive to negative; this causes it to instantly expire. To protect against this the multiplication is done in 64-bit so we can prevent it from exceeding INT_MAX. Signed-off-by: Jay Elliott <jelliott@arista.com> Acked-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/rds/cong.c')
0 files changed, 0 insertions, 0 deletions