Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3551513pxj; Mon, 24 May 2021 09:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAnV6P4wVF1OH1k81aQOISBjlqi5VBtLFUbfmCOzBjQ1PRx8+3z41Ybqk8mZRWCtp4wS/t X-Received: by 2002:a02:c912:: with SMTP id t18mr24846404jao.100.1621872689185; Mon, 24 May 2021 09:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872689; cv=none; d=google.com; s=arc-20160816; b=xrbG8rDG2IOo2gkmKRPFZDOwxvCiKld3F/zd8LJueDm18+34Iyx0pQgs4pMzPN2ToS uF3GIBg31eZ/iJhQfMRFMAmO3S+h4FTptLVPPC1eBbdX1/OpCmNEmZfNM2jRJeK07Jtn 8iLglk/uBg+XAbInYy7PeXTwgLOl/WAZP224eibARJCh5Pu8V9RqdeLdWWxe2caIjn29 OWNCsxsVRv3nv5V6fnT7yaQ0DwiHhqbno+cCNOqj7IInifebjMhE7K+kGdJqE56+u5BB vcb1kmlpKq8HEz0rJzforWHHiqOU3MK2NEKpj1znZROKjjxQuh+gmdOmrCxGYThAkDxE mkMw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LWmElccJNGDLfTSORfYpsnDgD9gT9AytU4vfWr8hmm8=; b=WfHBsGi9fGLhjad5LaZV9GDBfKbSgP8eQDwnC7OvrNU4P1GpWEHqpf2XrCsSn4G+ys IYjqpprCMizj8dFdVCwlTK/hXr+XdCOef04SCkV8EggG7Pmi+hjYtbKnEV1FktBHdaVJ SFlLc1cHJyno/x8dSjLypTJwNzmXo+nKmO31OnanxMeHnr1DcVGZ6aZw7N9JEZttkXOL Sm7OfBDtF4e+XjddnLUgA92iU8FzLwjgD5KBSinygploFDAHP64B6NxC/kedu2m+pI6a 6520/moTFCxThcDHncd66amO97tSGNJuxaPcVfq5L5ed9rDFJb7WG5b7mDbuGcHLC1RV n4JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wRZaoXb4; 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 l15si3115280ilk.32.2021.05.24.09.11.15; Mon, 24 May 2021 09:11:29 -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=wRZaoXb4; 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 S238825AbhEXQKX (ORCPT + 99 others); Mon, 24 May 2021 12:10:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:46680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235734AbhEXQCW (ORCPT ); Mon, 24 May 2021 12:02:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C1277619A2; Mon, 24 May 2021 15:47:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621871233; bh=z/0ZIzRTAXnsmjvowKRG/KFQdJ1tm7t7WH8MCLSYgok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wRZaoXb4jpMwx1zNa5Ba3LxFHUiNc7IRmn8iKJngLSpSshkQ39PdcU+Fz+Y23zU5N Q5qoG1fI7KixtCuaL6r9MYk1ogrzZQtOipLnrrvzxzbtmW8wygRAEqKjN9zuyhQUJP pfVz9aCxUKc6VmFr5Vcc6PxqfYcBhXEUNMXuVlDw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Geert Uytterhoeven , Hans Verkuil , Mauro Carvalho Chehab , Mauro Carvalho Chehab , Fabrizio Castro Subject: [PATCH 5.12 106/127] Revert "media: rcar_drif: fix a memory disclosure" Date: Mon, 24 May 2021 17:27:03 +0200 Message-Id: <20210524152338.432744443@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152334.857620285@linuxfoundation.org> References: <20210524152334.857620285@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman commit 3e465fc3846734e9489273d889f19cc17b4cf4bd upstream. This reverts commit d39083234c60519724c6ed59509a2129fd2aed41. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, it was determined that this commit is not needed at all as the media core already prevents memory disclosure on this codepath, so just drop the extra memset happening here. Cc: Kangjie Lu Cc: Geert Uytterhoeven Cc: Hans Verkuil Cc: Mauro Carvalho Chehab Fixes: d39083234c60 ("media: rcar_drif: fix a memory disclosure") Cc: stable Reviewed-by: Mauro Carvalho Chehab Reviewed-by: Fabrizio Castro Link: https://lore.kernel.org/r/20210503115736.2104747-4-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/rcar_drif.c | 1 - 1 file changed, 1 deletion(-) --- 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(struc { 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;