diff options
author | Dylan Yudaken <dylany@fb.com> | 2022-06-13 12:11:57 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-06-13 13:13:33 +0200 |
commit | f9437ac0f851cea2374d53594f52fbbefdd977bd (patch) | |
tree | 6ad0bb8421a4d1e287ad7cf8e57113207bbd251a /fs/cifs/trace.h | |
parent | io_uring: fix types in provided buffer ring (diff) | |
download | linux-f9437ac0f851cea2374d53594f52fbbefdd977bd.tar.xz linux-f9437ac0f851cea2374d53594f52fbbefdd977bd.zip |
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 <dylany@fb.com>
Link: https://lore.kernel.org/r/20220613101157.3687-4-dylany@fb.com
Reviewed-by: Hao Xu <howeyxu@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/cifs/trace.h')
0 files changed, 0 insertions, 0 deletions