diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2025-04-03 14:29:30 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-04-03 17:31:57 +0300 |
commit | 390513642ee6763c7ada07f0a1470474986e6c1c (patch) | |
tree | b9ed41c998e188570d62ddfdced76327b56adba2 /lib/test_fortify/write_overflow-strncpy.c | |
parent | 57ed58c1325690ff6a46da776e9b42b14a7c37b1 (diff) | |
download | linux-390513642ee6763c7ada07f0a1470474986e6c1c.tar.xz |
io_uring: always do atomic put from iowq
io_uring always switches requests to atomic refcounting for iowq
execution before there is any parallilism by setting REQ_F_REFCOUNT,
and the flag is not cleared until the request completes. That should be
fine as long as the compiler doesn't make up a non existing value for
the flags, however KCSAN still complains when the request owner changes
oter flag bits:
BUG: KCSAN: data-race in io_req_task_cancel / io_wq_free_work
...
read to 0xffff888117207448 of 8 bytes by task 3871 on cpu 0:
req_ref_put_and_test io_uring/refs.h:22 [inline]
Skip REQ_F_REFCOUNT checks for iowq, we know it's set.
Reported-by: syzbot+903a2ad71fb3f1e47cf5@syzkaller.appspotmail.com
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d880bc27fb8c3209b54641be4ff6ac02b0e5789a.1743679736.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions