Re: Oops with kernel 2.4.22 and IPSEC backport from 01.09

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

 



Nuno Ferreira <nuno.ferreira@graycell.biz> wrote:
> 
> Well, I still get the same oops using the IPSEC backport dated
> 2003-09-07.
> Do you have any idea what the problem is?

Please apply the following debugging patch and let me know what you get.
BTW, what are you using to create/manage the policies?
-- 
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.4/net/xfrm/xfrm_policy.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.4/net/xfrm/xfrm_policy.c,v
retrieving revision 1.7
diff -u -r1.7 xfrm_policy.c
--- kernel-source-2.4/net/xfrm/xfrm_policy.c	2 Aug 2003 07:53:39 -0000	1.7
+++ kernel-source-2.4/net/xfrm/xfrm_policy.c	11 Sep 2003 11:59:50 -0000
@@ -234,7 +234,7 @@
 
 void __xfrm_policy_destroy(struct xfrm_policy *policy)
 {
-	if (!policy->dead)
+	if (policy->dead < 2)
 		BUG();
 
 	if (policy->bundles)
@@ -261,6 +261,7 @@
 	if (atomic_read(&policy->refcnt) > 1)
 		flow_cache_flush();
 
+	policy->dead = 2;
 	xfrm_pol_put(policy);
 }
 
-
: 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