[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071211124409.GA14372@gondor.apana.org.au>
Date: Tue, 11 Dec 2007 20:44:09 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [IPSEC]: Fix potential dst leak in xfrm_lookup
On Tue, Dec 11, 2007 at 04:40:16AM -0800, David Miller wrote:
>
> I bet the __xfrm_lookup() callers could stand a major audit, with the
> special -EREMOTE logic I bet there are non-EREMOTE code paths there
> that don't handle the dst ref semantics properly.
>
> This is a very error prone interface, both at the implementation
> and in the callers.
Heh, didn't we already do an audit a couple of years ago when
we made the decision that the dst is always going to be freed
in case of an error?
But yeah another audit for this and EREMOTE wouldn't hurt.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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