Re: Problem with __check_and_rekey
From: SZALAY Attila <hidden>
Date: 2003-08-12 14:05:16
Hi ALl! On 2003 Aug 12, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
In article [ref] (at Tue, 12 Aug 2003 15:20:50 +0200), SZALAY Attila [off-list ref] says: But anyway, I can't find these lines in linux-2.4.21 (or even in 2.6.x). Are you sure you're working on the vanilla kernel?
Sorry, no. The patch in vanilla kernel:
--- tcp_ipv4.c~ Tue Aug 12 16:01:31 2003
+++ tcp_ipv4.c Tue Aug 12 16:03:35 2003@@ -843,9 +843,12 @@ if (err) goto failure; - if (!tp->write_seq) + if (!tp->write_seq) { + local_bh_disable(); tp->write_seq = secure_tcp_sequence_number(sk->saddr, sk->daddr, sk->sport, usin->sin_port); + local_bh_enable(); + } sk->protinfo.af_inet.id = tp->write_seq^jiffies;
--
Szalay Attila BalaBit IT Biztonságtechnikai Kft.
tel:(36-1)-371-05-40 1116 Bp. Csurgoi ut 20/b
fax:(36-1)-208-08-75 http://www.balabit.hu/