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]
Date:	Tue, 3 Nov 2015 19:41:30 +0100
From:	Sabrina Dubroca <sd@...asysnail.net>
To:	David Miller <davem@...emloft.net>
Cc:	cwang@...pensource.com, netdev@...r.kernel.org,
	eric.dumazet@...il.com, dvyukov@...gle.com,
	hannes@...essinduktion.org
Subject: Re: [PATCH net] ipv6: clean up dev_snmp6 proc entry when we fail to
 initialize inet6_dev

2015-11-03, 13:38:37 -0500, David Miller wrote:
> From: Cong Wang <cwang@...pensource.com>
> Date: Tue, 3 Nov 2015 10:30:20 -0800
> 
> > On Tue, Nov 3, 2015 at 10:09 AM, Sabrina Dubroca <sd@...asysnail.net> wrote:
> >> In ipv6_add_dev, when addrconf_sysctl_register fails, we do not clean up
> >> the dev_snmp6 entry that we have already registered for this device.
> >>
> >> It is safe to call snmp6_unregister_dev unconditionally from
> >> in6_dev_finish_destroy, so do it.
> >>
> >> Reported-by: Dmitry Vyukov <dvyukov@...gle.com>
> >> Acked-by: Hannes Frederic Sowa <hannes@...essinduktion.org>
> >> Signed-off-by: Sabrina Dubroca <sd@...asysnail.net>
> >> ---
> >> Dmitry, I'm not completely sure it's the issue you're triggering, but
> >> it sems likely.
> >>
> >>  net/ipv6/addrconf_core.c | 2 ++
> >>  1 file changed, 2 insertions(+)
> >>
> >> diff --git a/net/ipv6/addrconf_core.c b/net/ipv6/addrconf_core.c
> >> index bfa941fc1165..96248a333197 100644
> >> --- a/net/ipv6/addrconf_core.c
> >> +++ b/net/ipv6/addrconf_core.c
> >> @@ -168,6 +168,8 @@ void in6_dev_finish_destroy(struct inet6_dev *idev)
> >>                 pr_warn("Freeing alive inet6 device %p\n", idev);
> >>                 return;
> >>         }
> >> +
> >> +       snmp6_unregister_dev(idev);
> >>         call_rcu(&idev->rcu, in6_dev_finish_destroy_rcu);
> > 
> > 
> > Hmm, but looks like we can't call a function from ipv6 module in a core file?
> 
> Grrr, that's right, I have to revert this.

Sorry :(

I will fix this and resubmit later.

> 
> Good catch Cong.

Yes, thanks Cong!

-- 
Sabrina
--
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