]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_ct_irc: cap packet search space to 4k
authorFlorian Westphal <fw@strlen.de>
Tue, 9 Aug 2022 13:16:35 +0000 (15:16 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Aug 2022 14:51:13 +0000 (16:51 +0200)
commit40850eeeb721b99248ac19ba6091716dc5e6d0a6
tree4a6581062a073e796e8e54547b8a8a8810620cc9
parentd0d9cc73656276d5db4cf4fa59f93f3e6073eb10
netfilter: nf_ct_irc: cap packet search space to 4k

This uses a pseudo-linearization scheme with a 64k global buffer,
but BIG TCP arrival means IPv6 TCP stack can generate skbs
that exceed this size.

In practice, IRC commands are not expected to exceed 512 bytes, plus
this is interactive protocol, so we should not see large packets
in practice.

Given most IRC connections nowadays use TLS so this helper could also be
removed in the near future.

Fixes: 0925d890ea69 ("net: allow gso_max_size to exceed 65536")
Fixes: 13783a4e60e6 ("net: allow gro_max_size to exceed 65536")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_irc.c