Netdev List
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: "YOSHIFUJI Hideaki / ?$B5HF#1QL@" <yoshfuji@linux-ipv6.org>
Cc: kazunori@miyazawa.org, davem@davemloft.net, netdev@oss.sgi.com
Subject: Re: [XFRM] Call dst_check() with appropriate cookie
Date: Tue, 24 May 2005 22:54:08 +1000	[thread overview]
Message-ID: <20050524125408.GA27317@gondor.apana.org.au> (raw)
In-Reply-To: <20050524.174234.00553944.yoshfuji@linux-ipv6.org>

On Tue, May 24, 2005 at 05:42:34PM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
>
> Probably, it should be better to introduce some upper limit of number of 
> recreation.

Yep, that's why a simple packet blackhole bug became a kernel hang.

In fact, we don't need to retry at all.  If the policy goes dead on us
or if the route becomes invalid after we passed the check in xfrm_lookup,
the packet is dropped anyway.  There is no point in retrying the lookup
here since that only covers the cases where we detect the problem before
the bundle is inserted into the list.

So we should simply return an error instead of retrying.

Cheers,
-- 
Visit Openswan at http://www.openswan.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

  parent reply	other threads:[~2005-05-24 12:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-24  3:49 [XFRM] Call dst_check() with appropriate cookie YOSHIFUJI Hideaki / 吉藤英明
2005-05-24  7:16 ` Herbert Xu
2005-05-24  7:30   ` YOSHIFUJI Hideaki / 吉藤英明
2005-05-24  8:11     ` Herbert Xu
2005-05-24  8:26   ` Kazunori Miyazawa
2005-05-24  8:34     ` Herbert Xu
2005-05-24 12:50       ` Herbert Xu
     [not found]     ` <20050524.174234.00553944.yoshfuji@linux-ipv6.org>
2005-05-24 12:54       ` Herbert Xu [this message]
2005-05-24  8:20 ` Herbert Xu
2005-05-24  8:49   ` YOSHIFUJI Hideaki / 吉藤英明
2005-05-24 11:59     ` Herbert Xu
2005-05-25 23:40       ` David S. Miller

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=20050524125408.GA27317@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=davem@davemloft.net \
    --cc=kazunori@miyazawa.org \
    --cc=netdev@oss.sgi.com \
    --cc=yoshfuji@linux-ipv6.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox