login
Header Space

 
 

Re: Slab Corruption with ipv6 and tcp6fuzz

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric Sesterhenn <snakebyte@...>
Cc: <netdev@...>, <davem@...>, <ilpo.jarvinen@...>
Date: Saturday, April 26, 2008 - 12:05 pm

Hi.

On Fri, Apr 25, 2008 at 05:09:46PM +0400, Evgeniy Polyakov (johnpol@2ka.mipt.ru) wrote:

Ok, I can not reproduce it, so lets try hard way.
Can you test attached patch, its idea is described above and I checked
multiple times, that it is forbidden to free skb and return non-zero
value from tcp_rcv_established(). This behaviour was introduced with TCP
defer accept changes in 2.6.25 with
ec3c0982a2dd1e671bad8e9d26c28dcba0039d87 commit.

Please test. This bug affects both ipv6 and ipv4 code actually.

diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index ac9b848..0298f80 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4925,8 +4925,7 @@ step5:
 	tcp_data_snd_check(sk);
 	tcp_ack_snd_check(sk);
 
-	if (tcp_defer_accept_check(sk))
-		return -1;
+	tcp_defer_accept_check(sk);
 	return 0;
 
 csum_error:


-- 
	Evgeniy Polyakov
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Slab Corruption with ipv6 and tcp6fuzz, Eric Sesterhenn, (Thu Apr 24, 10:27 am)
Re: Slab Corruption with ipv6 and tcp6fuzz, Evgeniy Polyakov, (Thu Apr 24, 5:13 pm)
Re: Slab Corruption with ipv6 and tcp6fuzz, Eric Sesterhenn, (Fri Apr 25, 8:52 am)
Re: Slab Corruption with ipv6 and tcp6fuzz, Evgeniy Polyakov, (Fri Apr 25, 9:09 am)
Re: Slab Corruption with ipv6 and tcp6fuzz, Evgeniy Polyakov, (Sat Apr 26, 12:05 pm)
Re: Slab Corruption with ipv6 and tcp6fuzz, Patrick McManus, (Sun Apr 27, 12:48 pm)
Re: Slab Corruption with ipv6 and tcp6fuzz, David Miller, (Sun Apr 27, 6:27 pm)
Re: Slab Corruption with ipv6 and tcp6fuzz, David Miller, (Sun Apr 27, 2:05 am)
Re: Slab Corruption with ipv6 and tcp6fuzz, Patrick McManus, (Sun Apr 27, 9:25 am)
Re: Slab Corruption with ipv6 and tcp6fuzz, Eric Sesterhenn, (Sun Apr 27, 11:32 am)
Re: Slab Corruption with ipv6 and tcp6fuzz, Ilpo Järvinen, (Thu Apr 24, 3:48 pm)
speck-geostationary