Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2702932pxj; Mon, 31 May 2021 08:37:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfOv4330IWKsjb3GR8SruglH5Xt7jFHOtgTX9WODtQDtBAGQPq9TnT8vFBlW8nOkIMAF5X X-Received: by 2002:aa7:db94:: with SMTP id u20mr26118885edt.381.1622475461846; Mon, 31 May 2021 08:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475461; cv=none; d=google.com; s=arc-20160816; b=fsSCWWf/nlbe15gc1e7T+fpW12YD8brQ/FzZLZZOdnMXnDomxOzk0unEooDPFTBYoA Jl0TP11BlrXsYe76itGq0tq65YZ1Os1yzlwSSZVx9pAHtXf76ASUjzomuovaKWHESjm4 QOY9ArkdrRIYnrMyubuw0/cIvWZ3kBHasRwlMRm4oL1JdT0RsuLH917misEtHzEu33qW irXTARKoXucWwX73yX3K/YI2qceEFxKr8WyAExAC8d2LGjMOjD8Bnkc0n4gxy3/qQ2OG 0jhYJoJuSJtRe0mK/p5Cvb4ciGfJgKDJU+/Cl5//S2mWjJAT3wkI2yq1d1gzlg3BKbJE GVRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GFA8qBoT3jy3Jwl/aD5x/ucL4EEr/28vk0u8SUb53rY=; b=ZxvdkU7VuWxb/UGuINOl0IxNGOBP2ZZE9vWrW7xiwn1MyUysjAxrkdpwWkOi1SVUUc i0NOkhotsTFBQqSJGomPTlbo3+hbR/ksJNKKcLSrIqkiNQQf+W6FkHrAHnhaO3m1RIzc HgHKB10DXLTTdD/paxf6LqcLiC0BfU7IUVMfHMPQdGPK+Y9bQdI36jQdF6qk1MFLtDpj /8wfq/qlGtEW50ChR/FB6+Zefjt/6rKV9XBtM8U6D2qiztMxDXfkwhlPseO5lI3xqFd8 DR7XZCfS1x3Ij0JluMMBLKJ2TBnqGXaxHktzqcbQSPDnfdRX179KNEXXRjRUpLCu+qbP eOKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R4AIbZIs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u10si9056729ejf.585.2021.05.31.08.36.59; Mon, 31 May 2021 08:37:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=R4AIbZIs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231644AbhEaPhm (ORCPT + 99 others); Mon, 31 May 2021 11:37:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:48842 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233863AbhEaOVb (ORCPT ); Mon, 31 May 2021 10:21:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9BBBF61581; Mon, 31 May 2021 13:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468701; bh=VargY4XG5cDtl7Den5zPVuw+rnYOMNgRzAdJUIQW1mw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R4AIbZIsUABAbkNQ4fkH7z945vodgrSGrBU0H9HqDzHgjyZGxJCVssxSYj97NGYmD bE+I7RZNg9OHO7Vo5fP6tb0Ssp+QWq02Dkptu4r298Mf3XPzqWKi2imfwPUsC7kAQy GZNTGzP+/p7tYWRdfx/FqIcrhPIylJaYGw2Jg2Jc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Ursula Braun , "David S. Miller" , Sasha Levin Subject: [PATCH 5.4 094/177] Revert "net/smc: fix a NULL pointer dereference" Date: Mon, 31 May 2021 15:14:11 +0200 Message-Id: <20210531130651.142173183@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit 5369ead83f5aff223b6418c99cb1fe9a8f007363 ] This reverts commit e183d4e414b64711baf7a04e214b61969ca08dfa. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. The original commit causes a memory leak and does not properly fix the issue it claims to fix. I will send a follow-on patch to resolve this properly. Cc: Kangjie Lu Cc: Ursula Braun Cc: David S. Miller Link: https://lore.kernel.org/r/20210503115736.2104747-17-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- net/smc/smc_ism.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c index e89e918b88e0..2fff79db1a59 100644 --- a/net/smc/smc_ism.c +++ b/net/smc/smc_ism.c @@ -289,11 +289,6 @@ struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name, INIT_LIST_HEAD(&smcd->vlan); smcd->event_wq = alloc_ordered_workqueue("ism_evt_wq-%s)", WQ_MEM_RECLAIM, name); - if (!smcd->event_wq) { - kfree(smcd->conn); - kfree(smcd); - return NULL; - } return smcd; } EXPORT_SYMBOL_GPL(smcd_alloc_dev); -- 2.30.2