summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2024-03-12 17:56:27 +0300
committerJens Axboe <axboe@kernel.dk>2024-03-12 18:21:36 +0300
commitcef59d1ea7170ec753182302645a0191c8aa3382 (patch)
tree70a9083da63e20e914b3f5cb575e299884bfe74e /scripts
parent0a3737db8479b77f95f4bfda8e71b03c697eb56a (diff)
downloadlinux-cef59d1ea7170ec753182302645a0191c8aa3382.tar.xz
io_uring: clean rings on NO_MMAP alloc fail
We make a few cancellation judgements based on ctx->rings, so let's zero it afer deallocation for IORING_SETUP_NO_MMAP just like it's done with the mmap case. Likely, it's not a real problem, but zeroing is safer and better tested. Cc: stable@vger.kernel.org Fixes: 03d89a2de25bbc ("io_uring: support for user allocated memory for rings/sqes") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/9ff6cdf91429b8a51699c210e1f6af6ea3f8bdcf.1710255382.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions