]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
io_uring: limit fixed table size by RLIMIT_NOFILE
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 20 Aug 2021 09:36:35 +0000 (10:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 19:10:46 +0000 (13:10 -0600)
commit3a1b8a4e843f96b636431450d8d79061605cf74b
tree8341c98c49c5595ce7ad5d02186208fa31b307aa
parent99c8bc52d1321ab3a711eba2941eadbe7425230f
io_uring: limit fixed table size by RLIMIT_NOFILE

Limit the number of files in io_uring fixed tables by RLIMIT_NOFILE,
that's the first and the simpliest restriction that we should impose.

Cc: stable@vger.kernel.org
Suggested-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/b2756c340aed7d6c0b302c26dab50c6c5907f4ce.1629451684.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c