Skip to content
/ linux Public

Commit 89f5077

Browse files
yuhamagSasha Levin
authored andcommitted
netfilter: nf_conntrack: Add allow_clash to generic protocol handler
[ Upstream commit 8a49fc8 ] The upstream commit, 71d8c47 ("netfilter: conntrack: introduce clash resolution on insertion race"), sets allow_clash=true in the UDP/UDPLITE protocol handler but does not set it in the generic protocol handler. As a result, packets composed of connectionless protocols at each layer, such as UDP over IP-in-IP, still drop packets due to conflicts during conntrack insertion. To resolve this, this patch sets allow_clash in the nf_conntrack_l4proto_generic. Signed-off-by: Yuto Hamaguchi <Hamaguchi.Yuto@da.MitsubishiElectric.co.jp> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 99c75e5 commit 89f5077

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/netfilter/nf_conntrack_proto_generic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ void nf_conntrack_generic_init_net(struct net *net)
6767
const struct nf_conntrack_l4proto nf_conntrack_l4proto_generic =
6868
{
6969
.l4proto = 255,
70+
.allow_clash = true,
7071
#ifdef CONFIG_NF_CONNTRACK_TIMEOUT
7172
.ctnl_timeout = {
7273
.nlattr_to_obj = generic_timeout_nlattr_to_obj,

0 commit comments

Comments
 (0)