Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5355193ybl; Tue, 10 Dec 2019 04:47:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwmF4eCTTonAakidBNnfXRsKUUaBaZartEmj5w8QJfyTAWAazgpdaXkwkSWoiWuUZAhHqb6 X-Received: by 2002:aca:2207:: with SMTP id b7mr3789035oic.109.1575982055831; Tue, 10 Dec 2019 04:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575982055; cv=none; d=google.com; s=arc-20160816; b=Qrs8aRFLgBB3Z0gAmEQ7k6wBM+XfUnk4NL5jGRwnjyuLVxEINqXRaSroSmHIBqPOz3 /RbvVT7L4HLpQZWxpcZQR+IL48k9t++YMANYKKxqAa3V4GEMaHvMT9KfUHfuu4TiT341 nL6eJ9cDEjHG89xR3wPVodrZNFdQ3L9DlbCUC0p0C99D459LcEB2cZbCSUjGfFn8OVXV Tmyt6v8by+AZCFxHCOpQiH7BpUKfDTY25vBQzUDpwsp1eNgl2BcEUx+qGhjKxjv7ErYy K5lMpC/N3XODsPkdPwWqLTb8Ll4Pm1+OqJXyPnvBiEvgfVvlTBB//VQe5mTcfdzgT4fP XwCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=KbG9NCyzPx3KZHD1ERDJgH+xu7mTXuGFmXeueNY4xcY=; b=r0ULQq7fiGLo2wPmG9ZGJIeH80WBgG1PcTZsECQqHBpjm5lYGYJP4mmXEUn55oAGv4 7CNEdut2fp4S96Xf5FQbQsA5Gl8lUv/Eh+1gEa+w+84EoreeNkBA6PkS1St4H0zEOKDv S+vdAp4YqKYCp85NDlBrXqnY2Ebbr0xJV/rMiL8kc3L5mxjLmJPYX6hhBGznHvC4JXMB UDzmf05Aj/rQTlCJoiAc9JlibnshBz4iGlmnlGg5rmAApYPCebRGWw/cQC438SlaazXa sGICHf0REK5llnpz1mLOc6FZtI4m7E1v9wIhmmk4+n37ToQHBjJCrHJv9sfxyvNjLYTh IMXA== 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 c6si1758496oto.283.2019.12.10.04.47.22; Tue, 10 Dec 2019 04:47:35 -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 S1727351AbfLJMqt (ORCPT + 99 others); Tue, 10 Dec 2019 07:46:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:36136 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727131AbfLJMqt (ORCPT ); Tue, 10 Dec 2019 07:46:49 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 44A83ABC4; Tue, 10 Dec 2019 12:46:47 +0000 (UTC) Date: Tue, 10 Dec 2019 13:46:46 +0100 Message-ID: From: Takashi Iwai To: Lukas Wunner Cc: Nicholas Johnson , "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 In-Reply-To: <20191210122941.zzybs4z5jphpjsu2@wunner.de> References: <20191209131239.GP2665@lahna.fi.intel.com> <20191210072800.GY2665@lahna.fi.intel.com> <20191210122941.zzybs4z5jphpjsu2@wunner.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Dec 2019 13:29:41 +0100, Lukas Wunner wrote: > > [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; > } Oh this looks really like a bug, even if this isn't the root cause. Care to submit a proper patch? thanks, Takashi