Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4470300pxy; Tue, 27 Apr 2021 06:00:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw610SnUMWRiKE9DB4u+OZp3UG555cRDJhHc7sHOVm9Cr5GxGxm05ddkwbAnqguTwhqX1e+ X-Received: by 2002:aa7:860f:0:b029:265:4428:3104 with SMTP id p15-20020aa7860f0000b029026544283104mr22581043pfn.75.1619528402442; Tue, 27 Apr 2021 06:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619528402; cv=none; d=google.com; s=arc-20160816; b=r0iep6JdFf5+4aUF30P1fSpxKBBYo8kB2AWqMlkA8VDL/enoxAJyi/NZkYcIjp2dwg CjJC5f8jxgaYK2nVdbFDKELO6JJNFWTurJ0KxTybNAMo+HqRBHu9s9D6jNQwYqOB21lO aMEpnN4abiQsTIg18LyRMmxHS/gR9+H2OtH+DUxHTATcWSwtzPcVldNv5rGYNidENmu+ Yry1M6huUYCM7PkcgZ9sXqWbydmGw3jeQkfqoRCkyrz38cxdUCNbxj5rx8LdNOjb7285 92za4YtdOuVPNHpKduzskFtzOESpr4TLAeTIHa8wYfeStfn/BiG8g0bGgCTs+pZUdgqq wTuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gaufpxecjdaf+4FxCnQdtECHw5u2O5lKAg0hMRNoN6Y=; b=0mQWUAk6pdNrhE929t3GCW0guzUWS6Mekly1icYnOnUzILf03swLn3BACvqkkvl57m phvExzoTz1GEFwmiPuiLLph0ho7HZAagdGYdLlXz5dGe7vM6mQNsrJErNCKgqlemqT9r N80SKPHWam4cDcLVEFW/Ek4YmTRU/VQlQOS0jDD9i4NoTjZmmgkqgo7ZBoGygcY3+fNT 1TDWBFyHpniRWJ7hQQ2vkIbfkcTUSu3an7hiezJVykwu9zB2zj+53Ur3UrhnUyQJAdtR UMiA9B/LaNjYNqfCcmLwWwMhT2gsNiObcY8LFSZQWcEZ1bqeVaUyr2wh9qFes7oRj+Nt uW6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aJ4DHVKU; 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 90si23945727plf.119.2021.04.27.05.59.47; Tue, 27 Apr 2021 06:00:02 -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=aJ4DHVKU; 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 S235875AbhD0M7z (ORCPT + 99 others); Tue, 27 Apr 2021 08:59:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:38636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235426AbhD0M7y (ORCPT ); Tue, 27 Apr 2021 08:59:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9E52B61078; Tue, 27 Apr 2021 12:59:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619528351; bh=ESKTBZsp+jdcnnEU+hs5tiFXVi31SwaiDmt++kqSFSQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aJ4DHVKUW7CgxJukxkD/A53N+16wSq4QSOABZo2cB1X9ZwUToUB7V9J9wO3pBj+eb VqcDVENvIPsDw0JeB1AEv1s2pmU6Xzxdj99b2nl2nyAwQpBvulTi8YOjjrmE4XjE2n ClTzqymidbpgO/hLGBh+msRGZWFpmtTC6FXa3Fmk= Date: Tue, 27 Apr 2021 14:59:08 +0200 From: Greg Kroah-Hartman To: Bryan Brattlof Cc: linux-kernel@vger.kernel.org, Kangjie Lu , Kalle Valo Subject: Re: [PATCH 095/190] Revert "rtlwifi: fix a potential NULL pointer dereference" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-96-gregkh@linuxfoundation.org> <20210427010457.rk7t6p2zs3d2eudn@bryanbrattlof.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210427010457.rk7t6p2zs3d2eudn@bryanbrattlof.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 01:21:49AM +0000, Bryan Brattlof wrote: > On Wed, Apr 21, 2021 at 02:59:30PM +0200, Greg Kroah-Hartman wrote: > > > >This reverts commit 765976285a8c8db3f0eb7f033829a899d0c2786e. > > > >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/realtek/rtlwifi/base.c | 5 ----- > > 1 file changed, 5 deletions(-) > > > >diff --git a/drivers/net/wireless/realtek/rtlwifi/base.c b/drivers/net/wireless/realtek/rtlwifi/base.c > >index 6e8bd99e8911..1d067536889e 100644 > >--- a/drivers/net/wireless/realtek/rtlwifi/base.c > >+++ b/drivers/net/wireless/realtek/rtlwifi/base.c > >@@ -452,11 +452,6 @@ static void _rtl_init_deferred_work(struct ieee80211_hw *hw) > > /* <2> work queue */ > > rtlpriv->works.hw = hw; > > rtlpriv->works.rtl_wq = alloc_workqueue("%s", 0, 0, rtlpriv->cfg->name); > >- if (unlikely(!rtlpriv->works.rtl_wq)) { > >- pr_err("Failed to allocate work queue\n"); > >- return; > >- } > >- > > > > Hey Greg! > > If you're still working on this series, this patch looks to be a > legitimate fix for the potential NULL pointer. > > However we should probably inform 'rtw_init_core()' of this failure in > addition to printing about it. > > Do you want to apply this revert and I send a fix after this has made > its way through? I'll keep this revert as the "unlikely()" should never be used for something trivial like this (the compiler and CPU does a better job), and printing an error message also doesn't help much. I'll fix this up with a "simpler" version that does this properly by propagating the error backwards... thanks, greg k-h