Re: [PATCH] io_uring/dma-buf: reject dma-bufs larger than UINT_MAX

From: Anuj Gupta

Date: Thu Dec 03 2026 - 00:17:37 EST


On Tue, Dec 01, 2026 at 02:39:09PM +0800, Bilal Hashim wrote:
> Reject dma-bufs whose size exceeds UINT_MAX during registration in
> __io_register_dmabuf().

The block layer already rejects this at registration, in
blkdev_init_dma_buf_io_ctx(). Adding checks for block layer
limitations in io_uring is not a great idea anyway.