]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.10.16/net-dccp-do-not-report-icmp-redirects-to-user-space.patch
Linux 5.1.6
[thirdparty/kernel/stable-queue.git] / releases / 3.10.16 / net-dccp-do-not-report-icmp-redirects-to-user-space.patch
1 From a8f5959cfce4d7e8fc5b8715f5f82829879d0335 Mon Sep 17 00:00:00 2001
2 From: Duan Jiong <duanj.fnst@cn.fujitsu.com>
3 Date: Wed, 18 Sep 2013 20:03:27 +0800
4 Subject: net:dccp: do not report ICMP redirects to user space
5
6 From: Duan Jiong <duanj.fnst@cn.fujitsu.com>
7
8 [ Upstream commit bd784a140712fd06674f2240eecfc4ccae421129 ]
9
10 DCCP shouldn't be setting sk_err on redirects as it
11 isn't an error condition. it should be doing exactly
12 what tcp is doing and leaving the error handler without
13 touching the socket.
14
15 Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
16 Signed-off-by: David S. Miller <davem@davemloft.net>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 ---
19 net/dccp/ipv6.c | 1 +
20 1 file changed, 1 insertion(+)
21
22 --- a/net/dccp/ipv6.c
23 +++ b/net/dccp/ipv6.c
24 @@ -135,6 +135,7 @@ static void dccp_v6_err(struct sk_buff *
25
26 if (dst)
27 dst->ops->redirect(dst, sk, skb);
28 + goto out;
29 }
30
31 if (type == ICMPV6_PKT_TOOBIG) {