Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965039AbWLOBiw (ORCPT ); Thu, 14 Dec 2006 20:38:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965000AbWLOBiv (ORCPT ); Thu, 14 Dec 2006 20:38:51 -0500 Received: from 216-99-217-87.dsl.aracnet.com ([216.99.217.87]:46233 "EHLO sous-sol.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965026AbWLOBgF (ORCPT ); Thu, 14 Dec 2006 20:36:05 -0500 Message-Id: <20061215013658.635937000@sous-sol.org> References: <20061215013337.823935000@sous-sol.org> User-Agent: quilt/0.45-1 Date: Thu, 14 Dec 2006 17:33:50 -0800 From: Chris Wright To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , torvalds@osdl.org, akpm@osdl.org, alan@lxorguk.ukuu.org.uk, David Miller , bunk@stusta.de Subject: [patch 13/24] IPSEC: Fix inetpeer leak in ipv4 xfrm dst entries. Content-Disposition: inline; filename=ipsec-fix-inetpeer-leak-in-ipv4-xfrm-dst-entries.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1179 Lines: 38 2.6.18-stable review patch. If anyone has any objections, please let us know. ------------------ From: David Miller We grab a reference to the route's inetpeer entry but forget to release it in xfrm4_dst_destroy(). Bug discovered by Kazunori MIYAZAWA Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- commit 26db167702756d0022f8ea5f1f30cad3018cfe31 Author: David S. Miller Date: Wed Dec 6 23:45:15 2006 -0800 net/ipv4/xfrm4_policy.c | 2 ++ 1 file changed, 2 insertions(+) --- linux-2.6.18.5.orig/net/ipv4/xfrm4_policy.c +++ linux-2.6.18.5/net/ipv4/xfrm4_policy.c @@ -252,6 +252,8 @@ static void xfrm4_dst_destroy(struct dst if (likely(xdst->u.rt.idev)) in_dev_put(xdst->u.rt.idev); + if (likely(xdst->u.rt.peer)) + inet_putpeer(xdst->u.rt.peer); xfrm_dst_destroy(xdst); } -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/