diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-10-15 15:07:23 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-10-15 17:01:09 +0300 |
| commit | be7cab44ed099566c605a8dac686c3254db01b35 (patch) | |
| tree | a620e7c2fbf7229affbfaec3f87eb7dc04122848 /include/linux/overflow.h | |
| parent | 927069c4ac2cd1a37efa468596fb5b8f86db9df0 (diff) | |
| download | linux-be7cab44ed099566c605a8dac686c3254db01b35.tar.xz | |
io_uring: protect mem region deregistration
io_create_region_mmap_safe() protects publishing of a region against
concurrent mmap calls, however we should also protect against it when
removing a region. There is a gap io_register_mem_region() where it
safely publishes a region, but then copy_to_user goes wrong and it
unsafely frees the region.
Cc: stable@vger.kernel.org
Fixes: 087f997870a94 ("io_uring/memmap: implement mmap for regions")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions
