From patchwork Wed Sep 18 15:09:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Zhandarovich X-Patchwork-Id: 13806984 Received: from exchange.fintech.ru (exchange.fintech.ru [195.54.195.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16E0D156F3C; Wed, 18 Sep 2024 15:11:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.54.195.159 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726672275; cv=none; b=FZ1npKIzp/C8NVUp7RziACOiAh9ShRRyPtRZHdi5KYu4uzx1rUjvTEJDQtrimuMZXBMUkoEJM+0xk/2zH+sqZTxgZErx4o3KgiOV0Vnr2A0c2j/MpOgP5+MtcyVAWEaaPCp1FqxRIOMV2E6ZRY2RV18pM+tvY1zdj0zYYoS/G4I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726672275; c=relaxed/simple; bh=xUTDN6cjyd1wpyN3j9KqdQo96F+WfsdoLshqT0YFbzc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SuRyo8XNeSOO5Ry0f7ryPdGsyQvWz0bgrsu0xwkIKJJxIDjjyw0YfMgcL5RaS6+hxqGYuVeur66eDrYeakHeMJtjBLipaU9X9OAOKVsbscY/uSPbnW3MnNtodlGebDTqrRCJjYjKKCCuNqLd0v3hpgrTSEH2DHMc8XDny+EMVIs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fintech.ru; spf=pass smtp.mailfrom=fintech.ru; arc=none smtp.client-ip=195.54.195.159 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fintech.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fintech.ru Received: from Ex16-01.fintech.ru (10.0.10.18) by exchange.fintech.ru (195.54.195.159) with Microsoft SMTP Server (TLS) id 14.3.498.0; Wed, 18 Sep 2024 18:09:58 +0300 Received: from localhost (10.0.253.138) by Ex16-01.fintech.ru (10.0.10.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Wed, 18 Sep 2024 18:09:58 +0300 From: Nikita Zhandarovich To: Steve Wise CC: Nikita Zhandarovich , Doug Ledford , Jason Gunthorpe , Leon Romanovsky , , , , Subject: [PATCH 4.19/5.4/5.10 0/1] RDMA/cxgb4: Fix potential null-ptr-deref in pass_establish() Date: Wed, 18 Sep 2024 08:09:48 -0700 Message-ID: <20240918150949.7089-1-n.zhandarovich@fintech.ru> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: Ex16-02.fintech.ru (10.0.10.19) To Ex16-01.fintech.ru (10.0.10.18) The following patch aims to fix a possible NULL-ptr-dereference that occurs if a call to get_ep_from_tid() fails to assign nonzero value. Upstream commit 283861a4c52c1ea4df3dd1b6fc75a50796ce3524 has been backported up to version 5.15. For some reason, older stable branches have been ignored. This backport can be cleanly applied to 4.19, 5.4 and 5.10 versions.