OpenVZ Forum


Home » Mailing lists » Devel » [PATCH net-2.6.26][IPV6]: Fix potential net leak and oops in ipv6 routing code.
Re: [PATCH net-2.6.26][IPV6]: Fix potential net leak and oops in ipv6 routing code. [message #28721 is a reply to message #28705] Wed, 26 March 2008 23:50 Go to previous message
davem is currently offline  davem
Messages: 463
Registered: February 2006
Senior Member
From: Daniel Lezcano <dlezcano@fr.ibm.com>
Date: Wed, 26 Mar 2008 16:59:29 +0100

> Pavel Emelyanov wrote:
> > The commits f3db4851 ([NETNS][IPV6] ip6_fib - fib6_clean_all handle several 
> > network namespaces) and 69ddb805 ([NETNS][IPV6] route6 - Make proc entry 
> > /proc/net/rt6_stats per namespace) made some proc files per net.
> > 
> > Both of them introduced potential OOPS - get_proc_net can return NULL, but
> > this check is lost - and a struct net leak - in case single_open() fails the
> > previously got net is not put.
> > 
> > Kill all these bugs with one patch.
> > 
> > Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
 ...
> Good catch. Thanks.
> 
> Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>

Applied, thanks everyone!
 
Read Message
Read Message
Read Message
Previous Topic: [RFC][-mm] [2/2] Simple stats for memory resource controller
Next Topic: [patch 0/3][NETNS][IPV6] make anycast and ip6_flowlabels per namespace
Goto Forum:
  


Current Time: Mon Aug 25 15:31:07 GMT 2025

Total time taken to generate the page: 0.07464 seconds