]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: limit registration w/ SINGLE_ISSUER
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 27 Sep 2022 00:13:30 +0000 (01:13 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 7 Oct 2022 18:25:30 +0000 (12:25 -0600)
commit518419294801861c87175c54cea32d9566b5f450
tree8e95e41c02cad381a5835910d1492a3bad221339
parent40e6a0f3d83697a6c09b2c1803235bc43371e0a6
io_uring: limit registration w/ SINGLE_ISSUER

IORING_SETUP_SINGLE_ISSUER restricts what tasks can submit requests.
Extend it to registration as well, so non-owning task can't do
registrations. It's not necessary at the moment but might be useful in
the future.

Cc: <stable@vger.kernel.org> # 6.0
Fixes: 88821ff652b9 ("io_uring: add IORING_SETUP_SINGLE_ISSUER")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/f52a6a9c8a8990d4a831f73c0571e7406aac2bba.1664237592.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c