From: sashiko-bot@kernel.org
To: "Dickson Wu" <dickson.wu@certik.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH 6.12.y] RDMA/irdma: avoid use-after-free in icrdma_remove
Date: Sat, 05 Dec 2026 20:17:35 +0000 [thread overview]
Message-ID: <sashiko-outbox-251882@kernel.org> (raw)
In-Reply-To: <20261205-irdma-612-v1-1-1be6ab2e9d8c@certik.com>
> From: Guangshuo Li <lgs201920130244@gmail.com>
>
> commit 8a8088b899e4cdfe558428cd6113d45df81625be upstream.
>
> icrdma_remove() dereferences iwdev after calling
> irdma_ib_unregister_device():
>
> irdma_ib_unregister_device(iwdev)
> -> ib_unregister_device(&iwdev->ibdev)
> -> __ib_unregister_device()
> -> ib_dealloc_device()
>
> irdma registers irdma_ib_dealloc_device() as the dealloc_driver
> callback in its ib_device_ops. The RDMA core explicitly documents
> ib_unregister_device() that when ops.dealloc_driver is used, ib_dev
> [ ... ]
> Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com>
> Link: https://patch.msgid.link/20260914122840.1709743-1-lgs201920130244@gmail.com
> Signed-off-by: Leon Romanovsky <leon@kernel.org>
> [ adapted to 6.12.y: save the VSI number and keep filter removal order ]
> Signed-off-by: Dickson Wu <dickson.wu@certik.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261205-irdma-612-v1-1-1be6ab2e9d8c@certik.com?part=1
prev parent reply other threads:[~2026-12-05 20:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2026110441-support-onboard-d0bb@gregkh>
2026-12-05 20:05 ` [PATCH 6.12.y] RDMA/irdma: avoid use-after-free in icrdma_remove Dickson Wu via B4 Relay
2026-12-05 20:17 ` sashiko-bot [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=sashiko-outbox-251882@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dickson.wu@certik.com \
--cc=linux-rdma@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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