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: <CAM_iQpXNp4+1D454yrwJyER50gKC3N1CtDffEExDYiGCENTiFQ@mail.gmail.com>
Date:	Tue, 10 Mar 2015 16:44:06 -0700
From:	Cong Wang <xiyou.wangcong@...il.com>
To:	David Miller <davem@...emloft.net>
Cc:	Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: rtnl_newlink() cleanup on namespace change

On Tue, Mar 10, 2015 at 3:43 PM, David Miller <davem@...emloft.net> wrote:
>
> Cong, I was reviewing commit 7afb8886a05be68e376655539a064ec672de8a8e
> ("rtnetlink: call ->dellink on failure when ->newlink exists") during
> a stable backport and I noticed that the function, after the change
> you made, subsequently goes:
>
>                 if (link_net) {
>                         err = dev_change_net_namespace(dev, dest_net, ifname);
>                         if (err < 0)
>                                 unregister_netdevice(dev);
>                 }
>
> Isn't the potential ->dellink() unwinding necessary in this path too?
>

Right, I wasn't aware of the link_net change.
Do you want me to send a fix?

Thanks.
--
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