[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL+tcoDysd-sxx7Lvku_5NiwguRccZuRNp5Up9SwWJjd6vFDag@mail.gmail.com>
Date: Tue, 27 Aug 2024 11:35:16 +0800
From: Jason Xing <kerneljasonxing@...il.com>
To: Eric Dumazet <edumazet@...gle.com>
Cc: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org, eric.dumazet@...il.com
Subject: Re: [PATCH net-next 2/2] tcp: annotate data-races around tcptw->tw_rcv_nxt
On Tue, Aug 27, 2024 at 9:53 AM Eric Dumazet <edumazet@...gle.com> wrote:
>
> No lock protects tcp tw fields.
>
> tcptw->tw_rcv_nxt can be changed from twsk_rcv_nxt_update()
> while other threads might read this field.
>
> Add READ_ONCE()/WRITE_ONCE() annotations, and make sure
> tcp_timewait_state_process() reads tcptw->tw_rcv_nxt only once.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Reviewed-by: Jason Xing <kerneljasonxing@...il.com>
Thanks!
Powered by blists - more mailing lists