From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795953518; b=3CksqQ+y5ak5i32JLMqAJgG6S8wM2U48hQ7982Y7MV+XgCRniH7SePBIkZDmtl+B6QCv 8YeJRFLQx7VbtdCDyWzBCtVSCelNV752ICSYyxjIN1MuvtXVhqK1hSZTyp+jJ/Odi0pk/ kWya980yTlE3SKvtxEPBPa+RezLb3jEy3i9ZXOPiv7xddtwaNjurLcPqk6pdiLm44moNC RPLsJu1sh/clTQRJCqoZkz0yMUADGhfct79O0SPMeaJAwyA1Uc7VR54faua6ug4RlqwqD NgaXwEwQlYbpttwScxV7MMmabuIP9h39vJdQHyluuLALcwSN8ygTKVm8qzawTI4W7Cg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795953518; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=22XDFqzpzxCGmcTwyupTvVidZ7A6OGj1a+bPhV4YaXI=; b=5L8haea7CpdVKbnKD8BH+b9p6D9Ny0zW0aiA9Y5FKj9uK2nZdyejJiAmXNLg4sJejuZA U0XyjkRdCcfutDq+HzXWzX+rAZZD/G9pi3uowwE5gpBwQTYp/Vzn7Ln+DvIwl1CKZM+k4 aGBhhUEa1l/cX9AAJe16iVHTqTSUmeOHtan11QV396R+9c53DfejYZCzPGnhGVSgSuMIX O3VUMVLzW0BXTi13Va4mZTmc8SlaIQj2wSOab0mY/oJQ4xf8FJgX66gYfdH71+rfDT2ll H9euKNEo5PCIlQCIHmUkZWqYMQ1xX9hptbUxAulxAAdAkw+BL0zu2TwvnFb4GAxLwcg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NxvIK6wf; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B11BF606A331 for ; Sun, 29 Nov 2026 11:58:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NxvIK6wf Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66A811F00896; Sun, 29 Nov 2026 11:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795953518; bh=22XDFqzpzxCGmcTwyupTvVidZ7A6OGj1a+bPhV4YaXI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=NxvIK6wfmHhQPRWwGIs6lfmKiVoSbhF62mbcBePPG7afYZaQFjS4Os3wCPfRmRPCq NVlrt2Reeh1aylUwRyP5MtjMuNLvSK1P8pnj0wquTWtrxBD+5J2HWP/xop43KqJkh0 xtJxltP7o15jtP88qOuJh8y8C28zjOrcMJLDYhVa4rXRrWnrU+0k6vtY35oyYXherA QbIQLLlz6F6FCm9MYx5pS4bvr9/aAkA2I33YdE6VD1mmeyKioAp1u7zRa4BvtsnEVO vB0RmGEKY9bUVKK6UQTmXSzNrst5hjGlB+xYsRxyS9/ILq6p2BhQQfNWm5OLnnQwfy ZlGy9V5Hf3JVw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH rdma-rc] RDMA/mlx5: Don't WARN on a user iova that can't be mapped Reply-To: sashiko-reviews@lists.linux.dev To: "Edward Srouji" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261129-mlx5-no-warn-page-size-v1-1-02b15ebaea8c@nvidia.com> References: <20261129-mlx5-no-warn-page-size-v1-1-02b15ebaea8c@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 11:58:37 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Yishai Hadas >=20 > alloc_cacheable_mr() and can_use_umr_rereg_pas() warn when no page size > fits the MR. The WARNs rely on ib_umem_find_best_pgsz() never returning > 0 for drivers that support PAGE_SIZE, as its kdoc promises. >=20 > commit 09ea6837a043 ("RDMA/umem: Be careful about boundary > conditions in ib_umem_find_best_pgsz()") broke that promise, the > function now returns 0 when iova + length overflows. The iova is > provided by the user on MR registration and rereg, so any user can > trigger the WARN and panic a system running with panic_on_warn. >=20 > Drop the WARN in both places, and handle it as any other bad input. >=20 > Fixes: 09ea6837a043 ("RDMA/umem: Be careful about boundary conditions in = ib_umem_find_best_pgsz()") > Signed-off-by: Yishai Hadas > Signed-off-by: Edward Srouji Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129-mlx5-no-wa= rn-page-size-v1-1-02b15ebaea8c@nvidia.com?part=3D1