]> git.baikalelectronics.ru Git - kernel.git/commit
workqueue: Mark up unlocked access to wq->first_flusher
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Mar 2020 16:23:19 +0000 (16:23 +0000)
committerTejun Heo <tj@kernel.org>
Thu, 12 Mar 2020 18:26:50 +0000 (14:26 -0400)
commit1bfae667a330b7274d417b06a77a265044175d3b
treee3e206c15d3ab9fad053303d930fe8190ac5aca9
parente4762c7c6c8c2b6df6eb8011be69edeaf394a761
workqueue: Mark up unlocked access to wq->first_flusher

[ 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@chris-wilson.co.uk>
Cc: Tejun Heo <tj@kernel.org>
Cc: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/workqueue.c