diff options
author | Breno Leitao <leitao@debian.org> | 2023-01-18 16:56:30 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-01-29 23:17:41 +0100 |
commit | c1755c25a7190494b45861284b4a30bd9cd813ff (patch) | |
tree | 42cb114ed4fb6907e56be37efee960c53f41985d /drivers/remoteproc/mtk_scp_ipi.c | |
parent | io_uring: handle TIF_NOTIFY_RESUME when checking for task_work (diff) | |
download | linux-c1755c25a7190494b45861284b4a30bd9cd813ff.tar.xz linux-c1755c25a7190494b45861284b4a30bd9cd813ff.zip |
io_uring: Enable KASAN for request cache
Every io_uring request is represented by struct io_kiocb, which is
cached locally by io_uring (not SLAB/SLUB) in the list called
submit_state.freelist. This patch simply enabled KASAN for this free
list.
This list is initially created by KMEM_CACHE, but later, managed by
io_uring. This patch basically poisons the objects that are not used
(i.e., they are the free list), and unpoisons it when the object is
allocated/removed from the list.
Touching these poisoned objects while in the freelist will cause a KASAN
warning.
Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/remoteproc/mtk_scp_ipi.c')
0 files changed, 0 insertions, 0 deletions