Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3527873pxj; Mon, 24 May 2021 08:42:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQb4E5BWqITdqEboRHNwW+dALBfrtqChFXJi9Dyhl56G8gv4B/r4lQrbL4xe5pqnDkPyUR X-Received: by 2002:a05:6e02:92f:: with SMTP id o15mr18892555ilt.127.1621870948506; Mon, 24 May 2021 08:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621870948; cv=none; d=google.com; s=arc-20160816; b=dOpybbz7YbKleef4H/hw5aAHVBij4fjLaf13QKebhkbkO0j62YCRmPKr/171XzxB2V oPuglgp2y3C2C6ElinO+a9PmNgj1fCl+UE2bEbqb9rGd6SYG2XEEY70FDenC3QpDodyV 8vXR2MvLngopiEozDxlo6K80hqa67aSd2r3LcRyl872CKu9HOdWW9dNW2k9Hxck5jxFa 69zdH+O209dPlFnEKbvkSv3S/TLfAOb8iUxIK+hlHn4eFMGO/GB1GYlUsmYLJx7+bU8h Lp+y1odMjjH6if8d+fL5hbONS9uAnsNDKR4E0DiZlr4rIVIoWsfaCfwpn9l1qJRZhTCX kmmA== 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=nz61iyiTSpK3CLt0J/KHC2oG1mnbzdbOIKwNmRnqspbDLG5ehp/ewSfQk5mt/1mPoK N3/BQ9h4nOhynn183ig18naMtPYTtmVzGoJhqjwR94CDIVSeb9azanwA7QhIuaMqmRLd 5Y6rbr3qiSyjl24BJQDHoI8Wg5HvwY9yZzWDNhwnGIrMIK2WqSIEJRvPZHIkEKkr0LjN UXSa9k2FHOnIkrc2aqlm3+FhBQDDp3Tcn+F2FOLL3nqR9R7mVUEYIyzFu2H8WhKuEL+2 kJ0pfImJFwp507YqFdqSmSZXtH18O0H4/OFuSRoP7vudNlaCtgc78Wkq+J3Z5EbW88BJ 2s0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LWilNDDF; 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 w14si12500007ilv.110.2021.05.24.08.42.14; Mon, 24 May 2021 08:42:28 -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=LWilNDDF; 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 S234096AbhEXPnH (ORCPT + 99 others); Mon, 24 May 2021 11:43:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:56576 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233398AbhEXPif (ORCPT ); Mon, 24 May 2021 11:38:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C27C613F8; Mon, 24 May 2021 15:33:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621870418; bh=z/0ZIzRTAXnsmjvowKRG/KFQdJ1tm7t7WH8MCLSYgok=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LWilNDDFz0rkdjPiVd5YUYyHLlATAXrtDR+0e7g2WjuscQhGJsnjEcOhVDRO/aNDn 5LAyIlcbqhpfrHa3wM2azleMoi3qYYwRSLjSqxQhtHSTBFt5NXNJn5z6bjpAG6xV6/ +CAz1ULVmK+lOcaKTMOp/NsHpprOu/9jtYHtt5Ak= 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.14 25/37] Revert "media: rcar_drif: fix a memory disclosure" Date: Mon, 24 May 2021 17:25:29 +0200 Message-Id: <20210524152325.024613738@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210524152324.199089755@linuxfoundation.org> References: <20210524152324.199089755@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;