aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring/io_uring.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2023-08-09 13:22:16 +0100
committerJens Axboe <axboe@kernel.dk>2023-08-09 10:46:46 -0600
commit569f5308e54352a12181cc0185f848024c5443e8 (patch)
tree2ceca9889faee0152521a4eec58271a3eaafdf6a /io_uring/io_uring.h
parentcfdbaa3a291d6fd2cb4a1a70d74e63b4abc2f5ec (diff)
downloadlinux-569f5308e54352a12181cc0185f848024c5443e8.tar.gz
io_uring: fix false positive KASAN warnings
io_req_local_work_add() peeks into the work list, which can be executed in the meanwhile. It's completely fine without KASAN as we're in an RCU read section and it's SLAB_TYPESAFE_BY_RCU. With KASAN though it may trigger a false positive warning because internal io_uring caches are sanitised. Remove sanitisation from the io_uring request cache for now. Cc: stable@vger.kernel.org Fixes: 8751d15426a31 ("io_uring: reduce scheduling due to tw") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/c6fbf7a82a341e66a0007c76eefd9d57f2d3ba51.1691541473.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/io_uring.h')
-rw-r--r--io_uring/io_uring.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/io_uring/io_uring.h b/io_uring/io_uring.h
index d3606d30cf6fd..12769bad5cee0 100644
--- a/io_uring/io_uring.h
+++ b/io_uring/io_uring.h
@@ -354,7 +354,6 @@ static inline struct io_kiocb *io_extract_req(struct io_ring_ctx *ctx)
struct io_kiocb *req;
req = container_of(ctx->submit_state.free_list.next, struct io_kiocb, comp_list);
- kasan_unpoison_object_data(req_cachep, req);
wq_stack_extract(&ctx->submit_state.free_list);
return req;
}