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=1796041813; b=jHaGENBX5ypSk86lvuVtnd35shnWGgQr/4xzxSEUOM8eh60D51zBEXxvpgfmqNqzGZTw YsNwRnQ/RgsiinTe67Ln1B+/8ZfuPsuElX30w7cMUbdV8B3WoLOXfkAzJWmbnCygk+FPH eXX1BpjCoYoNCtRNezGp8gq/G/iaw9wETeR33OvbRmNzj9kHdBVhg3Mi6alcZxGtN0iZ1 rPWWkMpSdLavwShJh7Em/Ca5X3RjNYzcDIY0Rz0mQeMSOrqlfhaMP2yi+vb5hiKLJzNOC EA9dLIh8S/69bDLeJzThBy6tIEBr0kJW3wuDaxUpIS2bx0e0UmcRMLxAwsZ5Ts+DGDQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796041813; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=8mv8qwJ4dsy0AL0jlNAAAgajRof2/YeVrhHIL7Rs+KI=; b=aYtidiH5MREGI4RmrhsgIrvh8gS2d1AAWSAS34Q9wZPOxYZmUK2ITU9h5iBm75U4KQ/s L8G5BITRjK7eGy4pdUFhvM6jslqO0Ivx24uWdxMUFQPZ/Qm3wyVPoiRK9ndnc45OKzwzw irsL6/ogr4IRtdbCy6SRoggetoCMWaDWaSl6zui+/YKTJ2OyG/JfvTC6zDhvfFIludFLz kH34siTqZKdaaxKaCclQw0ZgTzOfeCKTGqWczRL2PkNdslZgFcTDBBsXh4sUiAp+ox1HM DFj/vPvhkTo/tT22o2of0HwputpnQVzCq3TjrBT7u0LQp65Yce3Okb6C1S/zC/TZ4DA== 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=R5QFINss; 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 73701606A329 for ; Mon, 30 Nov 2026 12:30:13 +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=R5QFINss Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0B7C1F00899; Mon, 30 Nov 2026 12:30:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796041812; bh=8mv8qwJ4dsy0AL0jlNAAAgajRof2/YeVrhHIL7Rs+KI=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=R5QFINssLb4gcezHSvW3UTdvoqWx6Gc39WHXSmv7vh3eKyvsGnCyPpWmJvtz7KatB Wy59/FHYiwtt5Yz6tsLR0D7uXIznwT/d5GVmO6T77kIfOMB6eYtpClJYTcJ1bu530k tTYgm/vMqw02+6Lj0stmD/VEcenzwX5ZIoxTjwd1yhaBEzxOvebUoBdKnV+iPFSz17 xduGmtUtx5yv7lhey7BMynNSFwbbjkHu1yi/PKbhGksoQAAAl879Oj4gujR+Wbr5EM tFdxrbwA4pywNPU+jKOSvChS2lruxBfBQ9sTPXG1AXQHYC5ZA9j+1aMOTZOyAb8145 6qiS9FVfH8Ygw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH rdma-next v2] 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: <20261130-mlx5-no-warn-page-size-v2-1-319b66de65af@nvidia.com> References: <20261130-mlx5-no-warn-page-size-v2-1-319b66de65af@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 12:30:12 +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/20261130-mlx5-no-wa= rn-page-size-v2-1-319b66de65af@nvidia.com?part=3D1