Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp541839pxy; Wed, 21 Apr 2021 08:54:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnzvUJvkkn6BAG2/bJgg5VS2YXKO7eYzYNHuMsMPoUGwX4QSA948BTUt4NP97d5nJru45w X-Received: by 2002:a05:6a00:1746:b029:259:ed9f:d844 with SMTP id j6-20020a056a001746b0290259ed9fd844mr25883381pfc.6.1619020458448; Wed, 21 Apr 2021 08:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619020458; cv=none; d=google.com; s=arc-20160816; b=Aujo33uFAaT5OChTSGEyR+58eG7XjsIJBJX39rCYvlCXL4//t4XKXNPBKQzcG2HIeJ ItmO5EJbfTvP6PqhmsWOJyehQ7PUTNaKCZJQSCe9LVmMwu1p0fznDkdd8Np6QCAcWdZX retaA9ZMVJfSxNmBlPcFacodDKkX/Dxaxbxc+chjzhwFp792n4noNpOMe1HSAjEIuIPj xqupxh1k6PLgbEQjNgQEgbOhd76SV4dQNHwWtmK2xG5o5qlh6DNg+B7c0ujLdMhYKUkD oB77XLgx2bT2h73eHNnhIm1v4wzpp4XuL2Zs9jKsSzLTXz9UgkDM0d84cBT/ABQuDpgV 5ciQ== 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=tZ2Ontb4B4mdnA9gfmnKgKfrtt8RyOK9cGr7Szo6Ua4=; b=oAldnwYfsaz9mUwCVyByiv87y4WJFwj+t2omzkLa46aAY3eIStxk3m2bVE3SZoj4wF Ix5HhSGJF4Rap120ZtGjqbZ3LlSTP5lue1ykJxMg4minuZ32WSLQGuznG3jixtNZh6HQ Td+aqN4dbFocNeUfuje7VYSyTDueLndrOfzpSxZGHR4qeTczqrF6aMcgKrj6cMZ7v6lZ 9Pq/+bBe6nHRdGrwnluNqyI6m16CeSyiMLVqzE1of5vKZ38AaAN/fyLr0Zgk3AjRxJrL jz6oY9jdppvdLCsr+dFRGp4XzfbeHqk4t2BgO7JiApVHRHSSvugPA4Sn/XzxkJTxZTEC JSvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HJwnBHqf; 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 b5si3100628pgt.172.2021.04.21.08.54.06; Wed, 21 Apr 2021 08:54:18 -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=HJwnBHqf; 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 S241314AbhDUNIG (ORCPT + 99 others); Wed, 21 Apr 2021 09:08:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:47284 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240920AbhDUNGD (ORCPT ); Wed, 21 Apr 2021 09:06:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E98AD61455; Wed, 21 Apr 2021 13:05:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010329; bh=ISpEf5GR70PRP9LJpz+EVlYtgtdgVPpT7+GFpfLxwXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HJwnBHqf8CaCan6PPHjARKY6MdD1W4fFJsukJdFaPgBHHTeYFaLHAF/g6ZwUCFx4t 5QWh5cQmT5XvArI0zfUC67GBNsobb2ibg+ILisLwsF6rnObOaSg1KV4VcDByQ0Rsug pfUxBp/wZaBdwxfET9vvceI3ttlnhQHTxPcQ4KMk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Kalle Valo Subject: [PATCH 096/190] Revert "net: mwifiex: fix a NULL pointer dereference" Date: Wed, 21 Apr 2021 14:59:31 +0200 Message-Id: <20210421130105.1226686-97-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 e5b9b206f3f6376b9a1406b67eafe4e7bb9f123c. 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: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/marvell/mwifiex/cmdevt.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/cmdevt.c b/drivers/net/wireless/marvell/mwifiex/cmdevt.c index 3a11342a6bde..bda8a236e386 100644 --- a/drivers/net/wireless/marvell/mwifiex/cmdevt.c +++ b/drivers/net/wireless/marvell/mwifiex/cmdevt.c @@ -339,12 +339,6 @@ static int mwifiex_dnld_sleep_confirm_cmd(struct mwifiex_adapter *adapter) sleep_cfm_tmp = dev_alloc_skb(sizeof(struct mwifiex_opt_sleep_confirm) + MWIFIEX_TYPE_LEN); - if (!sleep_cfm_tmp) { - mwifiex_dbg(adapter, ERROR, - "SLEEP_CFM: dev_alloc_skb failed\n"); - return -ENOMEM; - } - skb_put(sleep_cfm_tmp, sizeof(struct mwifiex_opt_sleep_confirm) + MWIFIEX_TYPE_LEN); put_unaligned_le32(MWIFIEX_USB_TYPE_CMD, sleep_cfm_tmp->data); -- 2.31.1