Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp525658pxy; Wed, 21 Apr 2021 08:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0qf9F7xd1CIww4ivwZ8vKywwXHVP9EfxqyrEjDnUchnkVvgEfR3qaEjvZghWcNmT2RZav X-Received: by 2002:a17:906:7c9:: with SMTP id m9mr34510689ejc.54.1619019045469; Wed, 21 Apr 2021 08:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619019045; cv=none; d=google.com; s=arc-20160816; b=v/rONj3noYnXmLXogH9hlfNN1xdDRjGydoeh3h/hprSzA2tgYdPrJIMdCF7n5mVBIw 0kKWn1sUydqbC2z/ibx9IqMuPdVmNIlL8Z9UsIWajINXergB9F33JXOUC/lUQsjLIIAP wlSs9asSeI3G+8zavPpd0rv4pDltSomPSE4BIxS5eHRl6RZEOhhorKQEptaP6fecuTVb 87iyd8ErSf3mNnTiXAEAkw+pzj59VQc3xP5CJeWfFDFATZrR+rPhENM0PKdzidLqsSW5 iiFrSffHxGGrxH/rtpB1f4TBAtmSrld3G/bnLE1H4rNhXUPgPjDOQlY5u0gV/KNy2BOJ q+lQ== 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=rL1wtAiygBnrHKWaj2Lv4Rlp/lY4rjFQ/cvbtiAgn5o=; b=ObnYjrk+lVbfOVSU1/lSKhlIf1CYG1u64E4aVesQqH/hZTwS5b6xz50zAZK4gR9/9j mRIYkbeMTR8ZjatHjTp62otBsjatnXLkY9VJAZf8hqArKaeMPOXPouEg+msvE7OTyG15 9JbzKJCrxr2N64wY1eNy8dGbFPekG6SsyG4uMs4I6fYijqHqFSF9NSzztogBp0aGv1+v n7Ps2JtxFhwc8AgAVZopuISSZ6yhj/kt5I6C2x7il13lkP40K2YtaSom2Yqao3lZI0is MrRz69IPqYP1zYX6C/eociJ0ravOweG4ybLJFe4fSDN61l6acDb+6nbRyWvpx3uhPeOX c6xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VcdGKynD; 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 ay17si1986520ejb.736.2021.04.21.08.30.20; Wed, 21 Apr 2021 08:30:45 -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=VcdGKynD; 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 S240983AbhDUNGY (ORCPT + 99 others); Wed, 21 Apr 2021 09:06:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:45876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237894AbhDUNFI (ORCPT ); Wed, 21 Apr 2021 09:05:08 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F22AC6144B; Wed, 21 Apr 2021 13:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010275; bh=rWTh4jdNbqK7hZS+tuRcXLvbBVV8lycAjvfWfRtSOwY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VcdGKynDQbYRYJKSEHe6tKOg5K4+j8/RV0Tnf9SOa+EWz2HXPxTrs5BZU5ysQYyfZ BDYFJWVJqqVq8J8Wyn557KVxsOKTpnthWA6Vwc0JNnFT3cxX9M/eJuOuxfWlowrKQU BcrV00xkQOSE0whPLzv8wj8F+vMyImakAya4g/bU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Alexandre Bounine , Matt Porter , Andrew Morton , Linus Torvalds Subject: [PATCH 077/190] Revert "rapidio: fix a NULL pointer dereference when create_workqueue() fails" Date: Wed, 21 Apr 2021 14:59:12 +0200 Message-Id: <20210421130105.1226686-78-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 23015b22e47c5409620b1726a677d69e5cd032ba. 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: Kangjie Lu Cc: Alexandre Bounine Cc: Matt Porter Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- drivers/rapidio/rio_cm.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/rapidio/rio_cm.c b/drivers/rapidio/rio_cm.c index 50ec53d67a4c..e6c16f04f2b4 100644 --- a/drivers/rapidio/rio_cm.c +++ b/drivers/rapidio/rio_cm.c @@ -2138,14 +2138,6 @@ static int riocm_add_mport(struct device *dev, mutex_init(&cm->rx_lock); riocm_rx_fill(cm, RIOCM_RX_RING_SIZE); cm->rx_wq = create_workqueue(DRV_NAME "/rxq"); - if (!cm->rx_wq) { - riocm_error("failed to allocate IBMBOX_%d on %s", - cmbox, mport->name); - rio_release_outb_mbox(mport, cmbox); - kfree(cm); - return -ENOMEM; - } - INIT_WORK(&cm->rx_work, rio_ibmsg_handler); cm->tx_slot = 0; -- 2.31.1