From: Greg Kroah-Hartman Date: Thu, 31 Jan 2019 15:04:47 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v4.20.7~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6052ad5a8c960714d1ca3435c3b0fc510b832e6b;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: fix-net-ipv4-do-not-handle-duplicate-fragments-as-overlapping.patch --- diff --git a/queue-4.19/fix-net-ipv4-do-not-handle-duplicate-fragments-as-overlapping.patch b/queue-4.19/fix-net-ipv4-do-not-handle-duplicate-fragments-as-overlapping.patch new file mode 100644 index 00000000000..16c85999124 --- /dev/null +++ b/queue-4.19/fix-net-ipv4-do-not-handle-duplicate-fragments-as-overlapping.patch @@ -0,0 +1,43 @@ +From foo@baz Thu Jan 31 15:59:51 CET 2019 +Date: Thu, 31 Jan 2019 15:59:51 +0100 +To: Greg KH +From: Greg Kroah-Hartman +Subject: Fix "net: ipv4: do not handle duplicate fragments as overlapping" + +From: Greg Kroah-Hartman + +ade446403bfb ("net: ipv4: do not handle duplicate fragments as +overlapping") was backported to many stable trees, but it had a problem +that was "accidentally" fixed by the upstream commit 0ff89efb5246 ("ip: +fail fast on IP defrag errors") + +This is the fixup for that problem as we do not want the larger patch in +the older stable trees. + +Fixes: ade446403bfb ("net: ipv4: do not handle duplicate fragments as overlapping") +Reported-by: Ivan Babrou +Reported-by: Eric Dumazet +Signed-off-by: Greg Kroah-Hartman + +--- + net/ipv4/ip_fragment.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/net/ipv4/ip_fragment.c ++++ b/net/ipv4/ip_fragment.c +@@ -425,6 +425,7 @@ static int ip_frag_queue(struct ipq *qp, + * fragment. + */ + ++ err = -EINVAL; + /* Find out where to put this fragment. */ + prev_tail = qp->q.fragments_tail; + if (!prev_tail) +@@ -501,7 +502,6 @@ static int ip_frag_queue(struct ipq *qp, + + discard_qp: + inet_frag_kill(&qp->q); +- err = -EINVAL; + __IP_INC_STATS(net, IPSTATS_MIB_REASM_OVERLAPS); + err: + kfree_skb(skb);