Re: [PATCH 1/2] io_uring/kbuf: fix signedness in this_len calculation

From: Jens Axboe
Date: Wed Aug 27 2025 - 10:41:29 EST



On Wed, 27 Aug 2025 19:43:39 +0800, Qingyue Zhang wrote:
> When importing and using buffers, buf->len is considered unsigned.
> However, buf->len is converted to signed int when committing. This
> can lead to unexpected behavior if buffer is large enough to be
> interpreted as a negative value. Make min_t calculation unsigned.
>
>

Applied, thanks!

[1/2] io_uring/kbuf: fix signedness in this_len calculation
commit: c64eff368ac676e8540344d27a3de47e0ad90d21

Best regards,
--
Jens Axboe