[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZU2wRnF_w-cEIUK2@hoboy.vegasvil.org>
Date: Thu, 9 Nov 2023 20:23:34 -0800
From: Richard Cochran <richardcochran@...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] ptp: annotate data-race around q->head and q->tail
On Thu, Nov 09, 2023 at 05:48:59PM +0000, Eric Dumazet wrote:
> As I was working on a syzbot report, I found that KCSAN would
> probably complain that reading q->head or q->tail without
> barriers could lead to invalid results.
>
> Add corresponding READ_ONCE() and WRITE_ONCE() to avoid
> load-store tearing.
Acked-by: Richard Cochran <richardcochran@...il.com>
Powered by blists - more mailing lists