Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp65208pxy; Wed, 21 Apr 2021 18:40:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxU36O6yqyqiKp3wV3C1/2H4kaXoBf/ioZE+xGERMWUpDR56PgQtWZdDvgvrnJBklydZtW X-Received: by 2002:a63:db47:: with SMTP id x7mr1021906pgi.360.1619055636330; Wed, 21 Apr 2021 18:40:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619055636; cv=none; d=google.com; s=arc-20160816; b=aZBQfQ4aY2L+NIXaS6+7Y3wZiaa9h++izQhTSoY7Tzsk9isaeOyhueIbOtwAA0ANwC wD9yT9pQMMRsoch9Ec7oZm+35K7GCl6gFVPMijCdBheDbJocTbGSbipNFWvuI5EMydlU qpfRlsn9sjGqwbMVq93yhnuHRlYUfx/q3SJB67+XutAlSHu3Vf6SFFApIY4Iv8Pq1yq4 r+XNpJKNfKZr/kOvODKXrAMkeCPS9hPvj5mlYamjNzcHktRFLy8xJ1cIVx/bLlcI65PO d6Jnud7ulWyY1yvGBUSbudyqkZce2SIppACUnIBYKG/L3HMSq3C7/uMYgj7V9391LA9T JqTQ== 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; bh=XTTNuDYnaBDedSn+RW0s1IJX34G6gwbUpQpXc9HUM64=; b=HnZY+djTkN7vAALN8jIb3FA642ajz6fL+r+lOzIDUUMgpAypf2FGwoQX7qvZ5AcpZL 1nDA2qzT3IPpVO74N/gGrrDMqBv1DdLK232NyyuQoESzi6oh3/v5p0as9J5NFlH4htbt /ekZu8rD7gXsn7VovcMYbbDR840erh+4OGXz0qhdyh0kDyR8h/Uv3qQuFh42PREdWnPp FZfAE0wG/yGEy+T69kE0qqpCCSNLkpgIP5fugKopTQNr1I5bRSaOdAmqfe0keQdPZIzG ItgXIbeOwrUlOOVGT+bwkOQM1HXkWSBqPn2nmb7FlOlPO2uTa0VzzkXxruM/jwyRnjSm FVpA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 77si1613856pge.14.2021.04.21.18.40.23; Wed, 21 Apr 2021 18:40:36 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241196AbhDUQD1 (ORCPT + 99 others); Wed, 21 Apr 2021 12:03:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240106AbhDUQDZ (ORCPT ); Wed, 21 Apr 2021 12:03:25 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF366C06174A for ; Wed, 21 Apr 2021 09:02:52 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 0DEFE1F41EF9 Received: by earth.universe (Postfix, from userid 1000) id 2CD463C0C96; Wed, 21 Apr 2021 18:02:48 +0200 (CEST) Date: Wed, 21 Apr 2021 18:02:48 +0200 From: Sebastian Reichel To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, Kangjie Lu Subject: Re: [PATCH 092/190] Revert "power: charger-manager: fix a potential NULL pointer dereference" Message-ID: <20210421160248.fveahtwspxa53fft@earth.universe> References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-93-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sk2sus5fq2i26mdz" Content-Disposition: inline In-Reply-To: <20210421130105.1226686-93-gregkh@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --sk2sus5fq2i26mdz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Apr 21, 2021 at 02:59:27PM +0200, Greg Kroah-Hartman wrote: > This reverts commit 75cf4f5aa903604e1bd7bec2c0988d643c6fb946. >=20 > 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). >=20 > 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. >=20 > Cc: Kangjie Lu > Cc: Sebastian Reichel > Signed-off-by: Greg Kroah-Hartman > --- Doing another review: create_freezable_workqueue can return NULL when allocations fails and it is the first call in late init call, so it's fine to just exit with -ENOMEM. I suggest to drop the revert. -- Sebastian > drivers/power/supply/charger-manager.c | 3 --- > 1 file changed, 3 deletions(-) >=20 > diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/suppl= y/charger-manager.c > index 4dea8ecd70bc..f34c07ffcfe6 100644 > --- a/drivers/power/supply/charger-manager.c > +++ b/drivers/power/supply/charger-manager.c > @@ -1749,9 +1749,6 @@ static struct platform_driver charger_manager_drive= r =3D { > static int __init charger_manager_init(void) > { > cm_wq =3D create_freezable_workqueue("charger_manager"); > - if (unlikely(!cm_wq)) > - return -ENOMEM; > - > INIT_DELAYED_WORK(&cm_monitor_work, cm_monitor_poller); > =20 > return platform_driver_register(&charger_manager_driver); > --=20 > 2.31.1 >=20 --sk2sus5fq2i26mdz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmCATJ8ACgkQ2O7X88g7 +poxrBAAgYJBOi6VDcxiDF++/eI/Eooun3oXyFwzD7NNS6IU4F8laGH/ovy1wwGG 17i1jZfok3kAaWuEPtfaFYym8tDbAvzpCtum1w98+yOu7iIICOPP951YjSZ1YE9N 09FatXOowFlV2X9vSDwiYIToWr1x+XERDFMOm5RxVkcqUdSFoNSuHT99i3yqktfC 1gI/2l/H5we1CW6gM3c2vzcnpylfVcQiR+G8Kg0tVhBJO0IqK5LomSE/78NZkZKK Almy+FtnDi3E2vrciRTGlkx9dMuCta2lOdaxeOq7HaLsJ20EdmMmBUEw2Mr7iKP7 vslbGysdZ5B2O8unPzLfFB8jPqC1fKNmE6abUtcoLOyUg3qdv2TAGto4Be1L8t/s jetg7fIB+mCcG8pLEkDOaX/6KKUvMGgoIDgU7MA1r7FRHP0bE2pjjwOZDsSjLOfC +zGKhH4FBb3u+uV13liLH915vWYDPGbGyIM4Lxfx2HTon77JfM9xWlv/Rr6Knk+H LVqMaSJb2zCIADPKXFeFRMmmAVvZaJbxKG6TFRyo0jQ++MMEysdzgz+EeK9Wc4vR gET2+aYmyIBdIeIv8ERh1fjroN87GVYl/k8w+WfPgjhcJCyIhA8OuQZ5aGqH0eTp 04iEKpqLAY0FgKzs2RzUCEy8N6PDZMzCFkvYS2t2VF/Ob+1BPmc= =sn7L -----END PGP SIGNATURE----- --sk2sus5fq2i26mdz--