Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1355148pxb; Fri, 21 Jan 2022 16:20:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsMg5AAhEhR3SlsU27Pu+nlYf/e0xHTx/LW+vp2SrrhPIjOdR6CYJ6ZWSSGO+rdfRBf2VD X-Received: by 2002:a17:902:e841:b0:14a:ef67:ed8d with SMTP id t1-20020a170902e84100b0014aef67ed8dmr6269302plg.81.1642810825129; Fri, 21 Jan 2022 16:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642810825; cv=none; d=google.com; s=arc-20160816; b=WA5PiH2dAlDlbGrebVdSqNDFOT/GesSH4X5A5lHiKMlSNo/1O0h88ejxBJTXVi1lnh MkASb3bHcTpl6iObIy1POxJS7t7AnD/pvsIz5DGBwWSu30M3/C8y7tbcPzNk51QQsMqL 2xh38bnlLKzjrUNwSR2j4xv+AfPY5s+eP+oa6F5++CMPLXayGAvRHXlyPd3iFsoBSPDx /ahkqNRhaCV8+2ZG7UX+UnRD7gcW0rpJ6pf6ZdqZKy+7b0obsfS6l0xa4ty9g0o3j6RA 6WcWpmn1/kDQCKIyytMJ/VGo4nXYjc/Y4O1dxXrQIf/7SdEZcd0oUZ2uuhvF4m2g4VRA DI/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=M+qzmOcEtsL3/62sMtyoEvenIcPTqlBQVuP0DsNSz+4=; b=nPq7WlPSlSjw+kgnITsvfsJxLlSnVUl52f+SJ8dLJ4x1+Rf8RzlvvNwAO+n5ZC1GRj AEqRj19xEv3sS0BqisMTpx/GI4JVytegR7Qy+tYlP6RGcsNhSWvBjMv0gl8b4waBLdQC wgJ2wVqPUI7uDsRfhkQSWUeluEb+MPAdlC28llEOdRXK2xdhL936+EvOlLgOXGd5/Sjx oBkVtY7rYnRqbn/OwgP3Wuf3tAhyK7+Ql81Pmky8Dx3+R2Xx2xtJY+CRFZJFhS5Pmj/N KL/ycm7c7YZXhNLDTEOD9qGFAyT6wDMe2YxgLNdp/4GmtrHBtly9Lv+pFJtb5YLU9r00 3o/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Hg/Hvy8f"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q20si2387529plk.608.2022.01.21.16.20.13; Fri, 21 Jan 2022 16:20:25 -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=@kernel.org header.s=k20201202 header.b="Hg/Hvy8f"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347754AbiATXAy (ORCPT + 99 others); Thu, 20 Jan 2022 18:00:54 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:50110 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233856AbiATXAx (ORCPT ); Thu, 20 Jan 2022 18:00:53 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2A03A61926; Thu, 20 Jan 2022 23:00:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4629CC340E0; Thu, 20 Jan 2022 23:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642719652; bh=yrxtLQYE3Yeaemcy819dMJ8llPOZboFgoHhGTaIxnLk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Hg/Hvy8fdbrtcd1LKqYf0scpfbBmxrOl+9Gl9E23kTIus26WLT2137a/+eknF6gwq 77RadoqmjIqQhfTCrFqUqZWy9U7FB1NGPiFB0ldvBXQgA7yXP/AgGH37pz6hxsM6/B /kBpxVgpxSXHQ0z9uUbPIqJtS2ILMs9Dv13BlqQ0IF/zFDI3DsSV3sqG/eR8Bi5e1g tA0bQ1nSHwpjsqkHel9nUN12nPAAI1OOYCjUKJ9NhF9Jn2fL1lqYspP9BMktRNF59n tZDec5BHTV4FxLu8zOyF4rXg8N3pe7+ATEPfX4QkMJvVkpx6Cb/KyTzBzfm2kTOHnE l62qK7hKdiTdg== Date: Thu, 20 Jan 2022 17:00:50 -0600 From: Bjorn Helgaas To: Krzysztof =?utf-8?Q?Ha=C5=82asa?= Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Lorenzo Pieralisi , Gregory Clement , Andrew Lunn , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Subject: Re: PCI: Race condition in pci_create_sysfs_dev_files (can't boot) Message-ID: <20220120230050.GA1077958@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 10:18:44AM +0200, Krzysztof HaƂasa wrote: > Pali, et al, > > I'm encountering a problem booting an i.MX6-based device (Gateworks > Ventana SBC). This is apparently a known issue: > https://lkml.org/lkml/2020/7/16/388 > > Do you guys know of a fix for this? Booting this machine reliably is > lately impossible. Hi Krzysztof, is this still an issue? e1d3f3268b0e ("PCI/sysfs: Convert "config" to static attribute") and similar patches appeared in v5.13, and they should resolve things like this: sysfs: cannot create duplicate filename '/devices/platform/soc/d0070000.pcie/pci0000:00/0000:00:00.0/config' But your report is different because it looks like we have a problem when creating a *directory*: > sysfs: cannot create duplicate filename '/devices/platform/soc/1ffc000.pcie/pci0000:00/0000:00:00.0/0000:e0' and then it seems that we corrupted a pointer: > Unable to handle kernel paging request at virtual address 6f736572 (ASCII = "reso") which is even more worrisome. Bjorn