From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=203.254.224.25 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796275050; b=nqpJPPVBGELZcHL09UztjAExjItcrpzWL42rDz1kYapY3nK0xmUtotWDcG9+VoYxOFJ/ h22MLg7EBoUUNAy2s+zf8KWjXtETnMdnPMX+gNhLpIG8WB/vH2lhGz3EZy+4y2lpyL3cn CS/oDGDL+wfjwJweRaxfgHuVnOb2WvPTd31kk//UGXETp9ifU4f1Oza5o41uU2OHwopna Lv3jl0zOPmkUn+Dm58+xTuekkWiQLTc7Nq7xYgthjR00lxLKfvrfejmrsHuY5Zk/h+7gY WLVTKuvLNux/ulV15YgBS+48+IxAhMsFksW4jIYrd3tKBOHemCnVfr8YcCJd2Zzg2ww== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796275050; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Received:Received: Received:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: In-Reply-To:MIME-Version:Content-Transfer-Encoding:X-CMS-MailID: X-Msg-Generator:Content-Type:X-Sendblock-Type:CMS-TYPE:cpgsPolicy: X-CFilter-Loop:X-CMS-RootMailID:References; bh=srWpXfrCcVsCl8Yi6+/TIn8Xbeg9Jt2729G/q6+BDzs=; b=p7zJmzqRFD099Vz7ckkQQGH4bh0FszhGEwg4fkKnJYMPdQvaLZkaBsuahR8GIAuN6url cqAXUf4GIlM/hFNAOZ0VTRWmXvw7O5SHqdYJeZIJI3LrFeM8e+ZwpAI1t3Iamgknup8ly 8YfbXHDIbdHimT2IOYE+WF7wz7qdwctU7s6xnbiZPIoOeF0VQMd77xWtgRgpX5k0H8oCD IyMObdYmjL6gisEheSJDkqV8WoEBNuLSWHkPlI4fXMNzdUKT1CmG3iEphnRtPDo8ZmbVP IeN2zmtYqJcc971zG7d23dGiUrdknabAUhxfP0SaAet4lrcM89fY3wSrmwV53T9+ItA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=lWBtDOVM; arc=none smtp.remote-ip=203.254.224.25 Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9F2C9606A32D for ; Thu, 3 Dec 2026 05:17:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9F2C9606A32D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.a=rsa-sha256 header.s=mail20170921 header.b=lWBtDOVM Received: from epcas5p2.samsung.com (unknown [182.195.41.40]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20261203051721epoutp021ff37d841da6deed2fac0bac8d8d838a~tpqIEydKn1052810528epoutp02M for ; Thu, 3 Dec 2026 05:17:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20261203051721epoutp021ff37d841da6deed2fac0bac8d8d838a~tpqIEydKn1052810528epoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1796275041; bh=srWpXfrCcVsCl8Yi6+/TIn8Xbeg9Jt2729G/q6+BDzs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lWBtDOVMCVyzYpM/wKXl2koZ1+ZAJy4XPgXi1hoaKtc3SlUrBH5QIYJuDsRhtSL12 VPi6wCgdED2jXs7FsRHbGqWvFPeCOabL7+XREYpIE32xFafCPB1xgLWOQTAWEhSj3k Tjkt58+L0bqNx85dFUd12bnOmkgJ9662Gp6TB9tM= Received: from epsnrtp03.localdomain (unknown [182.195.42.155]) by epcas5p1.samsung.com (KnoxPortal) with ESMTPS id 20261203051720epcas5p1556a298be707699898548d3dd03181b4~tpqH0CTyI0584105841epcas5p16; Thu, 3 Dec 2026 05:17:20 +0000 (GMT) Received: from epcas5p4.samsung.com (unknown [182.195.38.87]) by epsnrtp03.localdomain (Postfix) with ESMTP id 4jg2tm0WQvz3hhT4; Thu, 3 Dec 2026 05:17:20 +0000 (GMT) Received: from epsmtip1.samsung.com (unknown [182.195.34.30]) by epcas5p4.samsung.com (KnoxPortal) with ESMTPA id 20261203051712epcas5p4c1e58cf6006d0e5e48c5487482eb8fca~tpp-jQwFv1676816768epcas5p4U; Thu, 3 Dec 2026 05:17:12 +0000 (GMT) Received: from localhost.localdomain (unknown [107.99.41.245]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20261203051711epsmtip1af0420cce29eafed8477b186f17f8348~tpp_2qbHF0613206132epsmtip1C; Thu, 3 Dec 2026 05:17:11 +0000 (GMT) From: Anuj Gupta To: Bilal Hashim Cc: Jens Axboe , Pavel Begunkov , 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 Message-Id: <20261203051552.2611770-1-anuj20.g@samsung.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <179610714926.42980.6300011710027404841@126.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMS-MailID: 20261203051712epcas5p4c1e58cf6006d0e5e48c5487482eb8fca X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P cpgsPolicy: CPGSC10-542,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20261203051712epcas5p4c1e58cf6006d0e5e48c5487482eb8fca References: <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.