public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Gardner <tim.gardner@canonical.com>
To: Wolfgang Walter <wolfgang.walter@stwm.de>
Cc: Greg KH <greg@kroah.com>, "gregkh@suse.de" <gregkh@suse.de>,
	linux-kernel@vger.kernel.org,
	Alexey Dobriyan <adobriyan@gmail.com>,
	David Miller <davem@davemloft.net>,
	netdev@vger.kernel.org
Subject: Re: linux 2.6.32.46 crashes
Date: Tue, 30 Aug 2011 14:56:49 -0600	[thread overview]
Message-ID: <4E5D4E91.3070503@canonical.com> (raw)
In-Reply-To: <201108302231.47530.wolfgang.walter@stwm.de>

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

On 08/30/2011 02:31 PM, Wolfgang Walter wrote:
> Hello,
>
> I upgraded several machines from 2.6.32.43 to 2.6.32.46 and
> they all crashed when the kernel boots.
>
> I bisected it to the following commit:
>
>
> 35ed3d0fb62804090a3f21a7ce84c538a6ff852f is the first bad commit
> commit 35ed3d0fb62804090a3f21a7ce84c538a6ff852f
> Author: Alexey Dobriyan<adobriyan@gmail.com>
> Date:   Tue Feb 16 09:05:04 2010 +0000
>
>      tunnels: fix netns vs proto registration ordering
>
>      commit d5aa407f59f5b83d2c50ec88f5bf56d40f1f8978 upstream.
>
>      Same stuff as in ip_gre patch: receive hook can be called before netns
>      setup is done, oopsing in net_generic().
>
>      Signed-off-by: Alexey Dobriyan<adobriyan@gmail.com>
>      Signed-off-by: David S. Miller<davem@davemloft.net>
>      Signed-off-by: Greg Kroah-Hartman<gregkh@suse.de>
>
> :040000 040000 6338c45b1372e7e3c5a5ef466dc365cc47a2e152 cde6b92bab403d860cca90e8232cb9c03090fc7e M      net
>
>
> Reverting it on top of 2.6.32.46 fixes the problem for me.
>

<snip>

Wolfgang - see if this patch fixes your problem.

rtg

-- 
Tim Gardner tim.gardner@canonical.com

[-- Attachment #2: 0001-tunnels-fix-netns-vs-proto-registration-ordering-fix.patch --]
[-- Type: text/x-patch, Size: 1261 bytes --]

>From e52d45fe5518e8447b54b440f41d318db146a19e Mon Sep 17 00:00:00 2001
From: Andy Whitcroft <apw@canonical.com>
Date: Tue, 30 Aug 2011 13:44:23 +0100
Subject: [PATCH] tunnels: fix netns vs proto registration ordering -- fix stable backport

BugLink: http://bugs.launchpad.net/bugs/837421

As per Stratos Psomadakis the backport of the upstream commit below is
flawed and introduces crashes when using this ipv6 tunnel type:

  commit a14a3f90745c4831a1437528706b38daa1db4885
  Author: Alexey Dobriyan <adobriyan@gmail.com>
  Date:   Tue Feb 16 09:05:04 2010 +0000

    tunnels: fix netns vs proto registration ordering

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
---
 net/ipv6/ip6_tunnel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 7fb3e02..53e0d51 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -1466,7 +1466,7 @@ static int __init ip6_tunnel_init(void)
 {
 	int  err;
 
-	err = register_pernet_device(&ip6_tnl_net_ops);
+	err = register_pernet_gen_device(&ip6_tnl_net_id, &ip6_tnl_net_ops);
 	if (err < 0)
 		goto out_pernet;
 
-- 
1.7.0.4


  reply	other threads:[~2011-08-30 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 20:31 linux 2.6.32.46 crashes Wolfgang Walter
2011-08-30 20:56 ` Tim Gardner [this message]
2011-08-30 21:45   ` Wolfgang Walter

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=4E5D4E91.3070503@canonical.com \
    --to=tim.gardner@canonical.com \
    --cc=adobriyan@gmail.com \
    --cc=davem@davemloft.net \
    --cc=greg@kroah.com \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=wolfgang.walter@stwm.de \
    /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