Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2664867pxj; Mon, 31 May 2021 07:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx97AyS0vPyZNxjfefPEegW+vEZA3+lfkHSwO4LeDLqr5O6OwXNGYRulo1A+RIuz2CRNE6W X-Received: by 2002:a92:c741:: with SMTP id y1mr8236391ilp.179.1622472337838; Mon, 31 May 2021 07:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472337; cv=none; d=google.com; s=arc-20160816; b=vzGmIrcKZbccMLNm3rr4BqCti5/mZLyukWW4aJMl3n8JhhErch395KmH1AgzJUsBue V6i6kdt7Ei4vPQYHvuexsw2fhnj9OPPoYU9sa3WTphWgQafKxfRIoydg94y5QRVJxZ5Q eLMhZNm0DHeloM5l9MKGCVnL/Ids4A+kAWuj7OfIuJ2aIASpIdq+GyZ/cURsmizy5mmt YxQPAgoM40Kzsda7w5PQw09QIegldlBoX7A1qQQRzkhHY8uHWW1C2KLb+bAjpNGSgy/f mwba+x/goCmE+dSIPwbbBG/G/DI0zk3ydmJvhKEDeA1P0eWgrxbEw9U5aQw+sGSJhDRu A+dw== 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=49UhaChvVdxfupLIlem0TiWLhSCW4hVYWPCU6tm18EE=; b=VTt8i2CtRe/axCfcq0zDnDh8vdfbq4E9g+x9UMB7FcZRyl6jMdX47bvoNhBDcVj9SE 9H7A38COFpinfnqlB6kovRvC3/jyx8/SzeoYh0SHG18yM+d4CR3m0XjhpBlkz2IO7bc3 SJ9wZa/luZh6R2tAkY+It8MVbPX8mEh57z8TPEllL/gb7phbTg40LEkCWSzEFh+2H8Yz yIovXbOUrZtIfarJuJvmttLe1p3fABOqTDpobVCgIYwEqk+uoM7bL1X0i1CJi8/CrTI3 Fpv+nCpxTe7p/82JqPAY9YY82KUWGz8kFfPkZnvH9fd+/fIbI5aIqYbnpVNPhPxZ2sHP wVhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=e86MvXAd; 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 v17si14080921jat.82.2021.05.31.07.45.24; Mon, 31 May 2021 07:45:37 -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=e86MvXAd; 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 S234219AbhEaOpH (ORCPT + 99 others); Mon, 31 May 2021 10:45:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:59926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233064AbhEaN7X (ORCPT ); Mon, 31 May 2021 09:59:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C7DA61935; Mon, 31 May 2021 13:36:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468163; bh=mcsPY8Xc2q/p/Dt2uGk6HUl2ZNEAW7uSXSay5z7Nj0Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e86MvXAdR3z4uKp2pIVolRyQO8SM1wgcFt3GPbk8SHLNeAIKjfD+KWVBT12evK+no Sr4gVX+FJvO+HL8E16Ca903RcpiNii2/8M9YYXvlAesty0TohMWZz733QRaAMXwYLq na3eKV+qvkzaFG/80xFNcjSkw8Z7fGZZH0ra1SBc= 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.10 139/252] Revert "net/smc: fix a NULL pointer dereference" Date: Mon, 31 May 2021 15:13:24 +0200 Message-Id: <20210531130702.742848350@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 6abbdd09a580..b4a9fe452470 100644 --- a/net/smc/smc_ism.c +++ b/net/smc/smc_ism.c @@ -319,11 +319,6 @@ struct smcd_dev *smcd_alloc_dev(struct device *parent, const char *name, init_waitqueue_head(&smcd->lgrs_deleted); 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