Re: Possible memory leak in xfrm_policy_insert

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

 



On Sun, Jun 01, 2003 at 12:19:51AM -0700, David S. Miller wrote:
> 
> I need to add a forceful flush mechanism to the flow cache that will
> destroy all such references.  Let us name this interface:
> 
> void flow_cache_flush(struct flowi *key);
> 
> It is defined to delete all flow cache entries matching given key.
> It must be called after the tables that the "flow_resolve_t" callback
> for this object will search.  This means we'd invoke it from
> xfrm_policy_kill() or similar.

This appears to be difficult to implement.  How is the flow cache going
to know what matches a given key when it doesn't know what that key means?

Perhaps a less ambitious version could work.  What about

void flow_cache_flush(void *object);

which deletes all cache entries referring to object?
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
: 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