lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ