netdev
[Top] [All Lists]

Re: Problem with __check_and_rekey

To: "YOSHIFUJI Hideaki / ?$B5HF#1QL@" <yoshfuji@xxxxxxxxxxxxxx>
Subject: Re: Problem with __check_and_rekey
From: SZALAY Attila <sasa@xxxxxxxxxx>
Date: Tue, 12 Aug 2003 16:05:16 +0200
Cc: sasa@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20030812.225527.35784879.yoshfuji@xxxxxxxxxxxxxx>
References: <20030812132050.GA27178@xxxxxxxxxxxxxxx> <20030812.225527.35784879.yoshfuji@xxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.3.28i
Hi ALl!


On 2003 Aug 12, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
> In article <20030812132050.GA27178@xxxxxxxxxxxxxxx> (at Tue, 12 Aug 2003 
> 15:20:50 +0200), SZALAY Attila <sasa@xxxxxxxxxx> 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/

<Prev in Thread] Current Thread [Next in Thread>