Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4493022pxy; Tue, 27 Apr 2021 06:25:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxtcdiDzpbu7bUEpowi2idqmZcuv6Fs/F2Ksd9zCqrRL/f2HtqPGdWALfRVizeUXfhPzn+J X-Received: by 2002:a17:90a:f292:: with SMTP id fs18mr4938763pjb.142.1619529931868; Tue, 27 Apr 2021 06:25:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619529931; cv=none; d=google.com; s=arc-20160816; b=Shn2LSq9ool/Qz4hxxTgJrI7wMQOvh+7W6R+ItpDVyQXzV/lKOci7BYBnlVPOCSvdP UBKyFkyIREqsVv2cwhfEp11G0dr5y+QdvFeoXuVBS97jtN4hNnr9ZcZeiarOKY8s/D24 gFdyrlPCrc/TL1/LdvZqOL68tsYTO+TVIzTiWB20CAafkjjkpvMgwyCR2DyKr7goJoxK xeRoFMT5MJQkcCbOeCyZGrh5IgdFWS+j2j4dr48wYL21LfoD2pnioTtyakU4D0Cdlox3 RzllIsRT6/xWZ5wW9mp9pEzgq+p2ghvcCvNqnm+3e/hLvOD6i1pFvvXqNA7i1teTfIRa HpVA== 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=QRTHZmNU6HDiTwLfE3NpSs8gDSVZOYWYqYOcYGiKZGs=; b=KwpRqXo5CV/6HMPUOI3KWKCLWUAAPt3SeMJGsIKs+pNdgTAq7LKNy3ozW/+VODMWTt jh1CBR/PhWZEC+y6uEMOaA+M+EKrX/8FXFpVveAr4I5D1QoOEXufUpPvKAeYSulIn06h Hf+TeBe27nWQYOo0pkpfOXgKeVHWIsKcnOIeEzZhSKqIgNFHrEytzjd8A2HFulZILfD/ NFLnRYtKfYoURtGph+zlU8mU1FF05OFA+MqLXpr6hBBVYvJIcCzP5QAMhmQG6ATdaigW W6P1dGCG11YMIdPSFm8KFZx8kb9ClK2bQPyavxlhJwVNk+Cn2EDD37nw4YfwP55Bteq3 6NPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="G/z8N7CN"; 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 u14si3654573pfk.26.2021.04.27.06.25.18; Tue, 27 Apr 2021 06:25:31 -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="G/z8N7CN"; 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 S236206AbhD0NZN (ORCPT + 99 others); Tue, 27 Apr 2021 09:25:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:56262 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236008AbhD0NZN (ORCPT ); Tue, 27 Apr 2021 09:25:13 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5546860FD8; Tue, 27 Apr 2021 13:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619529870; bh=JXDRNlXLZpJFQol+KTPuA/3OzaJAO9gAwg5E774vJkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G/z8N7CNn15YUb1OdZH6kIgTwxHKUmv7rC3bfhgFdDwV1mltoA9j/h/QQYtkZdikk 8sWwxUtITuPuVJCgozjcS/o2SlAvEj1MCq05vVL58NHzhNk9i2KlNzeoXwiqA7bwoG T3u3ZwBQgj8jHq1d0GE2N50KL3zuFeuRTyOhvv4w= Date: Tue, 27 Apr 2021 15:24:27 +0200 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Kangjie Lu , Mauro Carvalho Chehab Subject: Re: [PATCH 153/190] Revert "media: usb: gspca: add a missed return-value check for do_command" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-154-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210421130105.1226686-154-gregkh@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 21, 2021 at 03:00:28PM +0200, Greg Kroah-Hartman wrote: > This reverts commit 5ceaf5452c1b2a452dadaf377f9f07af7bda9cc3. > > 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: Mauro Carvalho Chehab > Signed-off-by: Greg Kroah-Hartman > --- > drivers/media/usb/gspca/cpia1.c | 8 ++------ > 1 file changed, 2 insertions(+), 6 deletions(-) > > diff --git a/drivers/media/usb/gspca/cpia1.c b/drivers/media/usb/gspca/cpia1.c > index d93d384286c1..99e594559a0c 100644 > --- a/drivers/media/usb/gspca/cpia1.c > +++ b/drivers/media/usb/gspca/cpia1.c > @@ -537,14 +537,10 @@ static int do_command(struct gspca_dev *gspca_dev, u16 command, > } > if (sd->params.qx3.button) { > /* button pressed - unlock the latch */ > - ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, > + do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, > 3, 0xdf, 0xdf, 0); > - if (ret) > - return ret; > - ret = do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, > + do_command(gspca_dev, CPIA_COMMAND_WriteMCPort, > 3, 0xff, 0xff, 0); > - if (ret) > - return ret; > } > > /* test whether microscope is cradled */ > -- > 2.31.1 > This looks correct, I'll drop the revert. But ick, recursion? What could go wrong.... greg k-h