lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5578B318.1050808@cumulusnetworks.com>
Date:	Wed, 10 Jun 2015 14:58:48 -0700
From:	roopa <roopa@...ulusnetworks.com>
To:	Scott Feldman <sfeldma@...il.com>
CC:	Netdev <netdev@...r.kernel.org>,
	"ebiederm@...ssion.com" <ebiederm@...ssion.com>,
	rshearma@...cade.com
Subject: Re: /net/mpls/conf/ethX//input duplicate entry

On 6/10/15, 1:43 PM, Scott Feldman wrote:
> I'm getting this dump_stack when reloading rocker driver.  Did some
> sysctl MPLS nodes not get cleaned up on NETDEV_UNREGISTER?
>
> Steps to repro: load rocker (on system) with rocker device, rmmod
> rocker, and then modprobe rocker.  I doubt this is specific to rocker:
> and re-registration of a netdev should hit it. I am using UDEV rules
> to rename kernel's ethX to a different name.  Maybe that's what
> tripped it up?
>
On a quick look, wondering if this is because mpls driver does not seem 
to do a unregister and re-register sysctl
on device name change.

diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 7b3f732..ec21a5d 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -564,6 +564,14 @@ static int mpls_dev_notify(struct notifier_block 
*this, unsigned long event,
         case NETDEV_UNREGISTER:
                 mpls_ifdown(dev);
                 break;
+       case NETDEV_CHANGENAME:
+               mpls_ifdown(dev);
+               if ((dev->type == ARPHRD_ETHER) ||
+                   (dev->type == ARPHRD_LOOPBACK)) {
+                       mdev = mpls_add_dev(dev);
+                       if (IS_ERR(mdev))
+                               return notifier_from_errno(PTR_ERR(mdev));
+               }
         }
         return NOTIFY_OK;
  }

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ