Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp561793pxy; Wed, 21 Apr 2021 09:19:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFMlOXsa9RqPxXMZeepRYDjpcPrW9DDOOk77mJsUxBzXZaXt61v7cI3RzZPZDPCcil+Asv X-Received: by 2002:a65:47ca:: with SMTP id f10mr22592037pgs.206.1619021954107; Wed, 21 Apr 2021 09:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619021954; cv=none; d=google.com; s=arc-20160816; b=Y89sxyrqDa393Yo0ypT2VXiRYEK7qOCsgiPCXDEfdHQvgiup5kUEWukgf8zybBnQlw 3iB8kf0BEJ8+d4ROACK5Ci+/Ac+21QvD+Uu+BAda98XU/WlBSNN80R5/RKqc8+0XLV4E DRb/5PnLa7osrF1Yc+KJEZ8FZrFDh0yb4AJ6TjfRwjWDrC1l+2YrIhCJuNDFvzCI6Eb+ p1x7tmgh27WiZdKxwPmxm8boHR/2/BU6IyK2Id/lrlWxSsMgEE5jheHzBOL1sx0POdFv qGp/X4a42pJmBlg7FbgpMW7UBIcTITIfowEQ28lgkeo7XgUFlgRonHJE8S2jvPa9aUrz kJFQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hEKwdkXHIO87WCYg4GLR3NDG1mJFSF0dmdVSGAodpq0=; b=NTI8WHHhtrdw91q05Ycf8kHRBgdCY3KoLnTU8aY5LYmGwtROL8FGFiisCcLRMMYPjZ p8T+bWq9xeo8CGctKFaQpqe90dO5SXYiHsV6iEPbhbnHNAl4gew3DIU/3CxeCpO9xPYY 5KNKG+ThFOBtuWxJcqMKuZHVlXrfRGfsyPEIHNbWq2RRaGHE7//jB7w+sCSxFM7yKHbS b37y43LxyNqZ365V1Fh6ejNMBVEtfaGEhz2YfEOaAjEtFUn7Dai0THhGQ2W4+Me3D9dT 8CfbhUv+ScvZ2q4T0XctmyT5guH6/iB1nT6jGldVDxBTEvseJxdClhcDjdpiiQeCbP2R te9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="v/pyeA/6"; 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 r9si22916pga.365.2021.04.21.09.19.01; Wed, 21 Apr 2021 09:19:14 -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="v/pyeA/6"; 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 S235951AbhDUNK2 (ORCPT + 99 others); Wed, 21 Apr 2021 09:10:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:47148 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237669AbhDUNIA (ORCPT ); Wed, 21 Apr 2021 09:08:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 39FA56146E; Wed, 21 Apr 2021 13:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010432; bh=fb6wv+k+r34nPifQMNdj1TtHQ0hQzZhGqSH+F//8p2Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v/pyeA/6kg2bO7tsQazHl9Jl8RHLFBYn0v4w9/m3u6ULFPzN32OPK5Bs3fd8PfTj1 /01poYcpOrpU1+M+pF+98G9QBTdw0fDw/xmmLZjYUCFYLKO4PDQ2fbL/NruIvQDNl/ uzoUvbmzz1YG5bcNsnz1jsamuS94Xm1aQxparCfY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guoqing Jiang , Aditya Pakki , Song Liu Subject: [PATCH 134/190] Revert "md: Fix failed allocation of md_register_thread" Date: Wed, 21 Apr 2021 15:00:09 +0200 Message-Id: <20210421130105.1226686-135-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit e406f12dde1a8375d77ea02d91f313fb1a9c6aec. Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota). Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase. Cc: stable@vger.kernel.org # v3.16+ Cc: Guoqing Jiang Cc: Aditya Pakki Cc: Song Liu Signed-off-by: Greg Kroah-Hartman --- drivers/md/raid10.c | 2 -- drivers/md/raid5.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index a9ae7d113492..4fec1cdd4207 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -3896,8 +3896,6 @@ static int raid10_run(struct mddev *mddev) set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); mddev->sync_thread = md_register_thread(md_do_sync, mddev, "reshape"); - if (!mddev->sync_thread) - goto out_free_conf; } return 0; diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 5d57a5bd171f..9b2bd50beee7 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -7677,8 +7677,6 @@ static int raid5_run(struct mddev *mddev) set_bit(MD_RECOVERY_RUNNING, &mddev->recovery); mddev->sync_thread = md_register_thread(md_do_sync, mddev, "reshape"); - if (!mddev->sync_thread) - goto abort; } /* Ok, everything is just fine now */ -- 2.31.1