]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring/sqpoll: annotate debug task == current with data_race()
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Aug 2024 12:10:59 +0000 (06:10 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Aug 2024 12:10:59 +0000 (06:10 -0600)
commite4956dc7a84da074fd8dc10f7abd147f15b3ae58
treef4251e7f5e8f5d12efcdd93d0e0994b48bb17150
parent48cc7ecd3a68e0fbfa281ef1ed6f6b6cb7638390
io_uring/sqpoll: annotate debug task == current with data_race()

There's a debug check in io_sq_thread_park() checking if it's the SQPOLL
thread itself calling park. KCSAN warns about this, as we should not be
reading sqd->thread outside of sqd->lock.

Just silence this with data_race(). The pointer isn't used for anything
but this debug check.

Reported-by: syzbot+2b946a3fd80caf971b21@syzkaller.appspotmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/sqpoll.c