Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3538820pxj; Mon, 24 May 2021 08:57:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU9jPn1WawgKPqpQWeND96DwPw5/rgFJY2koa3qqIiQpcEfGEzPQvbNgR+5i3PWQPeb94o X-Received: by 2002:a02:b107:: with SMTP id r7mr27077842jah.8.1621871862665; Mon, 24 May 2021 08:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621871862; cv=none; d=google.com; s=arc-20160816; b=H62ryUudcVBEUKrHtBST60MpkS5cz7zWxaPb80u3RV7Zet4JtZv/j1Ef0N6W9d49GY bkjj74X+2zXUKntWAPQi5+rEKFUSgC/kl90kwNvKJBNlJjcLhROxp2uI5e87iL1eAO3M h98tMcCP2RwlTVb23Ny+bdRaqbvZMsrJCYO9Zuh5rfF/wmm5zliRc+ZHf9SO+v9UbJxz wqcLLCRbNTNJp4gKnWTXXtLxH/Dck9EPZ3ajUKybuVu6Y99a6NSI4K7OLM5JG2+g45/o AA1vDwrWE9OIwHgjnhFf70ZkKfpxAfwdMl4yor1wnDqbN8xVzIDqfW6rVSpAZRVHxD7H uzEA== 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=eUn/x1DZpm9AZF0Dj9iGYPgtjqisihaVhhdWgviJ4lQ=; b=ZkRXn+GIeejlc1zTyjE+38QgJIO/P8c+mw+d21Zs73DZAXej9CVjzt0Ue0u3aV8h7L JJoAZpF4SMrUA0U+J5WGAIRxciM0JqohjR7ET2ymH/ZU3JCj2ekfnQiXRX/oy7doHxnz YsU0GtGePhsTteFnim+H49SXJ3ISNiipCCZvQ/HsyczxAN6bCZpUrr27rMzF1fnW1F1I gX2/0it0YLwxuFEYjvRJK7q9cPfxGgqwwKPEKTcxaNDxOs+StIVgT3Ng6os7ceoxNJOC cDvF5dSrco3fc+7aoDo0d0i/cy18lQ9lDVVkz9mpEHHL8oYNbIcbcQnqT62DUcNnQEDn 8+NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Lbn0TxDz; 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 r84si15781506jac.11.2021.05.24.08.57.29; Mon, 24 May 2021 08:57:42 -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=Lbn0TxDz; 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 S235449AbhEXP6D (ORCPT + 99 others); Mon, 24 May 2021 11:58:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:38650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233967AbhEXPwF (ORCPT ); Mon, 24 May 2021 11:52:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 52BA0613E6; Mon, 24 May 2021 15:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870729; bh=YcawyIa5JM/v67/x5EWCPn9a+PgZuDJiyGAyh6FWTfg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Lbn0TxDzkh5pTjtVQh5k8eJ05iAtALxySO4q9tFKCkOnZUOMdeI0hgIu8X2VaIpAU S5gq/RGeTbzI3bN1fW/5ZOQ2uaj+t4dn8Am5FHx0padzhsffNVFAExbgNE7iaICZQA ZA5dADLKypPNKDEr7oR15J68LnlqrcZkegZX2kgc= 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.4 54/71] Revert "media: rcar_drif: fix a memory disclosure" Date: Mon, 24 May 2021 17:26:00 +0200 Message-Id: <20210524152328.215491912@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152326.447759938@linuxfoundation.org> References: <20210524152326.447759938@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 @@ -911,7 +911,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;