]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/memmap: return -EINVAL from get_unmapped_area() on bad mmap
authorYi Xie <xieyi@kylinos.cn>
Tue, 30 Jun 2026 09:12:06 +0000 (17:12 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2026 11:37:07 +0000 (05:37 -0600)
commitdf645b745941ea829b39134ac342f730f4d9d978
treec1505f102d397c9d0053952d893fd789a6e3b184
parent3996771b8f759729cba0a28007438c085f814d61
io_uring/memmap: return -EINVAL from get_unmapped_area() on bad mmap

get_unmapped_area() returns -ENOMEM when io_uring_validate_mmap_request()
fails, but validation errors are -EINVAL. Propagate that errno to
userspace, like io_uring_mmap() already does.

Signed-off-by: Yi Xie <xieyi@kylinos.cn>
Link: https://patch.msgid.link/20260630091206.126206-1-xieyi@kylinos.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/memmap.c