diff options
author | Dirk Morris <dmorris@metaloft.com> | 2019-08-08 13:57:51 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-11-22 15:57:16 +0000 |
commit | bb0c85d99466548dc213fe18c3c040fb2ed118aa (patch) | |
tree | 5268062ac4194cc5fa026517f60a54a2b5214eb2 /CREDITS | |
parent | 7e0af4e53ee2cf9b5e4ee761bd8dc4f25a9c885a (diff) | |
download | linux-stable-bb0c85d99466548dc213fe18c3c040fb2ed118aa.tar.gz linux-stable-bb0c85d99466548dc213fe18c3c040fb2ed118aa.tar.bz2 linux-stable-bb0c85d99466548dc213fe18c3c040fb2ed118aa.zip |
netfilter: conntrack: Use consistent ct id hash calculation
commit 656c8e9cc1badbc18eefe6ba01d33ebbcae61b9a upstream.
Change ct id hash calculation to only use invariants.
Currently the ct id hash calculation is based on some fields that can
change in the lifetime on a conntrack entry in some corner cases. The
current hash uses the whole tuple which contains an hlist pointer which
will change when the conntrack is placed on the dying list resulting in
a ct id change.
This patch also removes the reply-side tuple and extension pointer from
the hash calculation so that the ct id will will not change from
initialization until confirmation.
Fixes: 3c79107631db1f7 ("netfilter: ctnetlink: don't use conntrack/expect object addresses as id")
Signed-off-by: Dirk Morris <dmorris@metaloft.com>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions