Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3531480pxj; Mon, 24 May 2021 08:47:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCMzjOZiCcucfHhXiolkqu0+LMA4VqKPOx4CY7uFSv2BYIE35MXWo3tsDr0hxPhYFPXEVy X-Received: by 2002:aa7:c24d:: with SMTP id y13mr26204924edo.155.1621871266433; Mon, 24 May 2021 08:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621871266; cv=none; d=google.com; s=arc-20160816; b=0z8WkKM7Fq2R80nFBFs8/E0oBi4mReq7bAI5cMrU13AsaENqzohEBIG61XLYhAEy+I aTTJG/L2sIuBiq+4INiEKrqZ1mnZnWBJ2GGpUHRxPPTwXxwhB/yyxuPUhBtappqK1/6q B8O8w5gf9HuZQPxYwsf+DAzbjUSLL8v5PlSJGw8M0NhgPhA3bOjKlz0WCne4Du/4zHS0 hpIE0iegBFU93d9G4NfKFKc0vZRz5hXgd9/EpCEyysYfWLZV9Vf8r6V3gWRULMOq/1FF f9VVrnQBmJv5sB9BUzCNAL/pxynThnSmInfo/v5yTZl4I7uyei7PCWfRqE12vzt0Og0I FnqA== 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=ExUrLtztjlC6ouLDD58lSWVIrPswYWRc7I1WcYjefwI=; b=bXHXyHzP7heibaNOfUBf2/gporjaa1IxJLUtY/hv21TkrxBH+HDwUfUIua1UY9kPj+ xeH7w31EiQMKRuWtb+oObxOUrK9FD+3ZOO6U7IkTckDDhmOp1qBCpd64k9xohNsS3x/H J9lKu0CLIB5FV1ytpErZoZ+zlmx7UiZYIwJhIJEyQ8wHeAT+k3u+7t/AndMuNK3XVqMc 5+H3brrnNmp2JQHSYBbfin6dJyk6v//HK0jo+V4kcLQZt6dG/JrUdpuLeZwS6Ub2axZm wChtWxKHLzPqSPTQoAtDrzfMU4JB2J5Je3pZ5ujMG5kb6Mz5jitMZP8N/dllaWO88nfP engg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ko8HZ1Pt; 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 h8si5011619ejy.386.2021.05.24.08.47.18; Mon, 24 May 2021 08:47:46 -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=ko8HZ1Pt; 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 S233761AbhEXPr4 (ORCPT + 99 others); Mon, 24 May 2021 11:47:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:57090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234167AbhEXPnJ (ORCPT ); Mon, 24 May 2021 11:43:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C436D6144E; Mon, 24 May 2021 15:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870525; bh=MWJ2Zz2Yel3zVBoC8jYfA9RGWuteaSKbd/b/YE8ezTM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ko8HZ1PtrtTJWOoyIv3q10zFB6XqnqXOvIcO7D9JB4y3o0h0tH3nqXeNW/MUDALox L93dqWpISzgMX6u9fMrI3yYfqp+Tqrr5v40sPQ7em21VpuwcfAlK9FAWfD/N3/vu0N 3MJhFWtb5SSnmtyTI8Y6wbobQt2RDU6/sUZmXjek= 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 4.19 35/49] Revert "media: rcar_drif: fix a memory disclosure" Date: Mon, 24 May 2021 17:25:46 +0200 Message-Id: <20210524152325.510677822@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152324.382084875@linuxfoundation.org> References: <20210524152324.382084875@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 @@ -912,7 +912,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;