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=1796501858; b=VNRIdLV2EJU15qDaEHMsanKtsMx4RoKT3ff2l5aVadf0cxoyCxqzS63GXXfF75To1ne7 k9hxDBbmeGq+yUMnHesxI3OFYCIvYRMEXcYZAjncCVgFGzwHEEA+0FEdq/NqLaFAEwX3S JQ31kNMC+yWBHeo5NiPeCi1s+aFzCAGAgHDnHbX0R2TvhGwOwWeW0+lQhMXm2kGbQhaoz d18rNo/MOE6TUgi2nM2lbmcw1Pyu1dQ0sSHnh8+A/du/j2fdQ0J7l2gwwXSW0oshJK2xT 7/WpvMGdUNqbZviivsmYC9wWrCwpD9jlh6lDKWC2pF0fCDaraHv72HFUWFlAaB6bKCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796501858; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=3eXghBiEaNPJ6p4akHm9xvQJezYUVvQoApO9ztxmB00=; b=mejIcPiX03QGriPYUuVdDzthTQm8EWU2tJwoh89pAzxmMVljk3cQJhtCiYPCrTCLkFsV 4DZzwR1Hj5ioZKKYHMPKNopGNbIBGk6UeHoTLp2v/bLbtTlgI+WCgm+r1eU1jlDG5tBID Ki7FyAiVFX/wv/2bIQr/pGLvEw/00UseUeiNEVzTvnibg8h7VVT/uBbts9aQPFhgRf0Dr /pwbOh3QGNgl50C1e552jK7vwbjl+ViX4A0JtV84kfrgDp/uSaxJcbyos/irDA2YsASVU PDi5Ye3wXJbOK1lyZlKXbwd2R7mUZiMR+gFz+25FLUh3o5qQpnMZM9LBPdDEfHBoDqg== 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=nhqmhkhP; 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 A8E0C606A31F for ; Sat, 5 Dec 2026 20:17:38 +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=nhqmhkhP Received: by smtp.kernel.org (Postfix) with ESMTPSA id 314F71F00A10; Sat, 5 Dec 2026 20:17:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796501858; bh=3eXghBiEaNPJ6p4akHm9xvQJezYUVvQoApO9ztxmB00=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=nhqmhkhPZ6NZnMnTbmxIVZtmsGLgEzgUEMF3+GanvMOBAcsbosH5cOgK/tRFVRbZw loLaJYtFhM/Tm8QLTf03O2VI6UwaYr44NyytxZ/1ygksnZ3dCb0i4KRBx1vFVc4f7v lTFtwzybeWmMrJnmH57l2M4fYWGgm+QxMFc3dKbXGpkX2KE38nWJBVg5wDwnN8D4XD 0B1cRq+klX06TTFqvJDlLZUCNt4zd1xOuMT4KqeyR+MqSaQF7hifdkEPCF0c5rRCLz dAquQhOV7KLof2txMNGqUl7fXnWX3PmI/T4fmnrvkuv9gP/KT1Sc47+ZiUTASjuNCC lTQL4wAmLNMMw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 6.12.y] RDMA/irdma: avoid use-after-free in icrdma_remove Reply-To: sashiko-reviews@lists.linux.dev To: "Dickson Wu" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261205-irdma-612-v1-1-1be6ab2e9d8c@certik.com> References: <2026110441-support-onboard-d0bb@gregkh> <20261205-irdma-612-v1-1-1be6ab2e9d8c@certik.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 20:17:35 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > From: Guangshuo Li >=20 > commit 8a8088b899e4cdfe558428cd6113d45df81625be upstream. >=20 > icrdma_remove() dereferences iwdev after calling > irdma_ib_unregister_device(): >=20 > irdma_ib_unregister_device(iwdev) > -> ib_unregister_device(&iwdev->ibdev) > -> __ib_unregister_device() > -> ib_dealloc_device() >=20 > 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 > Link: https://patch.msgid.link/20260914122840.1709743-1-lgs201920130244@g= mail.com > Signed-off-by: Leon Romanovsky > [ adapted to 6.12.y: save the VSI number and keep filter removal order ] > Signed-off-by: Dickson Wu Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205-irdma-612-= v1-1-1be6ab2e9d8c@certik.com?part=3D1