From: Andreas Klauer <Andreas.Klauer@metamorpher.de>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: Hagen Paul Pfeifer <hagen@jauu.net>,
netdev@vger.kernel.org, Octavian Purdila <opurdila@ixiacom.com>
Subject: Re: 2.6.34 + IPv6: Oops?
Date: Mon, 21 Jun 2010 22:04:13 +0200 [thread overview]
Message-ID: <20100621200413.GA2280@EIS> (raw)
In-Reply-To: <20100621102508.2075d677@nehalam>
On Mon, Jun 21, 2010 at 10:25:08AM -0700, Stephen Hemminger wrote:
> It is not handling the case of ifp == NULL.
>
> Maybe the following (move the assignment into the if block).
>
> --- a/net/ipv6/ndisc.c 2010-06-21 10:22:20.825637690 -0700
> +++ b/net/ipv6/ndisc.c 2010-06-21 10:24:31.573011996 -0700
> @@ -586,6 +586,7 @@ static void ndisc_send_na(struct net_dev
> src_addr = solicited_addr;
> if (ifp->flags & IFA_F_OPTIMISTIC)
> override = 0;
> + inc_opt |= ifp->idev->cnf.force_tllao;
> in6_ifa_put(ifp);
> } else {
> if (ipv6_dev_get_saddr(dev_net(dev), dev, daddr,
> @@ -599,7 +600,6 @@ static void ndisc_send_na(struct net_dev
> icmp6h.icmp6_solicited = solicited;
> icmp6h.icmp6_override = override;
>
> - inc_opt |= ifp->idev->cnf.force_tllao;
> __ndisc_send(dev, neigh, daddr, src_addr,
> &icmp6h, solicited_addr,
> inc_opt ? ND_OPT_TARGET_LL_ADDR : 0);
>
>
>
Thanks a lot! This fix seems to work fine for me (tested locally only).
I'll see what happens when I apply it to my server tomorrow.
Curious though as to why I wasn't able to reproduce it when compiling
the kernel with Gentoo's GCC. It doesn't look like it should make any
difference. Maybe I made a mistake when I tested it with Gentoo.
Regards
Andreas Klauer
next prev parent reply other threads:[~2010-06-21 20:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-19 17:53 2.6.34 + IPv6: Oops? Andreas Klauer
2010-06-21 15:30 ` Andreas Klauer
2010-06-21 16:19 ` Stephen Hemminger
2010-06-21 16:26 ` Andreas Klauer
2010-06-21 16:25 ` Hagen Paul Pfeifer
2010-06-21 17:25 ` Stephen Hemminger
2010-06-21 20:04 ` Andreas Klauer [this message]
2010-06-21 21:00 ` [PATCH] ipv6: fix NULL reference in proxy neighbor discovery Stephen Hemminger
2010-06-23 14:44 ` YOSHIFUJI Hideaki
2010-06-26 4:31 ` David Miller
2010-06-22 12:29 ` 2.6.34 + IPv6: Oops? Andreas Klauer
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=20100621200413.GA2280@EIS \
--to=andreas.klauer@metamorpher.de \
--cc=hagen@jauu.net \
--cc=netdev@vger.kernel.org \
--cc=opurdila@ixiacom.com \
--cc=shemminger@vyatta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.