Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2901445rwo; Mon, 24 Jul 2023 03:12:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqA+Gu2GFozRPoKPenFvIDI6V2emgZPpArXz9KXbMxtUWxT1QDZP83SnEfpeorrBjrp583 X-Received: by 2002:a17:907:7890:b0:993:d53b:9805 with SMTP id ku16-20020a170907789000b00993d53b9805mr10094416ejc.11.1690193553327; Mon, 24 Jul 2023 03:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690193553; cv=none; d=google.com; s=arc-20160816; b=tdcTRyVyPs/wq107F9zuCO83neu4WMyi4zSc9PlIrnLLlVKJu/N6vf44WaNNIB48vW Xs1KPbNzaTCTO4r966xkqFjbdzFSe53aEZvVEVW/VAgFZHsxQd2Rh7RefbQVUW5NuFrn pN09hNHaanNhAdDqJ5zvJn/pHZ/vst7Xu6eyibwjFB7IXpTwT/bWQlbDKMrYuseqPgpZ XViJV3ZV8twYQdLstsPy1Q6kcpuCJOhYvK+HQ5PalWHnkcis3AiNFwA6xrtfq14pxCpJ OymMyR2fPpvH/PJNJBitT0ZBUCfQ5+q0JCi86hqz4J9KPCuTkxo1QTkVtcdmPlYduhiR cWyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=1aqMAns950u+zeLChDvq/fTf6JcAIcxdD0X+X9fGaDg=; fh=hRPQZ3IYugzqeskPxVAUu3cTJppRkb/M7bHKvig6OO8=; b=o9940IKaPjVrXILBjmFuqDPE7PYFvJtdEeVbG9vU68AHR/XBgniVcWBcdoUH7K4yRF HeNFNXchfKsMt+sXlv5lky2O/mWFYhNu4SNqVTnjnlxgCvjZwsYe0Bl3WxZZFyztinmU isdPhKn9vEC3LDscrDXMb9sEJJN18ti2dUJsbypKTdL+dc7vMHb4fkEsmucfarE1OMOU kgjMR2CtNWg/eGkvO57/vSxxQJfX1Ot2Sj98LBH4kync3TJGrwMR7U0Si6JBLuuvs1Jk fWyV8ALmfqnFab6FjtenPDA3GWVM6jW5uPZNnjUp9kY7x//QZLzwRfGXq67pG74CmMHB 7aPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MebdwS33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qu13-20020a170907110d00b0099316735a60si5769912ejb.1042.2023.07.24.03.11.55; Mon, 24 Jul 2023 03:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MebdwS33; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231759AbjGXJ2P (ORCPT + 99 others); Mon, 24 Jul 2023 05:28:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231611AbjGXJ2N (ORCPT ); Mon, 24 Jul 2023 05:28:13 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BACDBF3 for ; Mon, 24 Jul 2023 02:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690190843; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1aqMAns950u+zeLChDvq/fTf6JcAIcxdD0X+X9fGaDg=; b=MebdwS33yJFthqXn0wZ7S4Wg57nNuzLJxVkePaEZVM3DN5Xi2FOjSAGNHee3fvDD569Xkh yxKD16mCJ7RYiqU40BVsdiK8IVzAjRVe/fN27WWIYXpF1MMU7QOJLalm1aHSWUF5VYEbw2 56aMgj0/egHvpRHM46GGWByCEdIrD9Y= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-96-ereW8Y-3NVewcRgiVrh0BA-1; Mon, 24 Jul 2023 05:27:22 -0400 X-MC-Unique: ereW8Y-3NVewcRgiVrh0BA-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-993d631393fso360128966b.0 for ; Mon, 24 Jul 2023 02:27:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690190841; x=1690795641; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1aqMAns950u+zeLChDvq/fTf6JcAIcxdD0X+X9fGaDg=; b=Z/5ty+iB5R0Fjs471gvghIBxxJ5O4NZC47u3H5FPyhtD6DpX57yO+/ppkwbttaZAAz 2tt0iuPFlRZZQePX9vqih1MlSMbSmE8B1cBCYOfWNdoeSLWnq1tNtgSoqtpmlYODXPeT hl2jOc1MsuDOa7hj6JszlidEZHcgaS5W35IJOkDzzUJaqHgAjml6mFYMgEzICdBMy8N6 44FUhkTb0GGcxW2GJ4PWvboVD0rGuEtemQQm14Zdy8JoU9mIpTlkhmj/6PpwbAveUNTd 6LgiCU1MMoFa/faNRCVBp90jwLQ+TAqV+2Z7yL1scADRprhGwUDJsNQTp+EMadnXUlou /icQ== X-Gm-Message-State: ABy/qLaN+2OZpKDuj0EKN8bQ+uP8HUoVrtnX2eERhGvCbh7SUypzO6iu NZUjIkz57SxVMBqYgYGcWRKXaHSYt4U2eqsim8AxOfpJaNRO0K2Td6dEeExF8la3s36yzExbkHq meO+dKy32T9JullV8vwr6dCuM X-Received: by 2002:a17:906:20d5:b0:982:b920:daad with SMTP id c21-20020a17090620d500b00982b920daadmr9023035ejc.71.1690190841289; Mon, 24 Jul 2023 02:27:21 -0700 (PDT) X-Received: by 2002:a17:906:20d5:b0:982:b920:daad with SMTP id c21-20020a17090620d500b00982b920daadmr9023019ejc.71.1690190840938; Mon, 24 Jul 2023 02:27:20 -0700 (PDT) Received: from imammedo.users.ipa.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id r7-20020a170906c28700b0099b42c90830sm6406269ejz.36.2023.07.24.02.27.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jul 2023 02:27:20 -0700 (PDT) Date: Mon, 24 Jul 2023 11:27:19 +0200 From: Igor Mammedov To: Bjorn Helgaas Cc: Woody Suwalski , bhelgaas@google.com, LKML , linux-pci@vger.kernel.org, regressions@lists.linux.dev Subject: Re: Kernel 6.5-rc2: system crash on suspend bisected Message-ID: <20230724112719.3fd90eb1@imammedo.users.ipa.redhat.com> In-Reply-To: <20230720202110.GA544761@bhelgaas> References: <11fc981c-af49-ce64-6b43-3e282728bd1a@gmail.com> <20230720202110.GA544761@bhelgaas> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Jul 2023 15:21:10 -0500 Bjorn Helgaas wrote: > [+cc regressions list] > > On Wed, Jul 19, 2023 at 11:36:51PM -0400, Woody Suwalski wrote: > > Laptop shows a kernel crash trace after a first suspend to ram, on a second > > attempt to suspend it becomes frozen solid. This is 100% repeatable with a > > 6.5-rc2 kernel, not happening with a 6.4 kernel - see the attached dmesg > > output. > > > > I have bisected the kernel uilds and it points to : > > [40613da52b13fb21c5566f10b287e0ca8c12c4e9] PCI: acpiphp: Reassign resources > > on bridge if necessary > > > > Reversing this patch seems to fix the kernel crash problem on my laptop. > > Thank you very much for all your work debugging, bisecting, and > reporting this! This is incredibly helpful. > > Original report, including complete dmesg logs for both v6.4 and > v6.5-rc2: > https://lore.kernel.org/r/11fc981c-af49-ce64-6b43-3e282728bd1a@gmail.com > > I queued up a revert of 40613da52b13 ("PCI: acpiphp: Reassign > resources on bridge if necessary") (on my for-linus branch for v6.5). > > It looks like a NULL pointer dereference; hopefully the fix is obvious > and I can drop the revert and replace it with the fix. it happens here: 2145 void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge) 2146 { 2147 struct pci_bus *parent = bridge->subordinate; Let's see if it reproducable on Lenovo laptop and what reading involved code yields. If I can't figure it out anyways, I'll come up with a patch to trace issue. > > Bjorn >