From: Florian Westphal <fw@strlen.de>
To: <netfilter-devel@vger.kernel.org>
Cc: Florian Westphal <fw@strlen.de>
Subject: [PATCH nf 0/3] netfilter: conntrack: switch to siphash
Date: Thu, 26 Aug 2021 15:54:18 +0200 [thread overview]
Message-ID: <20210826135422.31063-1-fw@strlen.de> (raw)
Two recent commits switched inet rt and nexthop exception
hashes from jhash to siphash.
If those two spots are problematic then conntrack is affected
as well, so switch voer to siphash too.
While at it, add a hard upper limit on chain lengths and reject
insertion if this is hit.
Florian Westphal (3):
netfilter: conntrack: sanitize table size default settings
netfilter: conntrack: switch to siphash
netfilter: conntrack: refuse insertion if chain has grown too large
.../networking/nf_conntrack-sysctl.rst | 13 ++-
include/linux/netfilter/nf_conntrack_common.h | 1 +
.../linux/netfilter/nfnetlink_conntrack.h | 1 +
net/netfilter/nf_conntrack_core.c | 103 ++++++++++++------
net/netfilter/nf_conntrack_expect.c | 25 +++--
net/netfilter/nf_conntrack_netlink.c | 4 +-
net/netfilter/nf_conntrack_standalone.c | 4 +-
net/netfilter/nf_nat_core.c | 18 ++-
8 files changed, 114 insertions(+), 55 deletions(-)
--
2.31.1
next reply other threads:[~2021-08-26 13:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-26 13:54 Florian Westphal [this message]
2021-08-26 13:54 ` [PATCH nf 1/3] netfilter: conntrack: sanitize table size default settings Florian Westphal
2021-08-26 13:54 ` [PATCH nf 2/3] netfilter: conntrack: switch to siphash Florian Westphal
2021-08-26 13:54 ` [PATCH nf 3/3] netfilter: conntrack: refuse insertion if chain has grown too large Florian Westphal
2021-08-26 13:54 ` [PATCH nf 3/3] netfilter: " Florian Westphal
2021-08-30 9:54 ` [PATCH nf 0/3] netfilter: conntrack: switch to siphash Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210826135422.31063-1-fw@strlen.de \
--to=fw@strlen.de \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).