Re: [PATCH] locking/osq_lock: fix a data race in osq_wait_next

From: Qian Cai
Date: Wed Jan 22 2020 - 12:08:51 EST




> On Jan 22, 2020, at 11:59 AM, Will Deacon <will@xxxxxxxxxx> wrote:
>
> I don't understand this; 'next' is a local variable.
>
> Not keen on the onslaught of random "add a READ_ONCE() to shut the
> sanitiser up" patches we're going to get from kcsan :(

My fault. I suspect it is node->next. Iâll do a bit more testing to confirm.