Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp59043imu; Fri, 14 Dec 2018 14:24:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/U17fHLXqTWWw5m0ma3SWumfBFo6IpTm04LOKk8wXlR6h7XOtDeWPHsd4Yk8xc8/quh0Dbk X-Received: by 2002:a62:d148:: with SMTP id t8mr4639057pfl.52.1544826255875; Fri, 14 Dec 2018 14:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544826255; cv=none; d=google.com; s=arc-20160816; b=Jc/QNuhwvtl4A+0yWvNkvwYMz3+uu+5tyE3hkxfHCcXdacraXrW1fagb34U8Xhn6Lk lwanh/bjczG1TGHUQ6riHR1qiiwblS/yz38t2yWcTalrPMMBtIaqrtHHfhbyHqaS2fep njtGmxZb45QjaTErWO9U3d4fGuGoCHIauDmUiZFF51ok8o+do9KvIz1Z3k4QFVxxfYGX CnKqgKY22mRy6B9G1mb4cDZB98f/+YBIe9gy3h/kizrgOox6VQVSLc5YFdLRnw/nvJsN iMz2kUvWFCx19YRnBtGuGGuXA7hI2es8fgY7ju9V859feUq7DunY5nHo71d7vbEEuV81 zYFw== 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:dkim-signature; bh=twhJYydhv0l2xNNnFanMZqK8fN8CSK2XkVlPidB2xdo=; b=0z12FhyeuXdXsgpSxFPHdhLFkd1MUwuma3rny8hOrs3BpcErmAObTd7HdreRqIuX7H M/paVhEt3MA7vypcyG2QQPD4OI+aTRe8cM6cstIVDV/CkD4wMydZdkAmkfbv3bdrAnl/ /WY8alWTtgZWCJ4qC5GXeRf35TCM7VRueVlc1f0lpNLoE8pg1D649DJQklKuRr4tQY+j XSCRelyG4dJKtRZ7aoNbV8mKP1Gnvk8MXGkyyKBO07e7IIKeOJhb3jU7q+u/stdjD472 H8n+3TiGZS2fSJ/JzfjLQTdiXbhgQfHGPTV2HJGNofJ4+w/OIT0dDtNspoFTtXPEhxpk pYqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="BU7/GzGd"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c201si5380393pfb.211.2018.12.14.14.24.01; Fri, 14 Dec 2018 14:24:15 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b="BU7/GzGd"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730228AbeLNWWp (ORCPT + 99 others); Fri, 14 Dec 2018 17:22:45 -0500 Received: from mail.skyhub.de ([5.9.137.197]:48718 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729341AbeLNWWp (ORCPT ); Fri, 14 Dec 2018 17:22:45 -0500 Received: from zn.tnic (p200300EC2BCFEF00117646AD7F85DA05.dip0.t-ipconnect.de [IPv6:2003:ec:2bcf:ef00:1176:46ad:7f85:da05]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8961F1EC06E5; Fri, 14 Dec 2018 23:22:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1544826163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=twhJYydhv0l2xNNnFanMZqK8fN8CSK2XkVlPidB2xdo=; b=BU7/GzGdnAAn4wzQlFDh5VbQGaBnS0nGpFSKXJeHDh1qtWtinZvXhQRFxy2XbRZo+ppiry 4QhCBUFxIG9eIhRLNi1/jW23xWOk/RO3E0lS6m36sN/SIT6tGr7YpNdgz5AXkzn8agLypH 4wkRapt7raStYpRM7xjk6wtU3WpqJ9k= Date: Fri, 14 Dec 2018 23:22:36 +0100 From: Borislav Petkov To: Thomas Schoebel-Theuer Cc: linux-kernel@vger.kernel.org, Laura Abbott , "Rafael J. Wysocki" , Len Brown , Tony Luck , linux-acpi@vger.kernel.org Subject: Re: [PATCH] acpi / apei: fix NULL deref during init Message-ID: <20181214222236.GK11710@zn.tnic> References: <20181214181514.29891-1-tst@schoebel-theuer.de> <20181214202406.GI11710@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 10:27:25PM +0100, Thomas Schoebel-Theuer wrote: > please take a look at the stacktrace. For some reason, and only at that > specific hardware, the condition is false, there but later the indicated > error exit is taken whose message you can see immediately before the stack > trace. Yes, but if you say "for some reason", then we still don't know what the root cause is. So before we do any fixing, let's find out what the problem is first. Can you pls run this debugging hunk ontop of -rc6, on the box and send me full dmesg? Privately is fine too. Thx. --- diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 7389db538c30..5166639b7280 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c @@ -667,6 +667,9 @@ void __init pci_mmcfg_early_init(void) acpi_sfi_table_parse(ACPI_SIG_MCFG, pci_parse_mcfg); __pci_mmcfg_init(1); + pr_info("%s: setting apei filter\n", __func__); + dump_stack(); + set_apei_filter(); } } diff --git a/drivers/acpi/apei/apei-base.c b/drivers/acpi/apei/apei-base.c index da370e1d31f4..e87b183ca73d 100644 --- a/drivers/acpi/apei/apei-base.c +++ b/drivers/acpi/apei/apei-base.c @@ -494,6 +494,9 @@ int apei_resources_request(struct apei_resources *resources, if (rc) goto nvs_res_fini; + pr_info("%s: 1, arch_apei_filter_addr: 0x%px\n", + __func__, arch_apei_filter_addr); + if (arch_apei_filter_addr) { apei_resources_init(&arch_res); rc = apei_get_arch_resources(&arch_res); @@ -552,6 +555,9 @@ int apei_resources_request(struct apei_resources *resources, release_mem_region(res->start, res->end - res->start); } arch_res_fini: + pr_info("%s: arch_res_fini, arch_apei_filter_addr: 0x%px\n", + __func__, arch_apei_filter_addr); + if (arch_apei_filter_addr) apei_resources_fini(&arch_res); nvs_res_fini: -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.