mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kamal Mostafa <kamal@canonical.com>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
	kernel-team@lists.ubuntu.com
Cc: Andy Whitcroft <apw@canonical.com>, Kamal Mostafa <kamal@canonical.com>
Subject: [PATCH 3.13.y-ckt 01/19] [3.13-stable only] ipv6: fix swapped ipv4/ipv6 mtu_reduced callbacks
Date: Thu, 15 Jan 2015 14:09:37 -0800	[thread overview]
Message-ID: <1421359795-11155-2-git-send-email-kamal@canonical.com> (raw)
In-Reply-To: <1421359795-11155-1-git-send-email-kamal@canonical.com>

3.13.11-ckt14 -stable review patch.  If anyone has any objections, please let me know.

------------------

From: Andy Whitcroft <apw@canonical.com>

Fixes up 4fab907195 ("tcp: fix tcp_release_cb() to dispatch via address
family for mtu_reduced()") backport which has swapped ipv4/ipv6 callbacks
for native IPv6 and mapped IPv4 sockets.

BugLink: http://bugs.launchpad.net/bugs/1404558
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Fixes: e86507f2371b667b74e731e366fff55844e79463
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 net/ipv6/tcp_ipv6.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index d83045c..d540da2 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -1640,7 +1640,7 @@ static const struct inet_connection_sock_af_ops ipv6_specific = {
 	.compat_setsockopt = compat_ipv6_setsockopt,
 	.compat_getsockopt = compat_ipv6_getsockopt,
 #endif
-	.mtu_reduced	   = tcp_v4_mtu_reduced,
+	.mtu_reduced	   = tcp_v6_mtu_reduced,
 };
 
 #ifdef CONFIG_TCP_MD5SIG
@@ -1672,7 +1672,7 @@ static const struct inet_connection_sock_af_ops ipv6_mapped = {
 	.compat_setsockopt = compat_ipv6_setsockopt,
 	.compat_getsockopt = compat_ipv6_getsockopt,
 #endif
-	.mtu_reduced	   = tcp_v6_mtu_reduced,
+	.mtu_reduced	   = tcp_v4_mtu_reduced,
 };
 
 #ifdef CONFIG_TCP_MD5SIG
-- 
1.9.1


  reply	other threads:[~2015-01-15 22:10 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15 22:09 [3.13.y-ckt stable] Linux 3.13.11-ckt14 stable review Kamal Mostafa
2015-01-15 22:09 ` Kamal Mostafa [this message]
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 02/19] e1000e: Fix no connectivity when driver loaded with cable out Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 03/19] usb: gadget: at91_udc: move prepare clk into process context Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 04/19] [3.13-stable only] KVM: x86: Fix far-jump to non-canonical check Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 05/19] x86/tls: Validate TLS entries to protect espfix Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 06/19] userns: Check euid no fsuid when establishing an unprivileged uid mapping Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 07/19] userns: Document what the invariant required for safe unprivileged mappings Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 08/19] userns: Only allow the creator of the userns " Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 09/19] x86_64, switch_to(): Load TLS descriptors before switching DS and ES Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 10/19] isofs: Fix infinite looping over CE entries Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 11/19] batman-adv: Calculate extra tail size based on queued fragments Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 12/19] KEYS: close race between key lookup and freeing Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 13/19] isofs: Fix unchecked printing of ER records Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 14/19] x86_64, vdso: Fix the vdso address randomization algorithm Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 15/19] groups: Consolidate the setgroups permission checks Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 16/19] userns: Don't allow setgroups until a gid mapping has been setablished Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 17/19] userns: Don't allow unprivileged creation of gid mappings Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 18/19] move d_rcu from overlapping d_child to overlapping d_alias Kamal Mostafa
2015-01-15 22:09 ` [PATCH 3.13.y-ckt 19/19] deal with deadlock in d_walk() Kamal Mostafa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1421359795-11155-2-git-send-email-kamal@canonical.com \
    --to=kamal@canonical.com \
    --cc=apw@canonical.com \
    --cc=kernel-team@lists.ubuntu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®