Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp58444pxy; Wed, 21 Apr 2021 18:26:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHiEeuCMhcQh/AyUPbUWp7zSYpirW0heA6h+EKQ5LWc4CcVVFrWjj2wmfY3CwdOOrxnGGE X-Received: by 2002:a17:902:aa06:b029:ec:c083:8787 with SMTP id be6-20020a170902aa06b02900ecc0838787mr756784plb.45.1619054793980; Wed, 21 Apr 2021 18:26:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619054793; cv=none; d=google.com; s=arc-20160816; b=d8bhJFS37gC4mqfq2Q6vSevhWI2p9sOVos502tFLicYxSDBfhZ5mJsM6tsTp1xt64s rybM1jzEKkJw4vN6kw+SXIRWTV89Cxo6td86KlcOYsGzjZ9Lki9u9zjO6IyqGThbuJt7 io5xyryq/+g+xdAq8lyqu2Q4LraplkYj8JhOwegg/zUSkmbO+9b4du5Bf3ZXFBRnIHpo xunQEugH8rGNkMzV56g3XnvSVAhGpbwH43fIhMEfYiX/BzGciDxB0zbUUXPiURaLr/Zk o+d0KLUmFGxhBF+sel54C6DypjzluRJ039Yw2PQosiWQkx3fT1TjXXLB7zVTyLIiCKwC fNfg== 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=dISfDf9TS0dbn0bmUJCoiFuBX9EwKEkb6b1hlz55U44=; b=CZAS3ZnVzEA6wE/EHcZMDuab8tmmLIUIlYDTdUud0/EQyVOmIojKx/V0zER9Tgs8sq yeJM7xDl3BkGUW3/I3gx+Ch5BU5scGfc4vXo8XPjUQSCAyfQGQG6W+f6T5/JjHxWrR6n uiY4FZ7FJY4F4VZd2KuVwRkNCP8ZApIqY1zUqGGeEanaqVENKbqa3nE9uRuKXUz67cwj HfIbLS+BIgyWnopsRE3XJVWtiIdeJGapPydsDRvUk183MTLjqiqrewrElB51uGhaUsHx a4dn7UUXahOmCJXLMn6zkmRWcinhPw5+FvKlYLwcDcC5wIlR2D6OzjlUy1URmW+jreIT 9/GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=U+5dG03g; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b11si1456461plk.261.2021.04.21.18.26.22; Wed, 21 Apr 2021 18:26:33 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=U+5dG03g; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245749AbhDUVWi (ORCPT + 99 others); Wed, 21 Apr 2021 17:22:38 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:38256 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238497AbhDUVWi (ORCPT ); Wed, 21 Apr 2021 17:22:38 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E18D53EE; Wed, 21 Apr 2021 23:22:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1619040123; bh=TB4+FoDBVxxSrB/TUbbps9a3vRShB5YzPoFR5+169H0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U+5dG03gpYFcQwZrFelSo4Z0091oaP8BGPSfhbdKuUvOuTxnTxHb3QTYsM9IwAeWw SLZwfNfvENKyQWgQk66uN2KkSnmzQJofKNG07OxFuJy46Jmg19MNakvtkvfftqX3Gn l8ivx8GGdTT2t1pWDzkLlf7mf65GTIh9v6P227x0= Date: Thu, 22 Apr 2021 00:21:57 +0300 From: Laurent Pinchart To: Geert Uytterhoeven Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , Kangjie Lu , Hans Verkuil , Mauro Carvalho Chehab , Fabrizio Castro , Linux-Renesas , Niklas =?utf-8?Q?S=C3=B6derlund?= Subject: Re: [PATCH 073/190] Revert "media: rcar_drif: fix a memory disclosure" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-74-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Wed, Apr 21, 2021 at 08:58:22PM +0200, Geert Uytterhoeven wrote: > On Wed, Apr 21, 2021 at 3:06 PM Greg Kroah-Hartman wrote: > > This reverts commit d39083234c60519724c6ed59509a2129fd2aed41. > > > > 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: Geert Uytterhoeven > > Cc: Hans Verkuil > > Cc: Mauro Carvalho Chehab > > Signed-off-by: Greg Kroah-Hartman > > Upon a second look, I still see nothing wrong with the original commit. > However, as I'm no v4l expert, I'd like to defer to the experts for final > judgement. It seems fine to me, but it also seems unneeded, as the V4L2 core clears the whole f->fmt union before calling this operation. The revert will this improve performance very slightly. > > --- a/drivers/media/platform/rcar_drif.c > > +++ b/drivers/media/platform/rcar_drif.c > > @@ -915,7 +915,6 @@ static int rcar_drif_g_fmt_sdr_cap(struct file *file, void *priv, > > { > > struct rcar_drif_sdr *sdr = video_drvdata(file); > > > > - memset(f->fmt.sdr.reserved, 0, sizeof(f->fmt.sdr.reserved)); > > f->fmt.sdr.pixelformat = sdr->fmt->pixelformat; > > f->fmt.sdr.buffersize = sdr->fmt->buffersize; > > -- Regards, Laurent Pinchart