From: Jason Gunthorpe <jgg@ziepe.ca>
To: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Cc: leon@kernel.org, Dean Luick <dean.luick@cornelisnetworks.com>,
Breandan Cunningham <brendan.cunningham@cornelisnetworks.com>,
Arnd Bergmann <arnd@arndb.de>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH v5 00/24] Migrate to hfi2 driver
Date: Thu, 3 Sep 2026 21:03:38 -0300 [thread overview]
Message-ID: <20260904000338.GP2890729@ziepe.ca> (raw)
In-Reply-To: <4d55cfa6-ee84-4688-b15b-3c35b06a89fd@cornelisnetworks.com>
On Thu, Sep 03, 2026 at 02:22:05PM -0400, Dennis Dalessandro wrote:
> On 9/3/26 1:59 PM, Jason Gunthorpe wrote:
> > On Thu, Sep 03, 2026 at 01:54:27PM -0400, Dennis Dalessandro wrote:
> > > While sharing similar bones, the chip for the Cornelis Networks next
> > > generation fabric technology has some fundamental differences that
> > > resulted in a near complete re-write of the driver. It also does not
> > > use the private cdev interface that the hfi1 driver exposes. After
> > > discussing this with the RDMA maintainers we have decided to go with
> > > the approach of moving to a new driver and declaring hfi1 obsolete.
> > >
> > > It is desirable to keep hfi1 around temporarily to let user APIs
> > > catch up to support access through the uverbs device rather than the
> > > private hfi1 cdev.
> > >
> > > This driver is designed to support future products as well.
> > >
> > > Portions of this series were developed with the assistance of a large
> > > language model (LLM), reviewed and verified by the author. Each
> > > commit affected carries an "Assisted-by: LLM" trailer per
> > > Documentation/process/coding-assistants.rst.
> > >
> > > This series applies on top of the rdma/for-next branch.
> > >
> > > Changes since v4:
> > > - cport.c: rate-limit the "Op N SS failed" error log in cport_req_fn() and fix a
> > > use-after-free where msg->req->hdr fields were read after cwput(msg) had
> > > already freed msg, by moving the error log before the cwput() call.
> > > - mad.c: treat undersized CH_OP_UMAD_9B/16B payloads in cport_umad_handler() as
> > > a normal, expected occurrence (e.g. periodic SM keep-alive/poll probes)
> > > rather than a protocol error; count them via n_vl15_dropped and silently
> > > drop instead of returning MSG_RSP_STATUS_INVALID_STATE, to avoid flooding
> > > the console.
> > > - Updated the AI attribution trailer on all commits from
> > > "Assisted-by: AGENT:MODEL" to the simplified "Assisted-by: LLM" per updated
> > > upstream guidance.
> >
> > There are over a hundred sashiko messages, this change log seems far
> > to small. Are you addressing them?
>
> Those were corrected in v3. See the "Changes since v2" or is there another
> Sashiko report I need to look in to?
Yeah, you need to check every time. v4 got hundreds more. This series
got hundreds of comments too.
https://sashiko.dev/#/patchset/178845806706.2825126.2210865708266527909.stgit%40awdrv-04
You probably need to run it locally to handle something so big
Like this for example looks pretty obviously right:
This file contains structures like diag_pkt that are meant to communicate
between kernel and user code. Should this file be exported to include/uapi/
instead of remaining in the internal driver directory? Keeping it in the
internal driver directory prevents it from being exported to userspace by
the headers_install targets.
This looks kinda serious:
This is a pre-existing issue, but does this code allow unprivileged users to
spoof hardware job keys via user namespaces?
If an attacker creates a new user namespace, their global UID maps to local
UID 0 and they gain CAP_SYS_ADMIN locally. When generate_jkey() evaluates
from_kuid(current_user_ns(), uid), it would resolve to 0. Additionally,
capable(CAP_SYS_ADMIN) would evaluate to true against the attacker's namespace.
Should this use init_user_ns rather than current_user_ns() to properly
enforce hardware tenant isolation and prevent bypassing administrative
bounds?
And so on.
If you don't fix them now, we will be deluged by bug fix patches and I
don't want to deal with that.
Jason
prev parent reply other threads:[~2026-09-04 0:03 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 17:54 [PATCH v5 00/24] Migrate to hfi2 driver Dennis Dalessandro
2026-09-03 17:54 ` [PATCH v5 for-next 01/24] RDMA/hfi2: Start hfi2 driver by basing off of hfi1 Dennis Dalessandro
2026-09-03 17:54 ` [PATCH v5 for-next 02/24] RDMA/hfi2: Add in HW register definition files Dennis Dalessandro
2026-09-03 17:54 ` [PATCH v5 for-next 03/24] RDMA/hfi2: Add counter accessor functions Dennis Dalessandro
2026-09-03 17:54 ` [PATCH v5 for-next 04/24] RDMA/hfi2: Add in MAD handling related headers Dennis Dalessandro
2026-09-03 17:54 ` [PATCH v5 for-next 05/24] RDMA/hfi2: Add in HW register access support Dennis Dalessandro
2026-09-03 17:54 ` [PATCH v5 for-next 06/24] RDMA/hfi2: Add in trace header files Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 07/24] RDMA/hfi2: Add in trace support Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 08/24] RDMA/hfi2: Add system core header files Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 09/24] RDMA/hfi2: Add driver and interrupt infrastructure Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 10/24] RDMA/hfi2: Add initialization and firmware support Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 11/24] RDMA/hfi2: Add cport management Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 12/24] RDMA/hfi2: Implement MAD handling Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 13/24] RDMA/hfi2: Add IO related headers Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 14/24] RDMA/hfi2: Add PIO send infrastructure Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 15/24] RDMA/hfi2: Add SDMA infrastructure Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 16/24] RDMA/hfi2: Implement data moving infrastructure Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 17/24] RDMA/hfi2: Add verbs core Dennis Dalessandro
2026-09-03 17:55 ` [PATCH v5 for-next 18/24] RDMA/hfi2: Add RC protocol support Dennis Dalessandro
2026-09-03 17:56 ` [PATCH v5 for-next 19/24] RDMA/hfi2: Add in support for verbs Dennis Dalessandro
2026-09-03 17:56 ` [PATCH v5 for-next 20/24] RDMA/hfi2: Add misc header files Dennis Dalessandro
2026-09-03 17:56 ` [PATCH v5 for-next 21/24] RDMA/hfi2: Add the rest of the driver Dennis Dalessandro
2026-09-03 17:56 ` [PATCH v5 for-next 22/24] RDMA/hfi2: Make it build and add TODO list Dennis Dalessandro
2026-09-03 17:56 ` [PATCH v5 for-next 23/24] RDMA/hfi2: Modernize mmap to use rdma_user_mmap_entry infrastructure Dennis Dalessandro
2026-09-03 17:56 ` [PATCH v5 for-next 24/24] RDMA/hfi2: Support ipoib Dennis Dalessandro
2026-09-03 17:59 ` [PATCH v5 00/24] Migrate to hfi2 driver Jason Gunthorpe
2026-09-03 18:22 ` Dennis Dalessandro
2026-09-04 0:03 ` Jason Gunthorpe [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=20260904000338.GP2890729@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=arnd@arndb.de \
--cc=brendan.cunningham@cornelisnetworks.com \
--cc=dean.luick@cornelisnetworks.com \
--cc=dennis.dalessandro@cornelisnetworks.com \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.