From: "Timo Teräs" <timo.teras@iki.fi>
To: "\"Chung-Yih Wang (王崇懿)\"" <cywang@google.com>
Cc: herbert@gondor.hengli.com.au, davem@davemloft.net,
netdev@vger.kernel.org
Subject: Re: Regarding to your linux kernel CL
Date: Wed, 06 Oct 2010 10:02:56 +0300 [thread overview]
Message-ID: <4CAC1F20.6070009@iki.fi> (raw)
In-Reply-To: <AANLkTikdcL0JQgkR6u0qtmDu-phMZ6-Juq91B1N5GfiY@mail.gmail.com>
On 10/05/2010 04:23 AM, Chung-Yih Wang (王崇懿) wrote:
> I encountered an issue with your CL
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d11a4dc18bf41719c9f0d7ed494d295dd2973b92.
> The cause is that we use a connected UDP socket for building the
> l2tp/ipsec vpn connection. However, when the ipsec tunnel is built,
> your CL made the sk_dst_check useless(since it always return the
> 'freed' dst_entry and can not reset the dst entry for the socket).
> What is your comment to conquer this issue?
>
> Solution 1. We could add a CL to change it to (dst && dst->obsolete &&
> (dst->obsolete>0 || dst->ops->check(...)==NULL) in sk_dst_check()) ?
>
> Solution 2. Revert the change?
>
> Any comment?
What's the problem here? sk_dst_check not honoring if dst->obsolete>0 ?
Sounds like the sk_dst_check was buggy in the first place.
Looks like there's still some code around that does not do what the
obsolete field has been used for a long time.
obsolete = 0, dst entry is ok
obsolete = -1, you need to call ops->check for this entry
obsolete > 0, this entry is invalid
So net/core/sock.c needs fixing. Just if we should change dst_check()
too, I'm not sure.
Should we fix sk_dst_check to use dst_check(), and dst_check() to check
for dst->obsolete>0 ?
next prev parent reply other threads:[~2010-10-06 7:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AANLkTikdcL0JQgkR6u0qtmDu-phMZ6-Juq91B1N5GfiY@mail.gmail.com>
2010-10-05 16:42 ` Fwd: Regarding to your linux kernel CL Chung-Yih Wang (王崇懿)
2010-10-06 7:02 ` Timo Teräs [this message]
2010-10-06 7:59 ` Herbert Xu
2010-10-06 8:04 ` Chung-Yih Wang (王崇懿)
2010-10-06 8:14 ` David Miller
2010-10-06 21:23 ` Chung-Yih Wang (王崇懿)
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=4CAC1F20.6070009@iki.fi \
--to=timo.teras@iki.fi \
--cc=cywang@google.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.hengli.com.au \
--cc=netdev@vger.kernel.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 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.