netdev
[Top] [All Lists]

Re: Problem with __check_and_rekey

To: sasa@xxxxxxxxxx
Subject: Re: Problem with __check_and_rekey
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Tue, 12 Aug 2003 22:55:27 +0900 (JST)
Cc: netdev@xxxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx
In-reply-to: <20030812132050.GA27178@mochrul.balabit>
Organization: USAGI Project
References: <20030812132050.GA27178@mochrul.balabit>
Sender: netdev-bounce@xxxxxxxxxxx
In article <20030812132050.GA27178@xxxxxxxxxxxxxxx> (at Tue, 12 Aug 2003 
15:20:50 +0200), SZALAY Attila <sasa@xxxxxxxxxx> says:

> We created this patch to avoid the problem:
> 
> --- tcp_ipv4.c~ Tue Jun 24 22:44:52 2003
> +++ tcp_ipv4.c  Tue Aug 12 14:21:33 2003
> @@ -872,8 +872,10 @@
>                         tp->write_seq = ip_randomisn();
>                 else
>  #endif
> +               local_bh_disable();
>                 tp->write_seq = secure_tcp_sequence_number(sk->saddr, 
> sk->daddr,
>                                                            sk->sport, 
> usin->sin_port);
> +               local_bh_enable();
>         }
>  
>  #ifdef CONFIG_GRKERNSEC_RANDID
> 

You must forgot braces.
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?

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

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