From: jamal <hadi@cyberus.ca>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>,
netdev@oss.sgi.com, "David S. Miller" <davem@davemloft.net>
Subject: Re: patch2: del/get byid
Date: Fri, 29 Apr 2005 20:35:57 -0400 [thread overview]
Message-ID: <1114821357.8929.27.camel@localhost.localdomain> (raw)
In-Reply-To: <20050430001248.GA22927@gondor.apana.org.au>
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
next prev parent reply other threads:[~2005-04-30 0:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 2:11 patch2: del/get byid jamal
2005-04-28 2:14 ` Herbert Xu
2005-04-28 2:23 ` jamal
2005-04-28 2:25 ` Herbert Xu
2005-04-28 2:39 ` jamal
2005-04-28 2:42 ` Herbert Xu
2005-04-28 2:55 ` jamal
2005-04-28 3:03 ` Herbert Xu
2005-04-28 3:24 ` jamal
2005-04-28 14:20 ` jamal
2005-04-28 23:11 ` Herbert Xu
2005-04-29 12:51 ` jamal
2005-04-29 23:20 ` jamal
2005-04-29 23:49 ` Herbert Xu
2005-04-30 0:01 ` jamal
2005-04-30 0:12 ` Herbert Xu
2005-04-30 0:35 ` jamal [this message]
2005-04-30 0:47 ` Herbert Xu
2005-04-30 1:08 ` jamal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1114821357.8929.27.camel@localhost.localdomain \
--to=hadi@cyberus.ca \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.