netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [UDPv6] Possible dst leak in udpv6_sendmsg.
@ 2008-06-03 11:08 Denis V. Lunev
  2008-06-03 11:35 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 6+ messages in thread
From: Denis V. Lunev @ 2008-06-03 11:08 UTC (permalink / raw)
  To: yoshfuji; +Cc: davem, netdev, kaber, Denis V. Lunev

ip6_sk_dst_lookup returns held dst entry. It should be released on all paths
beyond this point. Add missed release when up->pending is set.

Signed-off-by: Denis V. Lunev <den@openvz.org>
---
 net/ipv6/udp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 1fd784f..3235528 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -813,6 +813,7 @@ back_from_confirm:
 		/* The socket is already corked while preparing it. */
 		/* ... which is an evident application bug. --ANK */
 		release_sock(sk);
+		dst_release(dst);
 
 		LIMIT_NETDEBUG(KERN_DEBUG "udp cork app bug 2\n");
 		err = -EINVAL;
-- 
1.5.3.rc5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-03 16:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-03 11:08 [PATCH] [UDPv6] Possible dst leak in udpv6_sendmsg Denis V. Lunev
2008-06-03 11:35 ` YOSHIFUJI Hideaki / 吉藤英明
2008-06-03 11:50   ` Denis V. Lunev
2008-06-03 16:26     ` YOSHIFUJI Hideaki / 吉藤英明
2008-06-03 16:34       ` Denis V. Lunev
2008-06-03 16:36         ` YOSHIFUJI Hideaki / 吉藤英明

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).