From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from hr2.samba.org (hr2.samba.org [144.76.82.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8B96262FC0; Thu, 26 Feb 2026 09:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=144.76.82.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772098358; cv=none; b=ZlAB7cf6lbQpY/13L4s4WpxGq8rfBdaf2P6yHyVxIoRSzJ3IlqEpidhOsJCh3lCa403dpm2jHkXmWk5jnI7BYSkdBxMG5xMFtJmcL04ec4qwOMer5mGGRb3R3E6x6y7X5/f2/zvrKX5rj139zMTa746h2DwUpxQD3tn9fzRBkRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772098358; c=relaxed/simple; bh=tVQ1Tla0WZftYQlJplXdMjAqBqpf8EtLKK3BzXz5Szw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ngOQlRrea2/KWTL/PKYYoyokIrsvoYHvu+Fn523XvYSjFeJdmHLKki4lvzoTkwlcQbxffMpN5mxw6aijONg88eQNDhtKTtCFnWcVIdGpJNsuYK1btiSLPiZHwxT/cTQw0TBBW0R6eJVCVt5olIVYoQmoXWoITZS7xy12eMH48V0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=samba.org; spf=pass smtp.mailfrom=samba.org; dkim=pass (3072-bit key) header.d=samba.org header.i=@samba.org header.b=PTuZuxEO; arc=none smtp.client-ip=144.76.82.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=samba.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samba.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (3072-bit key) header.d=samba.org header.i=@samba.org header.b="PTuZuxEO" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=From:Cc:To:Date:Message-ID; bh=bgJobNO/XTwgsytGekJINzhShMgRvCBytOfe1cAppHs=; b=PTuZuxEOdvVMa+r5eevcZnDvx8 89iGipJiGFZO+ZZKPzabeqGO9hTzTGwVi/EdNWVdssLD1pgtwy4gXMFIlXsyq8IkM4QfAsYxzt5iu pQnt8SXXEzCM+0ZrOoMUbIHwLNHCerns9rZLm2z3ggtWoFuI0M/Ih9FmJMcvX2LgUDX/LGy/MsBjY MOu3jchTK0BkTkyK9KJ2dEk7Pee90kQYGgB4ZW0A4PLEv24FU8UzcDa2MyalpteazW4x/g7rAtcc4 MoXy7167REl7oNDJMIvVguLkQoQZn71VLjHCQhjnW5J3QehByQETOt/No677UGcMNlHsH7Jdqwtcw 7RXNnEJh7yx9UgwHEPHtKRXZikowGZo/Klqy1lPA774sjFXfREKwi2Bj2EZKyHVHsOmlLe2r4JDr8 Ayq1mncrUvuPjtowXeKiXzjqyyzQueaFwazCCXZxtcMQFtkykiypUrbfoHWC5gyecwoLA2kNKkKg2 Mr7+0oven5BHA1YUdBQW9JKO; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__ECDSA_SECP256R1_SHA256__CHACHA20_POLY1305:256) (Exim) id 1vvXjQ-00000008eKL-1e62; Thu, 26 Feb 2026 09:32:28 +0000 Message-ID: Date: Thu, 26 Feb 2026 10:32:27 +0100 Precedence: bulk X-Mailing-List: linux-cifs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] RDMA/core: check id_priv->restricted_node_type in cma_listen_on_dev() To: Leon Romanovsky Cc: linux-rdma@vger.kernel.org, Jason Gunthorpe , Steve French , Namjae Jeon , Tom Talpey , Long Li , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org References: <20260224165951.3582093-2-metze@samba.org> <20260225125211.GE9541@unreal> Content-Language: en-US From: Stefan Metzmacher In-Reply-To: <20260225125211.GE9541@unreal> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Am 25.02.26 um 13:52 schrieb Leon Romanovsky: > On Tue, Feb 24, 2026 at 05:59:52PM +0100, Stefan Metzmacher wrote: >> When listening on wildcard addresses we have a global list for >> the application layer rdma_cm_id and for any existing >> device or any device added in future we try to listen >> on any wildcard listener. >> >> When the listener has a restricted_node_type we >> should prevent listening on devices with a different >> node type. >> >> While there fix the documentation comment of >> rdma_restrict_node_type() to include rdma_resolve_addr() >> instead of having rdma_bind_addr() twice. >> >> Fixes: a760e80e90f5 ("RDMA/core: introduce rdma_restrict_node_type()") >> Cc: Jason Gunthorpe >> Cc: Leon Romanovsky >> Cc: Steve French >> Cc: Namjae Jeon >> Cc: Tom Talpey >> Cc: Long Li >> Cc: linux-rdma@vger.kernel.org >> Cc: linux-cifs@vger.kernel.org >> Cc: samba-technical@lists.samba.org >> Signed-off-by: Stefan Metzmacher >> --- >> drivers/infiniband/core/cma.c | 6 +++++- >> include/rdma/rdma_cm.h | 2 +- >> 2 files changed, 6 insertions(+), 2 deletions(-) > > Applied, thanks. Great! Will this be scheduled for rc2? Would be great as it fixes a regression in ksmbd with iwarp. Thanks! metze