Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2564866pxb; Mon, 18 Jan 2021 23:43:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHNb3MQKd0J9qMMoC+mVBNBrBJw7WC1Iy9vwbya8PXnSxk88Y1shHblWw1Z7ZmteMSf1KH X-Received: by 2002:a05:6402:5107:: with SMTP id m7mr344656edd.52.1611042228919; Mon, 18 Jan 2021 23:43:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611042228; cv=none; d=google.com; s=arc-20160816; b=FWmrTQNxpeBTC1Iumz06SX+28h+dfXYC6GzvwPE7hxoEGNxjZArNGxigoJVdQmXceG OrOga/nhp/SSQ5lv6tvOtO6e9AuV3xieQT8D61VqekGewNKN14O1swmC1wWSI2wBLXQY GrVFta8PazAuAVgHuIFkvuZgyrEnkEUlMIWOgnQJwTsWhc0cZCSp/MGxzMs/x7v30lJW +rCIrCJpMMaP/QW1F+a1z7kfq9SK7nBnvR349ODSlat4tyMOR9WmPJdCN5wU3K+mk0PY l2pISTi8bVCbUi+Hvxnq/1tSCzGhKR321VcYHBwOQYSpMxmqKTxrd0fdXP8jb8ZphNIS EudQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=rWiAIVx/cfnS+Kuhe2BmmURCvyOlEBvFwxCefRsqkJI=; b=XHLlDKVHJdxkb4bq0FxJamBJ0Ep3nuykdVrfgpXxpiSmTEOojgdnsWRFyuAz8ABIts GsRxehcco7YZONVxjXH0kWxaeg12EaE2qnZFqxSPTkvncmMOnShd0lyS4FClmUhoK+Kj y2w1FBi9zoeGisIzAEsiXIEvcdJM4Jp6TM9m6Mke2b4gzwcCq9RW05MMp+P3aDbNYjpc uVm7V5leNtInGnpZ/ZBVtpkNwf14HwFqyu85O7YKxRXIGCXmiXGi7RDt/osyT1LXprEk qG+xGKb8mljaRx1ujyTlPqUJxoY8coYTaQE1fjrpWqjIXvSpzYIoAkpfydKevqatBa+i QuLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=endm4JwI; 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 h12si6001359edk.467.2021.01.18.23.43.25; Mon, 18 Jan 2021 23:43:48 -0800 (PST) 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=@ffwll.ch header.s=google header.b=endm4JwI; 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 S1730640AbhASHl6 (ORCPT + 99 others); Tue, 19 Jan 2021 02:41:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730797AbhASHlA (ORCPT ); Tue, 19 Jan 2021 02:41:00 -0500 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF912C061573 for ; Mon, 18 Jan 2021 23:40:19 -0800 (PST) Received: by mail-oi1-x22b.google.com with SMTP id q25so20250127oij.10 for ; Mon, 18 Jan 2021 23:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rWiAIVx/cfnS+Kuhe2BmmURCvyOlEBvFwxCefRsqkJI=; b=endm4JwIJyes4YS+ZYUM4Rl2772tT/bCmyAOmHbzu9bimAdluEy7qSidBvLkZZHMX3 D5YknaW03JsLN8eaYa7110mEPwP97tRYCUXQuSLHHOPmKDk4oOkhip4E3luPhGuQRbaR nBh81B1TdlV5nGa6MKnp/ZZF1N/41vgusNyWk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rWiAIVx/cfnS+Kuhe2BmmURCvyOlEBvFwxCefRsqkJI=; b=cL9rQDMQc25c/IrZ9KSxJHNED2nNU9jPhI7NH7eAKA+AW84WSO+m14+qzp8v3ag6xS WV5MoAsCOco+QAqQ41PxN1AkQ4E8UPCHQwJz0Tyt1iBzHyOPApOJ2iohYogfTQ5SbOP8 U/Pf/cfIoG2ur++nn12vKc1cHSeHVzZFg/Q0f24Iw1T7yohH8nEx5P6b/B71B1r5pZ5K qgNfDtMZ25cPh7koE/2bDLvmkIvNUuia9FC8fBI05c9YyH5ChJRlFbMhOaHeJrULQUsT Il6ZHyLfZmTdPPw5lOvhFhU6wfhJFWoSgqCs5T9BociBnRUAjYIc57AO8KgbcKtH5h/F 2vwQ== X-Gm-Message-State: AOAM533+HabgR1kDP4f4PG3yZmYKhNKs8wgTKkgpeeD8UlTQUWYwqJ+n DRCPnSq3/nZ+vCaXgQwHEDAvCMBO2OA04w92ijJDcW7ttHA= X-Received: by 2002:aca:ad92:: with SMTP id w140mr1762109oie.128.1611042019031; Mon, 18 Jan 2021 23:40:19 -0800 (PST) MIME-Version: 1.0 References: <20210113162948.45b0fbfd@canb.auug.org.au> <20210119162619.6782c5d2@canb.auug.org.au> In-Reply-To: <20210119162619.6782c5d2@canb.auug.org.au> From: Daniel Vetter Date: Tue, 19 Jan 2021 08:40:08 +0100 Message-ID: Subject: Re: linux-next: boot failure after merge of the iomem-mmap-vs-gup tree To: Stephen Rothwell Cc: Daniel Vetter , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 19, 2021 at 6:26 AM Stephen Rothwell wrote: > > Hi all, > > On Wed, 13 Jan 2021 16:29:48 +1100 Stephen Rothwell wrote: > > > > After merging the iomem-mmap-vs-gup tree, today's linux-next boot test > > (powerpc pseries_le_defconfig) failed like this: > > > > EEH: pSeries platform initialized > > PCI: Probing PCI hardware > > BUG: Kernel NULL pointer dereference on write at 0x00000030 > > Faulting instruction address: 0xc00000000013bf4c > > Oops: Kernel access of bad area, sig: 11 [#1] > > LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries > > Modules linked in: > > CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.11.0-rc3 #2 > > NIP: c00000000013bf4c LR: c0000000007a9ee8 CTR: 0000000000000000 > > REGS: c0000000063a3610 TRAP: 0380 Not tainted (5.11.0-rc3) > > MSR: 8000000002009033 CR: 84002440 XER: 00000000 > > CFAR: c0000000007a9ee4 IRQMASK: 0 > > GPR00: c0000000007a9ee8 c0000000063a38b0 c0000000013d8100 c000000006061300 > > GPR04: 0000000000000000 0000000000000b20 c000000000f11738 000000000000ffff > > GPR08: c0000000007a7ab0 0000000000000000 c0000000007a7a40 2d6770696f730000 > > GPR12: 0000000000000000 c0000000015b0000 c000000000013120 0000000000000000 > > GPR16: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > GPR20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 > > GPR24: c000000006210de8 c000000006167120 c000000006620b20 0000000000000000 > > GPR28: c000000006167120 0000000000000180 c000000006061300 c000000006167000 > > NIP [c00000000013bf4c] iomem_get_mapping+0x1c/0x30 > > LR [c0000000007a9ee8] pci_create_legacy_files+0xa8/0x1c0 > > Call Trace: > > [c0000000063a38b0] [c0000000007a9e84] pci_create_legacy_files+0x44/0x1c0 (unreliable) > > [c0000000063a3930] [c000000000795198] pci_register_host_bridge+0x288/0x510 > > [c0000000063a3a60] [c000000000795514] pci_create_root_bus+0xf4/0x150 > > [c0000000063a3ac0] [c00000000006d424] pcibios_scan_phb+0xe4/0x270 > > [c0000000063a3b70] [c000000001010b40] pcibios_init+0x8c/0x128 > > [c0000000063a3bf0] [c000000000012b70] do_one_initcall+0x60/0x2c0 > > [c0000000063a3cc0] [c0000000010046b4] kernel_init_freeable+0x2e8/0x380 > > [c0000000063a3da0] [c000000000013144] kernel_init+0x2c/0x168 > > [c0000000063a3e10] [c00000000000dff0] ret_from_kernel_thread+0x5c/0x6c > > Instruction dump: > > 7c634850 4e800020 60000000 60000000 60420000 3c4c012a 3842c1d0 7c0802a6 > > 60000000 3d22000d e929caf8 7c2004ac 4e800020 60000000 60000000 > > ---[ end trace 77f55ece72f02708 ]--- > > > > Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b > > > > Caused by commit > > > > 85482fbab59e ("PCI: Revoke mappings like devmem") > > > > Reverting that commit fixes the boot, so I have done that for today. > > I am still reverting this commit. Thanks for the reminder, I missed your earlier report. I don't have a machine here with HAVE_PCI_LEGACY, but I think I understand what's going on here. I'll drop the last two patches from the branch for now (since both need to be changed to address this somehow). -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch