From: Mark Lord <lkml@rtr.ca>
To: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
Cc: davem@davemloft.net, jesper.juhl@gmail.com, tilman@imap.cc,
jeff@garzik.org, rjw@sisk.pl, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, xemul@openvz.org,
Linus Torvalds <torvalds@osdl.org>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH 2.6.25] net sockets: fix timewait namespace regression
Date: Thu, 10 Apr 2008 23:18:10 -0400 [thread overview]
Message-ID: <47FED872.7010604@rtr.ca> (raw)
In-Reply-To: <20080411.115907.116626245.yoshfuji@linux-ipv6.org>
YOSHIFUJI Hideaki / 吉藤英明 wrote:
> In article <47FEB0E3.8080507@rtr.ca> (at Thu, 10 Apr 2008 20:29:23 -0400), Mark Lord <lkml@rtr.ca> says:
>
>> David Miller wrote:
>>> From: Mark Lord <lkml@rtr.ca>
>>> Date: Thu, 10 Apr 2008 20:16:11 -0400
>>>
>>>> [c67499c0e772064b37ad75eb69b28fc218752636 is first bad commit
>>>> commit c67499c0e772064b37ad75eb69b28fc218752636
>>>> Author: Pavel Emelyanov <xemul@openvz.org>
>>>> Date: Thu Jan 31 05:06:40 2008 -0800
>>>>
>>>> [NETNS]: Tcp-v4 sockets per-net lookup.
>>>>
>>>> Add a net argument to inet_lookup and propagate it further
>>>> into lookup calls. Plus tune the __inet_check_established.
>>>>
>>>> The dccp and inet_diag, which use that lookup functions
>>>> pass the init_net into them.
>>>>
>>>> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
>>>> Signed-off-by: David S. Miller <davem@davemloft.net>
>>> Thanks Mark.
>>>
>>> Pavel can you take a look? I suspect that the namespace
>>> changes or gets NULL'd out somehow and this leads to the
>>> resets because the socket can no longer be found. Perhaps
>>> it's even a problem with time-wait socket namespace
>>> propagation.
>> ..
>>
>> My system here is now set up for quick/easy retest, if you have any
>> suggestions or patches to try out.
>
> Please try this, from net-2.6.26 tree.
..
Works perfectly, thanks. Looks obvious, too.
Push it out to Linus now for 2.6.25.
Thanks!
Acked-by: Mark Lord <mlord@pobox.com>
> ----
>>From 8d9f1744cab50acb0c6c9553be533621e01f178b Mon Sep 17 00:00:00 2001
> From: Daniel Lezcano <dlezcano@fr.ibm.com>
> Date: Fri, 21 Mar 2008 04:12:54 -0700
> Subject: [PATCH] [NETNS][IPV6] tcp - assign the netns for timewait sockets
>
> Copy the network namespace from the socket to the timewait socket.
>
> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
> Signed-off-by: David S. Miller <davem@davemloft.net>
..
> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Acked-by: Mark Lord <mlord@pobox.com>
> ---
> net/ipv4/inet_timewait_sock.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/net/ipv4/inet_timewait_sock.c b/net/ipv4/inet_timewait_sock.c
> index 876169f..717c411 100644
> --- a/net/ipv4/inet_timewait_sock.c
> +++ b/net/ipv4/inet_timewait_sock.c
> @@ -124,6 +124,7 @@ struct inet_timewait_sock *inet_twsk_alloc(const struct sock *sk, const int stat
> tw->tw_hash = sk->sk_hash;
> tw->tw_ipv6only = 0;
> tw->tw_prot = sk->sk_prot_creator;
> + tw->tw_net = sk->sk_net;
> atomic_set(&tw->tw_refcnt, 1);
> inet_twsk_dead_node_init(tw);
> __module_get(tw->tw_prot->owner);
next prev parent reply other threads:[~2008-04-11 3:18 UTC|newest]
Thread overview: 122+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080409.182228.193699767.davem@davemloft.net>
[not found] ` <47FE3020.1070502@imap.cc>
[not found] ` <9a8748490804101509l5d043ff8w565dc44dfeaf0072@mail.gmail.com>
[not found] ` <20080410.154651.101700010.davem@davemloft.net>
2008-04-11 0:16 ` 2.6.25-rc8: FTP transfer errors Mark Lord
2008-04-11 0:24 ` David Miller
2008-04-11 0:27 ` Mark Lord
2008-04-11 0:39 ` David Miller
2008-04-11 1:23 ` Mark Lord
2008-04-11 6:40 ` Ilpo Järvinen
2008-04-11 13:19 ` Mark Lord
2008-04-11 14:35 ` Evgeniy Polyakov
2008-04-11 14:59 ` Mark Lord
2008-04-11 15:18 ` Evgeniy Polyakov
2008-04-11 18:07 ` David Miller
2008-04-11 21:29 ` Evgeniy Polyakov
2008-04-12 8:44 ` Willy Tarreau
2008-04-12 9:49 ` David Miller
2008-04-13 18:15 ` Rafael J. Wysocki
2008-04-13 18:51 ` Sergio Luis
2008-04-13 19:24 ` Rafael J. Wysocki
2008-04-11 19:58 ` Valdis.Kletnieks
2008-04-11 22:16 ` Tilman Schmidt
2008-04-11 22:25 ` Evgeniy Polyakov
2008-04-11 22:27 ` David Miller
2008-04-11 23:23 ` Tilman Schmidt
2008-04-12 5:37 ` Evgeniy Polyakov
2008-04-12 7:06 ` Ilpo Järvinen
2008-04-11 22:26 ` David Miller
2008-04-11 19:58 ` Valdis.Kletnieks
2008-04-11 22:27 ` Tilman Schmidt
2008-04-13 18:40 ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Rafael J. Wysocki
2008-04-13 18:47 ` Willy Tarreau
2008-04-13 19:18 ` Andrew Morton
2008-04-13 19:27 ` Rafael J. Wysocki
2008-04-13 19:47 ` Reporting bugs and bisection David Miller
2008-04-13 20:21 ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Evgeniy Polyakov
2008-04-13 20:33 ` Rafael J. Wysocki
2008-04-13 20:54 ` Evgeniy Polyakov
2008-04-13 22:24 ` Reporting bugs and bisection Stephen Clark
2008-04-13 22:41 ` Rafael J. Wysocki
2008-04-13 23:51 ` david
2008-04-14 0:36 ` Jakub Narebski
2008-04-14 4:39 ` Willy Tarreau
2008-04-14 5:39 ` Al Viro
2008-04-14 6:24 ` Andrew Morton
2008-04-14 6:39 ` David Miller
2008-04-14 6:43 ` David Miller
2008-04-14 7:23 ` Al Viro
2008-04-14 7:43 ` Al Viro
2008-04-14 8:04 ` Andrew Morton
2008-04-14 8:30 ` David Miller
2008-04-14 9:06 ` Christoph Hellwig
2008-04-14 9:46 ` Andi Kleen
2008-04-15 5:25 ` Bill Fink
2008-04-14 10:15 ` Andrew Morton
2008-04-14 10:41 ` David Miller
2008-04-14 17:35 ` Roman Shaposhnik
2008-04-14 12:08 ` Adrian Bunk
2008-04-14 14:43 ` Arjan van de Ven
2008-04-14 17:51 ` Andrew Morton
2008-04-14 18:24 ` Arjan van de Ven
2008-04-14 19:30 ` Ilpo Järvinen
2008-04-14 15:54 ` James Morris
2008-04-14 22:01 ` David Miller
2008-04-14 23:05 ` Andrew Morton
2008-04-15 4:55 ` Willy Tarreau
2008-04-15 13:18 ` Work WAS(Re: " jamal
2008-04-15 9:33 ` David Newall
2008-04-15 9:54 ` Michael Kerrisk
2008-04-15 14:04 ` David Newall
2008-04-15 20:51 ` Rafael J. Wysocki
2008-04-16 2:34 ` David Newall
2008-04-16 3:53 ` david
2008-04-16 9:06 ` David Newall
2008-04-16 11:02 ` Andi Kleen
2008-04-16 12:41 ` Stephen Clark
2008-04-16 4:29 ` Willy Tarreau
2008-04-16 12:13 ` Rafael J. Wysocki
2008-04-16 12:15 ` Sverre Rabbelier
2008-04-16 13:26 ` Adrian Bunk
2008-04-16 19:02 ` Andrew Morton
2008-04-16 19:43 ` Sverre Rabbelier
2008-04-16 19:55 ` Adrian Bunk
2008-04-17 13:50 ` J. Bruce Fields
2008-04-17 15:26 ` Adrian Bunk
2008-04-16 19:58 ` Alexey Dobriyan
2008-04-16 20:01 ` Arjan van de Ven
2008-04-16 19:39 ` Sverre Rabbelier
2008-04-16 20:16 ` Adrian Bunk
2008-04-16 20:53 ` Adrian Bunk
2008-04-16 21:05 ` Sverre Rabbelier
2008-04-16 21:25 ` Adrian Bunk
2008-04-16 20:04 ` Willy Tarreau
2008-04-16 20:55 ` Jakub Narebski
2008-04-16 21:17 ` Jesper Juhl
2008-04-17 17:04 ` David Newall
2008-04-17 19:09 ` Rafael J. Wysocki
2008-04-17 19:35 ` Ray Lee
2008-04-17 19:57 ` Sverre Rabbelier
2008-04-17 20:16 ` Al Viro
2008-04-17 20:38 ` Ray Lee
2008-04-17 20:53 ` Al Viro
2008-04-17 21:01 ` Ray Lee
2008-04-14 19:13 ` Rene Herman
2008-04-14 20:38 ` Andrew Morton
2008-04-14 22:18 ` Rene Herman
2008-04-14 9:26 ` Andi Kleen
2008-04-13 20:35 ` David Miller
2008-04-14 10:18 ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Ingo Molnar
2008-04-14 10:29 ` Reporting bugs and bisection Andi Kleen
2008-04-13 20:10 ` Reporting bugs and bisection (was: Re: 2.6.25-rc8: FTP transfer errors) Adrian Bunk
2008-04-14 9:58 ` Reporting bugs and bisection Andi Kleen
2008-04-14 10:00 ` Willy Tarreau
2008-04-14 10:16 ` Andi Kleen
2008-04-15 21:53 ` about bisections (was: Re: 2.6.25-rc8: FTP transfer errors) Ingo Molnar
2008-04-15 22:30 ` about bisections David Miller
2008-04-15 22:48 ` Ingo Molnar
2008-04-11 0:56 ` 2.6.25-rc8: FTP transfer errors Tilman Schmidt
2008-04-11 1:08 ` David Miller
2008-04-11 0:26 ` David Miller
2008-04-11 0:29 ` Mark Lord
2008-04-11 2:59 ` YOSHIFUJI Hideaki / 吉藤英明
2008-04-11 3:18 ` Mark Lord [this message]
2008-04-11 3:51 ` [PATCH 2.6.25] net sockets: fix timewait namespace regression David Miller
2008-04-11 7:50 ` 2.6.25-rc8: FTP transfer errors Pavel Emelyanov
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=47FED872.7010604@rtr.ca \
--to=lkml@rtr.ca \
--cc=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=jeff@garzik.org \
--cc=jesper.juhl@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rjw@sisk.pl \
--cc=tilman@imap.cc \
--cc=torvalds@osdl.org \
--cc=xemul@openvz.org \
--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;
as well as URLs for NNTP newsgroup(s).