Skip to content
Commit 607d09d1 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent e931d3a9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment