Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1210422pxk; Fri, 25 Sep 2020 08:54:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0/kF8gWGeKwj/KGQ3/NxS4pq6UDmfCQrY3x7TgyepKMOaIavAtKjGpfdlrjmn0vP9jdA2 X-Received: by 2002:a17:906:4b18:: with SMTP id y24mr3283565eju.471.1601049244961; Fri, 25 Sep 2020 08:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601049244; cv=none; d=google.com; s=arc-20160816; b=1JGPyMEwlH63GtUtPVvKnz141DwSEdPYBloqnPuehURDIAOr1VR3Z5j1k0ddTI1Wdl XiZ2YvZfKXU4O8Csm8fgW27YCU1QYlpE+JPzBc6ubvf8Ye7mTFJEM4x6Vmk6A3CiY5fQ jGBtQnjlt0cS38mgUoLoPNjBuu4dvxEWK/GF5M55pP/Uq/4qUq97SRGNWyf/R8DKrDZ7 7RNVUGwHt9b76VkFMVpKvuX/p64n6eIOsYIXbLIKoGT6f0LyKWvYXdNMjKN4xcucFKz1 iRtBP82l/aGho8W2ZIAeXH7vCXTgdzOt23cqwCzONF8U9FnjW9qpCROftAD3c0dimsgG D66w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vetmaFlRbxjG1gdDdh98OoTp5N216Sm8DYU37hXmY/4=; b=D4yTB29Tcgbjv/A9DmVAAHpHCAO9bPIbi8l+Yrq07weJ4m49YfwrNPnkPtnGHQ6Jkg MfoDL22binLRi3mDrj/18k22noLTeY7DzRbb5Um3HMTuPZdTWIXqOZfty6pkclJM+bex JmjvWicKfNQGBRDXo3dVlRls8Q4RT0wbDlrVqAiIbAzTznTLVXH8OEbkR1uCINVr+5Um RAZPyXlnQRUv3flN3pvQQJb5sR1/sbd9N+qiKPPvMXVEsfOyLmTJhVjiQnPoME5FZyaY ESBsbGS8zCkhtJ5sLDB4wO3r70DkBINF7xMZZh9G/5bDNi1P4MPw6wFTpBTvgSwP7Z3R 97kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=jsCuR452; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v26si2064799ejr.748.2020.09.25.08.53.33; Fri, 25 Sep 2020 08:54:04 -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=@infradead.org header.s=casper.20170209 header.b=jsCuR452; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729306AbgIYPu1 (ORCPT + 99 others); Fri, 25 Sep 2020 11:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727290AbgIYPu1 (ORCPT ); Fri, 25 Sep 2020 11:50:27 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C93BC0613CE; Fri, 25 Sep 2020 08:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=vetmaFlRbxjG1gdDdh98OoTp5N216Sm8DYU37hXmY/4=; b=jsCuR452EgU0sos8kOsxSDr7R3 +WnE00/9rj4OSw7HiifYWzMSz2zCXDKSUbj6zfwWTttYV1qOL4NJ7f5lcASVzcTd5ei+SEDvdISkd 7R87MMZAzYQMltLhqaAbg9lfweLZSGGYhkQUycDhiQMudOoCFc5Sc4Hv+bRvfmWW583ncfRKpGi4d pkVo7M/zFgkSpXPR2Qtvwe6TRceX8ehOHPs2SB63y8/Tny+ju3buF7EDRpQAP2dNR9M6VCpZ8LTnI uZSijMScB44GmbgqKAHg07k2n+ktUQpuaHgqXOQ8do64DP8NSLMDvzFg46Pel/9/eRlCTefHa0uA+ XnrXREfQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kLpyf-000281-Sm; Fri, 25 Sep 2020 15:49:41 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 046FF980DC7; Fri, 25 Sep 2020 17:49:37 +0200 (CEST) Date: Fri, 25 Sep 2020 17:49:37 +0200 From: Peter Zijlstra To: Qian Cai Cc: Thomas Gleixner , LKML , Stephen Rothwell , linux-next@vger.kernel.org, x86@kernel.org, Joerg Roedel , iommu@lists.linux-foundation.org, linux-hyperv@vger.kernel.org, Haiyang Zhang , Jon Derrick , Lu Baolu , Wei Liu , "K. Y. Srinivasan" , Stephen Hemminger , Steve Wahl , Dimitri Sivanich , Russ Anderson , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Konrad Rzeszutek Wilk , xen-devel@lists.xenproject.org, Juergen Gross , Boris Ostrovsky , Stefano Stabellini , Marc Zyngier , Greg Kroah-Hartman , "Rafael J. Wysocki" , Megha Dey , Jason Gunthorpe , Dave Jiang , Alex Williamson , Jacob Pan , Baolu Lu , Kevin Tian , Dan Williams Subject: Re: [patch V2 00/46] x86, PCI, XEN, genirq ...: Prepare for device MSI Message-ID: <20200925154937.GL29142@worktop.programming.kicks-ass.net> References: <20200826111628.794979401@linutronix.de> <3c12bdec2c4ecdabcccd9ece3d495d792e9fc231.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c12bdec2c4ecdabcccd9ece3d495d792e9fc231.camel@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 11:29:13AM -0400, Qian Cai wrote: > It looks like the crashes happen in the interrupt remapping code where they are > only able to to generate partial call traces. > [ 8.466614][ T0] BUG: kernel NULL pointer dereference, address: 0000000000000000 > [ 8.474295][ T0] #PF: supervisor instruction fetch in kernel mode > [ 8.480669][ T0] #PF: error_code(0x0010) - not-present page > [ 8.486518][ T0] PGD 0 P4D 0 > [ 8.489757][ T0] Oops: 0010 [#1] SMP KASAN PTI > [ 8.494476][ T0] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G I 5.9.0-rc6-next-20200925 #2 > [ 8.503987][ T0] Hardware name: HPE ProLiant DL560 Gen10/ProLiant DL560 Gen10, BIOS U34 11/13/2019 > [ 8.513238][ T0] RIP: 0010:0x0 > [ 8.516562][ T0] Code: Bad RIP v Here it looks like this: [ 1.830276] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 1.838043] #PF: supervisor instruction fetch in kernel mode [ 1.844357] #PF: error_code(0x0010) - not-present page [ 1.850090] PGD 0 P4D 0 [ 1.852915] Oops: 0010 [#1] SMP [ 1.856419] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.9.0-rc6-00700-g0248dedd12d4 #419 [ 1.865447] Hardware name: Intel Corporation S2600GZ/S2600GZ, BIOS SE5C600.86B.02.02.0002.122320131210 12/23/2013 [ 1.876902] RIP: 0010:0x0 [ 1.879824] Code: Bad RIP value. [ 1.883423] RSP: 0000:ffffffff82803da0 EFLAGS: 00010282 [ 1.889251] RAX: 0000000000000000 RBX: ffffffff8282b980 RCX: ffffffff82803e40 [ 1.897241] RDX: 0000000000000001 RSI: ffffffff82803e40 RDI: ffffffff8282b980 [ 1.905201] RBP: ffff88842f331000 R08: 00000000ffffffff R09: 0000000000000001 [ 1.913162] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000048 [ 1.921123] R13: ffffffff82803e40 R14: ffffffff8282b9c0 R15: 0000000000000000 [ 1.929085] FS: 0000000000000000(0000) GS:ffff88842f400000(0000) knlGS:0000000000000000 [ 1.938113] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1.944524] CR2: ffffffffffffffd6 CR3: 0000000002811001 CR4: 00000000000606b0 [ 1.952484] Call Trace: [ 1.955214] msi_domain_alloc+0x36/0x130 [ 1.959594] __irq_domain_alloc_irqs+0x165/0x380 [ 1.964748] dmar_alloc_hwirq+0x9a/0x120 [ 1.969127] dmar_set_interrupt.part.0+0x1c/0x60 [ 1.974281] enable_drhd_fault_handling+0x2c/0x6c [ 1.979532] apic_intr_mode_init+0xfa/0x100 [ 1.984191] x86_late_time_init+0x20/0x30 [ 1.988662] start_kernel+0x723/0x7e6 [ 1.992748] secondary_startup_64_no_verify+0xa6/0xab [ 1.998386] Modules linked in: [ 2.001794] CR2: 0000000000000000 [ 2.005510] ---[ end trace 837dc60d7c66efa2 ]---