public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anders Gustafsson <andersg@0x63.nu>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org, joe user <joe_user35@hotmail.com>,
	Arnaldo Carvalho de Melo <acme@conectiva.com.br>
Subject: [PATCH] /proc/net/tcp + ipv6 hang
Date: Mon, 23 Dec 2002 02:57:23 +0100	[thread overview]
Message-ID: <20021223015723.GA17439@gagarin> (raw)

Hi,

this patch fixes an infinite loop when reading /proc/net/tcp and having
daemons listening on ipv6.

-- 
Anders Gustafsson - andersg@0x63.nu - http://0x63.nu/

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


ChangeSet@1.913, 2002-12-23 02:49:19+01:00, andersg@0x63.nu
  Fix infinite loop when reading /proc/net/tcp with ipv6-sockets.


 tcp_ipv4.c |    1 +
 1 files changed, 1 insertion(+)


diff -Nru a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
--- a/net/ipv4/tcp_ipv4.c	Mon Dec 23 02:55:45 2002
+++ b/net/ipv4/tcp_ipv4.c	Mon Dec 23 02:55:45 2002
@@ -2236,6 +2236,7 @@
 			goto get_req;
 		}
 		read_unlock_bh(&tp->syn_wait_lock);
+		sk = sk->next;
 	}
 	if (++st->bucket < TCP_LHTABLE_SIZE) {
 		sk = tcp_listening_hash[st->bucket];

===================================================================


This BitKeeper patch contains the following changesets:
1.913
## Wrapped with gzip_uu ##


begin 664 bkpatch1524
M'XL(`"%M!CX``]54WVO;,!!^MOZ*@SZ6V#I+=FP/EVS=3S98R.CS4.1+;)Q(
MP5:3#/S'3\E"6]*6LK*7G?1PTIU.G^[[T`7<]-05@3(5=?V27<!GV[LBX/M4
MA.;6KV?6^G54VS5%IZRHI<[0*IJWT7QE=\QG3973-6Q]M`@P%'<[[M>&BF#V
MX=/-M[<SQLH2KFMEEO2#')0E<[;;JE753Y2K5]:$KE.F7Y-3H;;KX2YUB#F/
M_4AP+'B2#IAR.1XT5HA*(E4\EEDJV0G>Y`3^[#S&WD0L,!D2@7G"W@.&.0K@
M<81Q%!^<0N8%YI<<"\[AK!Q<(HPX>P?_%O0UT_"QV4-C%HUI','*V@WL:C+0
MD:H:LX1HTUD=&7*1TS[4N!J:S38=]5:WY/J0?87$%Y-L>M]=-OI+8XPKSJY>
M>-T!A+];'I#\/#BA?OC./,D&*64Z'GRGY\FBRN8YZ92+Q7DWGZWD:1(<I2=F
M2)&/\2B:)Y)?EL^KL3*EUS31UI!VS?98+)QWSR/&6!X0QWQ(\BS%H[!$]DA7
MXC_4U1\*OL.HVQVGU\GT*39>(;<OGN@,D`5!WT()?3NZ,K1W;^Z_$UV3;OO;
1=4D9*2FJ!?L-758XOZ\$````
`
end

             reply	other threads:[~2002-12-23  1:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-23  1:57 Anders Gustafsson [this message]
2002-12-23  2:03 ` [PATCH] /proc/net/tcp + ipv6 hang Arnaldo Carvalho de Melo
2002-12-23  2:40 ` Arnaldo Carvalho de Melo
2002-12-23  3:08   ` Anders Gustafsson
2002-12-23  3:27     ` Arnaldo Carvalho de Melo
2002-12-23  7:20   ` 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=20021223015723.GA17439@gagarin \
    --to=andersg@0x63.nu \
    --cc=acme@conectiva.com.br \
    --cc=davem@redhat.com \
    --cc=joe_user35@hotmail.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox