2003-03-12 21:33:36

by Ross Vandegrift

[permalink] [raw]
Subject: assertion (newsk->state != TCP_SYN_RECV)

I've recently noticed these messages bouncing up in my logs every now
and again. It's always with a particular machine, one that runs 2.4.20.

Google turns up one other post, made on Mon Jan 13
(http://hypermail.idiosynkrasia.net/linux-kernel/archived/2003/week02/0308.html)
but no responses or explanations followed.

Any word on what this means or if it's a problem?

Mar 11 12:56:51 ash kernel: KERNEL: assertion (newsk->state != TCP_SYN_RECV) failed at tcp.c(2229)
Mar 11 12:56:51 ash kernel: KERNEL: assertion ((1<<sk2->state)&(TCPF_ESTABLISHED|TCPF_CLOSE_WAIT|TCPF_CLOSE)) failed at af_inet.c(689)
Mar 11 12:56:51 ash kernel: KERNEL: assertion (newsk->state != TCP_SYN_RECV) failed at tcp.c(2229)
Mar 11 12:56:51 ash kernel: KERNEL: assertion ((1<<sk2->state)&(TCPF_ESTABLISHED|TCPF_CLOSE_WAIT|TCPF_CLOSE)) failed at af_inet.c(689)
Mar 11 12:56:51 ash kernel: KERNEL: assertion (newsk->state != TCP_SYN_RECV) failed at tcp.c(2229)
Mar 11 12:56:51 ash kernel: KERNEL: assertion ((1<<sk2->state)&(TCPF_ESTABLISHED|TCPF_CLOSE_WAIT|TCPF_CLOSE)) failed at af_inet.c(689)
Mar 11 12:57:01 ash kernel: KERNEL: assertion (newsk->state != TCP_SYN_RECV) failed at tcp.c(2229)
Mar 11 12:57:01 ash kernel: KERNEL: assertion ((1<<sk2->state)&(TCPF_ESTABLISHED|TCPF_CLOSE_WAIT|TCPF_CLOSE)) failed at af_inet.c(689)
Mar 11 12:57:01 ash kernel: KERNEL: assertion (newsk->state != TCP_SYN_RECV) failed at tcp.c(2229)
Mar 11 12:57:01 ash kernel: KERNEL: assertion ((1<<sk2->state)&(TCPF_ESTABLISHED|TCPF_CLOSE_WAIT|TCPF_CLOSE)) failed at af_inet.c(689)
Mar 11 12:57:01 ash kernel: KERNEL: assertion (newsk->state != TCP_SYN_RECV) failed at tcp.c(2229)
Mar 11 12:57:01 ash kernel: KERNEL: assertion ((1<<sk2->state)&(TCPF_ESTABLISHED|TCPF_CLOSE_WAIT|TCPF_CLOSE)) failed at af_inet.c(689)

--
Ross Vandegrift
[email protected]

A Pope has a Water Cannon. It is a Water Cannon.
He fires Holy-Water from it. It is a Holy-Water Cannon.
He Blesses it. It is a Holy Holy-Water Cannon.
He Blesses the Hell out of it. It is a Wholly Holy Holy-Water Cannon.
He has it pierced. It is a Holey Wholly Holy Holy-Water Cannon.
He makes it official. It is a Canon Holey Wholly Holy Holy-Water Cannon.
Batman and Robin arrive. He shoots them.


2003-03-18 00:44:14

by David Miller

[permalink] [raw]
Subject: Re: assertion (newsk->state != TCP_SYN_RECV)

On Wed, 2003-03-12 at 13:44, Ross Vandegrift wrote:
> I've recently noticed these messages bouncing up in my logs every now
> and again. It's always with a particular machine, one that runs 2.4.20.
>
> Google turns up one other post, made on Mon Jan 13
> (http://hypermail.idiosynkrasia.net/linux-kernel/archived/2003/week02/0308.html)
> but no responses or explanations followed.

Try searching harder, it's a kernel bug which is fixed in
current 2.4.21 prepatches.


2003-03-18 06:32:16

by Ville Herva

[permalink] [raw]
Subject: Re: assertion (newsk->state != TCP_SYN_RECV)

On Mon, Mar 17, 2003 at 04:55:07PM -0800, you [David S. Miller] wrote:
> On Wed, 2003-03-12 at 13:44, Ross Vandegrift wrote:
> > I've recently noticed these messages bouncing up in my logs every now
> > and again. It's always with a particular machine, one that runs 2.4.20.
> >
> > Google turns up one other post, made on Mon Jan 13
> > (http://hypermail.idiosynkrasia.net/linux-kernel/archived/2003/week02/0308.html)
> > but no responses or explanations followed.
>
> Try searching harder, it's a kernel bug which is fixed in
> current 2.4.21 prepatches.

For reference, the patch is at

http://marc.theaimsgroup.com/?l=linux-kernel&m=104399842612703&w=2

BTW: How severe is the bug? Is it a harmless message, or can it do bad
things?


-- v --

[email protected]

2003-03-18 06:34:51

by David Miller

[permalink] [raw]
Subject: Re: assertion (newsk->state != TCP_SYN_RECV)

From: Ville Herva <[email protected]>
Date: Tue, 18 Mar 2003 08:42:58 +0200

On Mon, Mar 17, 2003 at 04:55:07PM -0800, you [David S. Miller] wrote:
> Try searching harder, it's a kernel bug which is fixed in
> current 2.4.21 prepatches.

For reference, the patch is at

http://marc.theaimsgroup.com/?l=linux-kernel&m=104399842612703&w=2

BTW: How severe is the bug? Is it a harmless message, or can it do bad
things?

We believe that someone could take advantage of it to make a server
get stuck. So I'd say it's serious.