Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3541856pxj; Mon, 24 May 2021 09:01:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK0F2e6D8ugkmAftRI7+tpSGY3qF7v8IgCRJBYMSM2lkgjnriUtjFUt/TwPSd0C7zwIy8R X-Received: by 2002:a05:6638:37a6:: with SMTP id w38mr24987916jal.106.1621872078431; Mon, 24 May 2021 09:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621872078; cv=none; d=google.com; s=arc-20160816; b=OwUbuRPgEzlvGdpqqWLXnuEklcTpugV0nxgJIEvjvioSjeMegShLZBSXvIgvoe/hOT FuZMNX8Nu9S5m2A4yNvWKxvAu0ANGjLM+LCWP/NS4EVptYY60t9HL7zr830k2MtnAULX zTeoSgD/z/CipKmLIA4+IlUM6AKGmJIvzebEXqToO2cmj7spUtqnmYXGGOJcmg8NYw6p Fp3hEbNIZIF8a4uD1jDP8KQ4si1ETa2NputowjCEi9X7KlmsnefbE7+fnPXLicdTWskB QeJ73GxJsoxFsTOkIow2gxYH5lrWTL4yja37GnTtXgTDM64dB0n8wiajwq00ejSPPAi9 h8lw== 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=xpBhu4GO3nlaqU1BdafUYNa9iGJy6TJDrTTRVOYnDl+NXLU0gYuudMjhI2GT/Y1Sbf dbsO9kOL+rvIkVVScb97XcvvegY4bn1a2xrT9Lattdg0r/BIuQZ8cYXONjJFcc+bKI3X RC9nFqmsGs8YOhOrglx3PWZnY56eBw7CSdPWtI/zPD5FoREYV6TGQWEGo4hyFCaN140B EESeJ9QaDNDaG7k+xQr5ljIS/AhIOyY8NGhVjCtkDk+W/t5hiEv+L4g7vfzr3dTJisqf H3jCaOaECvbr0UojMOMnWlUUr2mwlm8aCjVbun2HgXTsoqT3XrmWiaJWksRrv0Yt7Uja 7tKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZDF8DTnX; 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 h5si17133464iol.44.2021.05.24.09.01.04; Mon, 24 May 2021 09:01:18 -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=ZDF8DTnX; 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 S235050AbhEXQBR (ORCPT + 99 others); Mon, 24 May 2021 12:01:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:40476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233430AbhEXPzK (ORCPT ); Mon, 24 May 2021 11:55:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6425E610A6; Mon, 24 May 2021 15:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870896; bh=z/0ZIzRTAXnsmjvowKRG/KFQdJ1tm7t7WH8MCLSYgok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZDF8DTnXZpoNRGbIcx596S1QhuMZtTBYI0r6/5A8ib4ACjJYJNfZ+UunzRFTzY30s sI4nAR6/xvYvUM6CmdUZ/4ELm0mtZOJeK/k84uqOwsLOcsS9LMyBZXxCfqigLkHk00 mBd8HKITKiGSlArXWz4QviXzzktNCR3lkvCw7rkc= 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.10 083/104] Revert "media: rcar_drif: fix a memory disclosure" Date: Mon, 24 May 2021 17:26:18 +0200 Message-Id: <20210524152335.602551401@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152332.844251980@linuxfoundation.org> References: <20210524152332.844251980@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;