From: Leon Romanovsky <leon@kernel.org>
To: Jason Gunthorpe <jgg@ziepe.ca>, Or Gerlitz <ogerlitz@ddn.com>
Cc: Mark Zhang <markzhang@nvidia.com>,
Patrisious Haddad <phaddad@nvidia.com>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH] RDMA/cma: Fix hardware address comparison length in netevent callback
Date: Thu, 02 Jul 2026 07:04:29 -0400 [thread overview]
Message-ID: <178299026931.607917.10072787718698047212.b4-ty@kernel.org> (raw)
In-Reply-To: <20260617-fix-cma-ipoib-v1-1-03f869344304@ddn.com>
On Wed, 17 Jun 2026 14:21:05 +0300, Or Gerlitz wrote:
> The cited commit hardcoded the hardware address comparison len to ETH_ALEN.
>
> This breaks IPoIB, which uses 20-byte addresses. By truncating the
> memcmp, the CMA may incorrectly assume the target address is
> unchanged and fails to abort the stalled connection.
>
> Fix this by replacing ETH_ALEN with the dynamic neigh->dev->addr_len
> to correctly evaluate the full address regardless of the link layer.
>
> [...]
Applied, thanks!
[1/1] RDMA/cma: Fix hardware address comparison length in netevent callback
https://git.kernel.org/rdma/rdma/c/18313833e2c6de
Best regards,
--
Leon Romanovsky <leon@kernel.org>
prev parent reply other threads:[~2026-07-05 14:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 11:21 [PATCH] RDMA/cma: Fix hardware address comparison length in netevent callback Or Gerlitz via B4 Relay
2026-06-17 13:34 ` Leon Romanovsky
2026-07-02 11:04 ` Leon Romanovsky [this message]
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=178299026931.607917.10072787718698047212.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=jgg@ziepe.ca \
--cc=linux-rdma@vger.kernel.org \
--cc=markzhang@nvidia.com \
--cc=ogerlitz@ddn.com \
--cc=phaddad@nvidia.com \
/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