Skip to content
Commit 8b1836c4 authored by Jay Elliott's avatar Jay Elliott Committed by Pablo Neira Ayuso
Browse files

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: default avatarJay Elliott <jelliott@arista.com>
Acked-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent fbcd253d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment