mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anuj Gupta <anuj20.g@samsung.com>
To: Bilal Hashim <AeeSec@126.com>
Cc: Jens Axboe <axboe@kernel.dk>,
	Pavel Begunkov <asml.silence@gmail.com>,
	io-uring@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] io_uring/dma-buf: reject dma-bufs larger than UINT_MAX
Date: Thu,  3 Dec 2026 10:45:52 +0530	[thread overview]
Message-ID: <20261203051552.2611770-1-anuj20.g@samsung.com> (raw)
In-Reply-To: <179610714926.42980.6300011710027404841@126.com>

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.

  parent reply	other threads:[~2026-12-03  5:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  6:39 Bilal Hashim
     [not found] ` <CGME20261203051712epcas5p4c1e58cf6006d0e5e48c5487482eb8fca@epcas5p4.samsung.com>
2026-12-03  5:15   ` Anuj Gupta [this message]
2026-12-03 12:19 ` Pavel Begunkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261203051552.2611770-1-anuj20.g@samsung.com \
    --to=anuj20.g@samsung.com \
    --cc=AeeSec@126.com \
    --cc=asml.silence@gmail.com \
    --cc=axboe@kernel.dk \
    --cc=io-uring@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®