Re: Possible memory leak in xfrm_policy_insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   From: Herbert Xu <herbert@gondor.apana.org.au>
   Date: Mon, 9 Jun 2003 11:40:31 +1000

   On Sun, Jun 08, 2003 at 01:54:26AM -0700, David S. Miller wrote:
   > 
   > I'll be more than happy to review and fixup whatever you
   > come up with.
   
   OK, here is a patch based on my previous way with the destroyer element.
   Please let me know what you think.
   
Do you remember I didn't want things like destructors being
specified?

At policy kill time, you simply unlink from the policy table,
FLUSH the flow cache entry, then all the flow cache references
are gone and the entry will either die now or be killed off
from some other section of the networking making the final
xfrm_policy_put().
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux