From: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
To: Valdis.Kletnieks@vt.edu
Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org,
yoshfuji@linux-ipv6.org, davem@redhat.com
Subject: Re: 2.6.0-test9: Kernel OOPS in /sbin/nameif
Date: Thu, 06 Nov 2003 02:32:37 +0900 (JST) [thread overview]
Message-ID: <20031106.023237.110009516.yoshfuji@linux-ipv6.org> (raw)
In-Reply-To: <200311051703.hA5H38nQ007123@turing-police.cc.vt.edu>
In article <200311051703.hA5H38nQ007123@turing-police.cc.vt.edu> (at Wed, 05 Nov 2003 12:03:08 -0500), Valdis.Kletnieks@vt.edu says:
> Basic summary - when /sbin/nameif goes to rename an interface, things
> go totally pear-shaped. nameif itself croaks, and apparently leaves
> data structures corrupted - on a subsequent 'ifup lo' or 'shutdown -r'
> the system locks up solid.
>
> Unable to handle kernel NULL pointer dereference at virtual address 000000d8
> printing eip:
> c033eb32
:
> EIP is at addrconf_sysctl_unregister+0x7/0x3a
:
> Call Trace:
> [<c033cdda>] addrconf_notify+0xc4/0xfb
> [<c012673d>] notifier_call_chain+0x1c/0x37
:
Please try this.
===== net/ipv6/addrconf.c 1.74 vs edited =====
--- 1.74/net/ipv6/addrconf.c Tue Oct 28 20:10:47 2003
+++ edited/net/ipv6/addrconf.c Thu Nov 6 02:30:03 2003
@@ -1877,10 +1877,12 @@
break;
case NETDEV_CHANGENAME:
#ifdef CONFIG_SYSCTL
- addrconf_sysctl_unregister(&idev->cnf);
- neigh_sysctl_unregister(idev->nd_parms);
- neigh_sysctl_register(dev, idev->nd_parms, NET_IPV6, NET_IPV6_NEIGH, "ipv6");
- addrconf_sysctl_register(idev, &idev->cnf);
+ if (idev) {
+ addrconf_sysctl_unregister(&idev->cnf);
+ neigh_sysctl_unregister(idev->nd_parms);
+ neigh_sysctl_register(dev, idev->nd_parms, NET_IPV6, NET_IPV6_NEIGH, "ipv6");
+ addrconf_sysctl_register(idev, &idev->cnf);
+ }
#endif
break;
};
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
next prev parent reply other threads:[~2003-11-05 17:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-05 17:03 Valdis.Kletnieks
2003-11-05 17:32 ` YOSHIFUJI Hideaki / 吉藤英明 [this message]
2003-11-05 19:08 ` Valdis.Kletnieks
2003-11-05 19:29 ` David S. Miller
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=20031106.023237.110009516.yoshfuji@linux-ipv6.org \
--to=yoshfuji@linux-ipv6.org \
--cc=Valdis.Kletnieks@vt.edu \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@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®