]> Git Repo - linux.git/commit
io_uring: limit size of provided buffer ring
authorDylan Yudaken <[email protected]>
Mon, 13 Jun 2022 10:11:57 +0000 (03:11 -0700)
committerJens Axboe <[email protected]>
Mon, 13 Jun 2022 11:13:33 +0000 (05:13 -0600)
commitf9437ac0f851cea2374d53594f52fbbefdd977bd
tree6ad0bb8421a4d1e287ad7cf8e57113207bbd251a
parentc6e9fa5c0ab811f4bec36a96337f4b1bb77d142c
io_uring: limit size of provided buffer ring

The type of head and tail do not allow more than 2^15 entries in a
provided buffer ring, so do not allow this.
At 2^16 while each entry can be indexed, there is no way to
disambiguate full vs empty.

Signed-off-by: Dylan Yudaken <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hao Xu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
fs/io_uring.c
This page took 0.045287 seconds and 4 git commands to generate.