diff options
author | Jens Axboe <axboe@kernel.dk> | 2025-06-03 07:42:28 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-06-03 15:32:44 -0600 |
commit | 607d09d1a01e9f29e91733e3a08b63ed240aacb2 (patch) | |
tree | d06e429f7822708192e37602063b73640536f321 /scripts/lib/kdoc/kdoc_files.py | |
parent | e931d3a9d5200bae9d938be2582072b2898e37f7 (diff) |
io_uring/kbuf: limit legacy provided buffer lists to USHRT_MAX
The buffer ID for a provided buffer is an unsigned short, and hence
there can only be 64k added to any given buffer list before having
duplicate BIDs. Cap the legacy provided buffers at 64k in the list.
This is mostly to prevent silly stall reports from syzbot, which
likes to dump tons of buffers into a list and then have kernels with
lockdep and kasan churning through them and hitting long wait times
for buffer pruning at ring exit time.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions