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=1796475937; b=Q63JapG7xeqFlVVqRPKiuJQjegWlZGZ3bkFdgcoKfVHineibCbaFKCdAmbHBzucDAHjZ eAYEkG+AhIL7kfwkGWS/4D4yzp7+pgbq7BF4zLxr8RGlKGftCchwoMB04jDoV9Wc/800m +7GOUIc8+jBkNf9IZuiMFjtbDdunyZoBCRVqoDnge2eOKBkXLJHOCG3GoWEfPKTTTnou7 +2gME3WmGZzgnSbm0QeULZjGzInOETL93dqVdNDCN5jCGD9c+zs5nBfpWxJP8mDpE0p9g pWiuhrt3KzYjZEcQceA3kr1eFF7J7KLHDe+pkryhkiaLltS/q+F0RPdxM/1gSuP4JAg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796475937; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=DGkegSc0phLzNjNW40B3qb2OrGn7ubN6UuKeaPhpbjQ=; b=bRlHvzOsnZOjGPuqfPWMvzLSCz9PCBXFEcUG0M8E1WviUnr5hC7PHKROdtC4o65usGxM AiUFiMSIzDMY0HaxTp1bd5XEP7GqeFq7lLyPsYTek7VV6zdOqvmrkwRb2oZ+6GSz+4JFq nDCdabcM+km10IQaNrRI9oZttPMnEkS5zARSgjsuJYz1xXOSpR1Ej7F1tr0QO8Aw4Cp1H kqHhkEF70NNOZd6/91aD2TMZCOreqS4VXh4/vNk9c/akJsMEu5kBlivIR8kxhgncXbGmn Tc7/r2Kc7l/s+JSPMhdyaXHAVPSeOcXgUq87xuaeRD3XiwoNlaGZpInKn8oT8p2XYYg== 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=NwmWjbfR; 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 6A515606A322 for ; Sat, 5 Dec 2026 13:05:37 +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=NwmWjbfR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11B131F0092B; Sat, 5 Dec 2026 13:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796475937; bh=DGkegSc0phLzNjNW40B3qb2OrGn7ubN6UuKeaPhpbjQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=NwmWjbfRAu01dtX7e2GaobMgOY4upaZdMF3iB9YVq1U5rEcjNYf2QZ8h0BT9vrL5w IdXEfSIFlppp1hoOo7kUALH8CCvjtAxqM9jfBRObZhWTd0Bf4nuFKllTviC1AMyjJL rvQ/Ilhigo+9Wjs40uPFckWHNmr/Yg1lkaffuus1QcCCsrVDHD/FwcAfG4Td3cCxGb rT+YFbICRFhsSn/R9dvUpFxDWlymlz993erGptELtJCZRjMbx0n0jKQLD5bJ11SkfJ IMPyMlN9khqyGah0WtQBKA6MWsQrBvWQKizQs5I7RoJ2FEqk2+2zjyGL5ke7GO5Ig8 DGMWkqaiIypiw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH net] net/mlx4_core: Fix potential special QP allocation leak on setup failure Reply-To: sashiko-reviews@lists.linux.dev To: "Guangshuo Li" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261204130524.2418940-1-liguangshuo@mail.sdu.edu.cn> References: <20261204130524.2418940-1-liguangshuo@mail.sdu.edu.cn> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 13:05:36 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] net/mlx4_core: Fixes tag cites refactoring c73c8b1e47ca not 47605df95398 -- commit 9cb8c4f443dafa8c2e714c8933e5fc6c94a6dd46 Author: Guangshuo Li > net/mlx4_core: Fix potential special QP allocation leak on setup failure > > Multi-function masters also allocate the special QP capability array. > If later setup fails, the load error path only frees it for slaves. > > Release the array for either role, as the normal unload path does. > > This issue was found by our static analysis tool under development. > > Fixes: c73c8b1e47ca ("net/mlx4_core: Dynamically allocate structs at mlx4= _slave_cap") > Signed-off-by: Guangshuo Li [Severity: Low] Should the Fixes tag point to 47605df95398 ("mlx4: Modify proxy/tunnel QP mechanism so that guests do no calculations") instead? Commit c73c8b1e47ca ("net/mlx4_core: Dynamically allocate structs at mlx4_slave_cap") only consolidated the special QP arrays into dev->caps.spec_qps and kept the existing slave-only guard in mlx4_load_one(= ). The multi-function master allocations in mlx4_init_qp_table() without load-failure cleanup were introduced earlier by 47605df95398 ("mlx4: Modify proxy/tunnel QP mechanism so that guests do no calculations"): Fixes: 47605df95398 ("mlx4: Modify proxy/tunnel QP mechanism so that gues= ts do no calculations") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204130524.2418= 940-1-liguangshuo@mail.sdu.edu.cn?part=3D1