Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2332892ybl; Thu, 19 Dec 2019 11:44:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxLIQH5vDzIReqLg98HkD2QlhSW8pYcMFgOMHW/QvO1XMofLjuI5xYA9styoAWChcYrUckd X-Received: by 2002:a05:6830:18f1:: with SMTP id d17mr5441407otf.298.1576784662173; Thu, 19 Dec 2019 11:44:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576784662; cv=none; d=google.com; s=arc-20160816; b=CUyQgSCETHh828D6nBgUJN9Ame90h4lmPD+Y9iolaL2RSmC1bKwiqKswKOD6dZ9Jsi xPMeLsuygSY72W2T8fvG5gYpyOmd92co5rzHq5NPhLus25vZFM5CEGsD5o8IlkaoBcOI MoC7+EVabAUICU1oHztY9liX6OR8q4ZBeyE8N7GAE22BbmjdDVACFFLo0G24UAsavahh 9JCli0i1gAW4zVIt+BFI4wwrTufw5Vy+Q5blk4vNSGaIF/wMzbVxFP9d/f9olvAwulm2 98N2rbGQWkCP2y68u4HwBO9whzALgdNjwC5dgwhoRfO3+yeqABTneOgfE4O4fb45pPl+ 62kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version; bh=OagMOxr/b8WKlbwoxTKzTjv31eBq/mVAqnU4PeX/2pk=; b=qmBOxhHDeFfAdFNq8AEFFsG29KauUuZAVdEkFBbOdgSn7D6w3EkKeVdaVDwUuXmu0S qXhTikP+Pke1D7zysrcCKf7K+14L3tP6MlzHwy8nrNj+ZrXp7qklP0sqkg2lROhu6xKc 5QrILUljd+/ke0AsyL2kGx+SjjnfgemAy/9EgOcZ6kgqTycE0s5N6itgLVSb0OiAcT54 DMgomCLXS2xxmEivbjgrL8pgLxvRL7MfVWzIKghvDoDd3k1/Qox3znxVY0BdvdsOFNZG N40c4xvyGUSn/Kk09IlCPugLh3oAejMLFz0NkqXMSda4IPOrB6py+ZY8N8chk0RacvhQ nRHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i17si3752907otl.149.2019.12.19.11.44.08; Thu, 19 Dec 2019 11:44:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727269AbfLSTnO convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Dec 2019 14:43:14 -0500 Received: from mail.fireflyinternet.com ([109.228.58.192]:57660 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727120AbfLSTnN (ORCPT ); Thu, 19 Dec 2019 14:43:13 -0500 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 19638651-1500050 for multiple; Thu, 19 Dec 2019 19:43:08 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: Colin King , Daniel Vetter , David Airlie , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org From: Chris Wilson In-Reply-To: <20191219190916.24693-1-colin.king@canonical.com> Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191219190916.24693-1-colin.king@canonical.com> Message-ID: <157678458608.6469.7303602517496484124@skylake-alporthouse-com> User-Agent: alot/0.6 Subject: Re: [PATCH][next] drm/i915: fix uninitialized pointer reads on pointers to and from Date: Thu, 19 Dec 2019 19:43:06 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Colin King (2019-12-19 19:09:16) > From: Colin Ian King > > Currently pointers to and from are not initialized and may contain > garbage values. This will cause uninitialized pointer reads in the > call to intel_frontbuffer_track and later checks to see if to and from > are null. Fix this by ensuring to and from are initialized to NULL. > > Addresses-Coverity: ("Uninitialised pointer read)" > Fixes: da42104f589d ("drm/i915: Hold reference to intel_frontbuffer as we track activity") > Signed-off-by: Colin Ian King "D'oh" Reviewed-by: Chris Wilson -Chris