Re: [PATCH] workqueue: Mark up unlocked access to wq->first_flusher

From: Tejun Heo
Date: Thu Mar 12 2020 - 14:27:21 EST


On Tue, Mar 10, 2020 at 04:23:19PM +0000, Chris Wilson wrote:
> [ 7329.671518] BUG: KCSAN: data-race in flush_workqueue / flush_workqueue
> [ 7329.671549]
> [ 7329.671572] write to 0xffff8881f65fb250 of 8 bytes by task 37173 on cpu 2:
> [ 7329.671607] flush_workqueue+0x3bc/0x9b0 (kernel/workqueue.c:2844)
> [ 7329.672527]
> [ 7329.672540] read to 0xffff8881f65fb250 of 8 bytes by task 37175 on cpu 0:
> [ 7329.672571] flush_workqueue+0x28d/0x9b0 (kernel/workqueue.c:2835)
>
> Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
> Cc: Tejun Heo <tj@xxxxxxxxxx>
> Cc: Lai Jiangshan <jiangshanlai@xxxxxxxxx>

Applied to wq/for-5.7.

Thanks.

--
tejun