Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp274926pxy; Fri, 30 Apr 2021 05:18:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHxBc7PjxIQO2+fqSwyouX7PKH+LpaUzq3pNgn58bziKAj6uWqX53fTNpMa/trEBYv8Ekj X-Received: by 2002:a05:6402:2794:: with SMTP id b20mr5615017ede.48.1619785096988; Fri, 30 Apr 2021 05:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619785096; cv=none; d=google.com; s=arc-20160816; b=wKLVZIQ1kzbtIHBwwr9eg1m3eU9sqAGUABjBD9thyLAm824tmH85Q1nGrmDRJLZnOY 9pC17TobwtzhY9lumwJxz31BRz1e52r3JzjITTMeZwfXEEgcE3ECaBHfn6wDzpMzDBwp 7Z6aTsNjLIMVhSWC5mR0ZatYqwmpwFha4kfjjEDki9cSSHEx84tVNf8VAC12PxmtieNY R1AKNTe83Z1gTVQ1a/wRv9zXNCXQaOBSdlb+C81C7/1lHZlCfZvOoxX3QPx0ZMb4mSz2 +ReQIHPH24aL3+ivVH8PLnuD/vXlBC2QuTPbnfOo6MBxz02GFS7TdOY/i8ep2dwgKsjz CM2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dkB7nXj4gFf0MJVmvt8idfeJeVn9mjX7aB4mf67b/Yw=; b=ZRn237OeKYl8gT89blKQaKybJ8cVPbCoPBVXnp/zuIIgDmYLbIQhDSvZ4ZlLyWkTG8 +PqaXKQl5pGRyHZzOgymtUDKcNWd3BIS6zKH+jmdV8HkYme9G+wxc0w3UbiIez5vEIxp cNTRkpIbuIMFUebIl7daiQ/4Drf4tKfgC8gNEZ066kqlBImcJ+HoRChupvMhrLw0Oq2w wyAbTUf91Qv9RvtfVa5u9pSUEIdKxBl9+nK+ZgvJWZOniWnBs39uX2xpvKLBF2M6jqMV P/neNWiXFwkcVBkDSqzsPzSGiH3hOkNxySwJlV8w9s5Srv2ELUKsDvSF6TISKFdRYVQQ T5Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ziYZnYdE; 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 dd21si1563007edb.45.2021.04.30.05.17.48; Fri, 30 Apr 2021 05:18:16 -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=ziYZnYdE; 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 S231476AbhD3MRZ (ORCPT + 99 others); Fri, 30 Apr 2021 08:17:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:37856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229911AbhD3MRZ (ORCPT ); Fri, 30 Apr 2021 08:17:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4FF3661059; Fri, 30 Apr 2021 12:16:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619784996; bh=uqks43nqlqQ49VpQR/3gkgAqdEBhthvpFSdy6FJKWOo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ziYZnYdEfRh3i0XJH8CIgCpiVMSAUKlt5EN1UUbB73Bfv5CqTyQarKSZTqVM47AN4 mO8OIQGwzqt/jJutwVAIPiKC9d2qvYuYlmsUF9tm1RVgrZEdur6+G5lzbs5ruxuHeI 5IciP/LJty/9u9Awy7amtjK7Xx6hO7S6hSGT3854= Date: Fri, 30 Apr 2021 14:16:29 +0200 From: Greg Kroah-Hartman To: Pavel Machek Cc: linux-kernel@vger.kernel.org, Kangjie Lu , Daniel Vetter Subject: Re: [PATCH 075/190] Revert "gma/gma500: fix a memory disclosure bug due to uninitialized bytes" Message-ID: References: <20210421130105.1226686-1-gregkh@linuxfoundation.org> <20210421130105.1226686-76-gregkh@linuxfoundation.org> <20210429202301.GI31692@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210429202301.GI31692@amd> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 10:23:01PM +0200, Pavel Machek wrote: > Hi! > > > drivers/gpu/drm/gma500/cdv_intel_display.c | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c > > index 5d3302249779..f89c2088dc2d 100644 > > --- a/drivers/gpu/drm/gma500/cdv_intel_display.c > > +++ b/drivers/gpu/drm/gma500/cdv_intel_display.c > > @@ -405,8 +405,6 @@ static bool cdv_intel_find_dp_pll(const struct gma_limit_t *limit, > > struct gma_crtc *gma_crtc = to_gma_crtc(crtc); > > struct gma_clock_t clock; > > > > - memset(&clock, 0, sizeof(clock)); > > - > > switch (refclk) { > > case 27000: > > if (target < 200000) { > > Original description is correct, we are returning with .vco and .dot > unitialized which is at least very very ugly, so we should keep the > memset and not revert this. Good point, revert now dropped, thanks. greg k-h