| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: patch2: del/get byid |
| From: | jamal <hadi@xxxxxxxxxx> |
| Date: | Fri, 29 Apr 2005 20:35:57 -0400 |
| Cc: | Alexey Kuznetsov <kuznet@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxxxxx> |
| In-reply-to: | <20050430001248.GA22927@gondor.apana.org.au> |
| Organization: | unknown |
| References: | <20050428024253.GA23695@gondor.apana.org.au> <1114656932.7663.88.camel@localhost.localdomain> <20050428030325.GB23823@gondor.apana.org.au> <1114658657.7663.110.camel@localhost.localdomain> <1114698033.7663.197.camel@localhost.localdomain> <20050428231154.GA14215@gondor.apana.org.au> <1114779104.7800.22.camel@localhost.localdomain> <1114816846.8929.6.camel@localhost.localdomain> <20050429234952.GB22699@gondor.apana.org.au> <1114819281.8929.9.camel@localhost.localdomain> <20050430001248.GA22927@gondor.apana.org.au> |
| Reply-to: | hadi@xxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Sat, 2005-30-04 at 10:12 +1000, Herbert Xu wrote: > On Fri, Apr 29, 2005 at 08:01:21PM -0400, jamal wrote: > > the policy_kill is? > > 1) You find delpol using xfrm_policy_byid/xfrm_policy_bysel. Which increments the refcnt > 2) The timer kicks in and unlinks delpol from the list. How does this happen again? One path i see is an expiry of delpol about the same time. > 3) You take the list lock and continue to use delpol as if it was > still on the list. I am assuming the refcount is sufficient to protect it. > 4) You call xfrm_policy_kill on delpol again even though it's already > dead. It can only be dead if ->dead is set and refcnt hits zero, no? > > > > This is also getting pretty hairy for something that nobody has needed so > > > far. Which user-space application is going to use this index thing? > > > > did you see the attachment i put with ip x tests? > > Well I meant a usage other than a test suite :) surely ip is a user space application. Correctness is also valuable regardless of whether theres an app using it today or not. cheers, jamal |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Pktgen receive hook in dev.c?, Ben Greear |
|---|---|
| Next by Date: | Re: [PATCH] Tulip interrupt uses non IRQ safe spinlock, Alan Cox |
| Previous by Thread: | Re: patch2: del/get byid, Herbert Xu |
| Next by Thread: | Re: patch2: del/get byid, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |