OSDN Git Service

Revert "netfilter: conntrack: fix bug in for_each_sctp_chunk"
authorFlorian Westphal <fw@strlen.de>
Thu, 26 Jan 2023 01:35:21 +0000 (02:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 31 Jan 2023 13:02:48 +0000 (14:02 +0100)
commitbd0e06f0def75ba26572a94e5350324474a55562
treef32e0ac561c3280b84dbe52581fac886fb815fe8
parent2b272bb558f1d3a5aa95ed8a82253786fd1a48ba
Revert "netfilter: conntrack: fix bug in for_each_sctp_chunk"

There is no bug.  If sch->length == 0, this would result in an infinite
loop, but first caller, do_basic_checks(), errors out in this case.

After this change, packets with bogus zero-length chunks are no longer
detected as invalid, so revert & add comment wrt. 0 length check.

Fixes: 98ee00774525 ("netfilter: conntrack: fix bug in for_each_sctp_chunk")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_sctp.c