]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/waitid: fix KCSAN warning on io_waitid->head
authorJens Axboe <axboe@kernel.dk>
Tue, 20 Jan 2026 02:46:26 +0000 (19:46 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Jan 2026 02:55:30 +0000 (19:55 -0700)
commitb994ace83a2bc7699420f6a4c6b860c8da133159
treef1a0c0ec4b2394170a6d4f7cef1560aab9005c20
parent4b9748055457ac3a0710bf210c229d01ea1b01b9
io_uring/waitid: fix KCSAN warning on io_waitid->head

Storing of the iw->head entry inside the wait_queue callback, or when
removing a waitid item, really should use proper load/store
acquire/release semantics, and KCSAN correctly warns of that. Ensure
that they do so.

Reported-by: syzbot+eb441775f4f948a0902f@syzkaller.appspotmail.com
Fixes: a48c0cbf28c0 ("io_uring/waitid: have io_waitid_complete() remove wait queue entry")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/waitid.c