netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: dsa@cumulusnetworks.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: vrf: Fix crash when IPv6 is disabled at boot time
Date: Thu, 09 Jun 2016 23:34:58 -0700 (PDT)	[thread overview]
Message-ID: <20160609.233458.1449029966409837912.davem@davemloft.net> (raw)
In-Reply-To: <1465492860-19246-1-git-send-email-dsa@cumulusnetworks.com>

From: David Ahern <dsa@cumulusnetworks.com>
Date: Thu,  9 Jun 2016 10:21:00 -0700

> Frank Kellermann reported a kernel crash with 4.5.0 when IPv6 is
> disabled at boot using the kernel option ipv6.disable=1. Using
> current net-next with the boot option:
> 
> $ ip link add red type vrf table 1001
 ...
> The problem above is due to the fact that the fib hash table is not
> allocated when IPv6 is disabled at boot.
> 
> As for the VRF driver it should not do any IPv6 initializations if IPv6
> is disabled, so it needs to know if IPv6 is disabled at boot. The disable
> parameter is private to the IPv6 module, so provide an accessor for
> modules to determine if IPv6 was disabled at boot time.
> 
> Fixes: 35402e3136634 ("net: Add IPv6 support to VRF device")
> Signed-off-by: David Ahern <dsa@cumulusnetworks.com>

Applied.

      reply	other threads:[~2016-06-10  6:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-09 17:21 [PATCH net-next] net: vrf: Fix crash when IPv6 is disabled at boot time David Ahern
2016-06-10  6:34 ` David Miller [this message]

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=20160609.233458.1449029966409837912.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=dsa@cumulusnetworks.com \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).