Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5339182ybl; Tue, 10 Dec 2019 04:30:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwZmiJnQIUn6ypcg3twtmdEwBxz3pME4MTGANHs8fM8KLKuuHNQaDqcJb3NjuyfBPsft0my X-Received: by 2002:a05:6830:15d9:: with SMTP id j25mr24732202otr.279.1575981029854; Tue, 10 Dec 2019 04:30:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575981029; cv=none; d=google.com; s=arc-20160816; b=NysFJhxoWsV6hTtcRXNZBT8A/KAimPaCShdtAGMgd4ec1nMU7bjCg+lNV1+kyMMd9Z dZV42fA1sNfxW2pnh41eZ+nCwCv0ZTUOM+dEYPgOfmEndu4rfRn2R1C0MRLOc4DB2cJD cqXIgMHwPsz4jP4+E2MjWdc91HlU+Bt2HGEGi+Vas2hncA6gBxKdn6k7zdeSLFcMcriU +QW1eKGMBX+7lwvZR6JEtZnMTg2UexgREvFx6/vxjHRYbMM2asaGIfegghczjgybhWEn e6KIyDWZ+LSvIt1vTYVO7bUenR5VlRFkC6zt7P3KhCsuuI2PZ0u0RgLcmVmK/7Bg1vXh /TbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/5ZxMfASJjWRUewz4UCBzuva+UE7o9YxhHl67O4hFF4=; b=voBtqV4Pj8+/NVev9XGTPMqe2tGcvQvk+8eheHRZQvsK5rmmfe8nMLLPGZ3jfZpAV1 9QzNrCckuOfutywbqkWpcKX5ERukzx4E4Pv4Np4rCqTkXmRK48Z0PTFtJaLA4ak0aIXc KveK4Ma6lAW2sV+g6hHSuUygT1n8mhNsk50B05BZERJ68amS3PO7tB89yuIvrdryk4Ml mn5l2DA+1YYpelvqY6kSi1QZdT0d9Ort4SWme/KyeB8IOXoUnUgGSKiiEkjyzwm48jU2 Z6dcPWKley0S/EluJAwYVQLfWy+ZmUpjOpPHXDCvBodELZatqDLRD2YUPTlj3v0OTcDd eofQ== 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 19si1843731oiq.128.2019.12.10.04.30.16; Tue, 10 Dec 2019 04:30:29 -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 S1727332AbfLJM3o (ORCPT + 99 others); Tue, 10 Dec 2019 07:29:44 -0500 Received: from bmailout3.hostsharing.net ([176.9.242.62]:56999 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727131AbfLJM3o (ORCPT ); Tue, 10 Dec 2019 07:29:44 -0500 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 125AA100B01B2; Tue, 10 Dec 2019 13:29:42 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id B9112ECCD5; Tue, 10 Dec 2019 13:29:41 +0100 (CET) Date: Tue, 10 Dec 2019 13:29:41 +0100 From: Lukas Wunner To: Nicholas Johnson Cc: "mika.westerberg@linux.intel.com" , Bjorn Helgaas , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , alexander.deucher@amd.com, tiwai@suse.de Subject: Re: Linux v5.5 serious PCI bug Message-ID: <20191210122941.zzybs4z5jphpjsu2@wunner.de> References: <20191209131239.GP2665@lahna.fi.intel.com> <20191210072800.GY2665@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [cc += Alex, Takashi] On Tue, Dec 10, 2019 at 12:00:23PM +0000, Nicholas Johnson wrote: > On Tue, Dec 10, 2019 at 09:28:00AM +0200, mika.westerberg@linux.intel.com wrote: > > On Mon, Dec 09, 2019 at 01:33:49PM +0000, Nicholas Johnson wrote: > > > On Mon, Dec 09, 2019 at 03:12:39PM +0200, mika.westerberg@linux.intel.com wrote: > > > > On Mon, Dec 09, 2019 at 12:34:04PM +0000, Nicholas Johnson wrote: > > > > > I have compiled Linux v5.5-rc1 and thought all was good until I > > > > > hot-removed a Gigabyte Aorus eGPU from Thunderbolt. The driver for the > > > > > GPU was not loaded (blacklisted) so the crash is nothing to do with the > > > > > GPU driver. > > > > > > > > > > We had: > > > > > - kernel NULL pointer dereference > > > > > - refcount_t: underflow; use-after-free. > > The following is the culprit responsible for the issues: > > commit 586bc4aab878efcf672536f0cdec3d04b6990c94 > Author: Alex Deucher > Date: Fri Nov 22 16:43:50 2019 -0500 > > ALSA: hda/hdmi - fix vgaswitcheroo detection for AMD Does the below fix the issue? -- >8 -- diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 35b4526f0d28..b856b89378ac 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1419,7 +1419,6 @@ static bool atpx_present(void) return true; } } - pci_dev_put(pdev); } return false; }