Re: Possible memory leak in xfrm_policy_insert

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

 



On Thu, Jun 12, 2003 at 06:48:50PM +1000, herbert wrote:
> 
> I'll fix that and split the patch up.

Until the flow flush stuff is reimplemented, can you please apply
this patch to fix the preempt race in flow_flush_cache? Thanks.
-- 
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
Index: kernel-source-2.5/net/core/flow.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/net/core/flow.c,v
retrieving revision 1.4
diff -u -r1.4 flow.c
--- kernel-source-2.5/net/core/flow.c	10 Jun 2003 09:19:17 -0000	1.4
+++ kernel-source-2.5/net/core/flow.c	12 Jun 2003 09:47:12 -0000
@@ -267,8 +267,8 @@
 
 	down(&flow_flush_sem);
 
-	smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
 	local_bh_disable();
+	smp_call_function(flow_cache_flush_per_cpu, &info, 1, 0);
 	flow_cache_flush_per_cpu(&info);
 	local_bh_enable();
 

[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