Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1181101rwi; Wed, 19 Oct 2022 07:36:14 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6I1EHseAz5DEaI/1H607dihZFhyOCEMqhxbP4wCqazi/cm9T3U1XN0A6xfekmX0WsAeQlb X-Received: by 2002:a17:906:58c7:b0:722:f4bf:cb75 with SMTP id e7-20020a17090658c700b00722f4bfcb75mr7014322ejs.450.1666190173504; Wed, 19 Oct 2022 07:36:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666190173; cv=none; d=google.com; s=arc-20160816; b=EBVkMAnt8Zl6nuUqs5g7ZDKCZ9I7XqfTDqkX5SeS2VGCjdhfOmgJGDDvmbPxOLLzpI dcB4l1wCIM2RXaZ/0pY1qZibKHokpOm7LLm1tec0R4wcX/9VvZrMq0vF3zuFjewQyttT Rxvl3x8EWQrJsT1bGXiVOZR3/uczLMXkBK5ZMYqDed3O/IS7gPw8g+RgNd/sTiNK01D+ xaBJEQBH3s4RZubGdsoXfG8O3nIOvFsjNF13vM9fpWwH8yf5jU/ouFC3s+8ZjQZXWGm5 IxxMhhuo12ev1dLG+FTJdbqRiSItm6JKI51ZtmhX0W5Xidykysx86I+gQ5kq3qWZMmOR i7tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=NpY4QBgGrW77iIQAbqeyP+c3B88zpmljyvt9EoNkhF4=; b=ALy4JKWVo3l0vISviKosCSNvnBrEUYt/iWwDhGnVwwrzqwqj+QmyN2X1ulChITyUxO l3/lG77uUplJYpciOXgyx88hiY6bINv3nQZ86/0/Xxag5iHppPv+rtGdpWQdQ0+c9iCj J0QMr/aNKShLNlKu7fHFz2OboBXSsKpRnIIjFV/5BfvIObEtCCjO//BO01SNGbR2rfCp mOn4PieNe5kSdmQPL5C9+SypiDBk8WgLUwaMNwbcvnyvtHhSnP9gg3D53D62QNdc7H0Q 9lnndbJm9I155u3JzIJ3oZYOjd5YG10BFwDPWJVrx9jbwvk2JKkzcz9sZ9BLhZSmP2jK kwlg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a1709060e0a00b007317ad1f9a4si11762775eji.310.2022.10.19.07.35.47; Wed, 19 Oct 2022 07:36:13 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232138AbiJSNQW convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Oct 2022 09:16:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbiJSNPv (ORCPT ); Wed, 19 Oct 2022 09:15:51 -0400 Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 227351DC825; Wed, 19 Oct 2022 06:01:31 -0700 (PDT) Received: by mail-qt1-x830.google.com with SMTP id z8so11563187qtv.5; Wed, 19 Oct 2022 06:01:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3neje0k7T3cx7D7C9HLG6iO3ovR2451tT9bBWNpd1HI=; b=U4j1tiVNLgBom3Fbg9Ja6CyfAQ5ADhndxt/jZWqsvacNYnrp6dOU5t2RthWZryJtwq RTSuxnWLtFWPzTbWKoZvDA60lJT8nfxbTuXhjgYNRc02MZ4FD01NjA/q8c6br7Zgq7Ew ys1qJhAOStddz7ablFkr3vAwTLPOI8n7Tj/4JwDv6XqTfvXUuhgwNufPkE2UafkCGFr6 Eq/THjOHSWHtkPAsGiR1ATuR/NA+5dJ6v/gRp5tCxL4pfBBDU98+PQo9oMJGPDOF+8ET tla4SYItiwWyv0aGt6upZT1tlOMrLxDo0MtM0ckzC2Y7TIXDt/q3PovNs+eNKnIjXKg9 SHwQ== X-Gm-Message-State: ACrzQf0ynKggrsI/aw5Qj8Mg5GfemhvuCyCQ5j2+46MTe24ko3S1+uhb wtKabWxdgwuyAOCt6xx+bx0YqYzleCjJKeFYZ+U= X-Received: by 2002:a05:622a:620a:b0:35c:bf9e:8748 with SMTP id hj10-20020a05622a620a00b0035cbf9e8748mr6319785qtb.494.1666184414930; Wed, 19 Oct 2022 06:00:14 -0700 (PDT) MIME-Version: 1.0 References: <12097002.O9o76ZdvQC@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 19 Oct 2022 15:00:01 +0200 Message-ID: Subject: Re: [PATCH] ACPI: PCI: Fix device reference counting in acpi_get_pci_dev() To: =?UTF-8?B?VmlsbGUgU3lyasOkbMOk?= Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux PCI , Linux ACPI , LKML , Greg Kroah-Hartman , Bjorn Helgaas , dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wed, Oct 19, 2022 at 2:22 PM Ville Syrjälä wrote: > > On Wed, Oct 19, 2022 at 01:35:26PM +0200, Rafael J. Wysocki wrote: > > On Wed, Oct 19, 2022 at 11:02 AM Ville Syrjälä > > wrote: > > > > > > On Tue, Oct 18, 2022 at 07:34:03PM +0200, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > > > > > Commit 63f534b8bad9 ("ACPI: PCI: Rework acpi_get_pci_dev()") failed > > > > to reference count the device returned by acpi_get_pci_dev() as > > > > expected by its callers which in some cases may cause device objects > > > > to be dropped prematurely. > > > > > > > > Add the missing get_device() to acpi_get_pci_dev(). > > > > > > > > Fixes: 63f534b8bad9 ("ACPI: PCI: Rework acpi_get_pci_dev()") > > > > > > FYI this (and the rtc-cmos regression discussed in > > > https://lore.kernel.org/linux-acpi/5887691.lOV4Wx5bFT@kreacher/) > > > took down the entire Intel gfx CI. > > > > Sorry for the disturbance. > > > > > I've applied both fixes into our fixup branch and things are looking much > > > healthier now. > > > > Thanks for letting me know. > > > > I've just added the $subject patch to my linux-next branch as an > > urgent fix and the other one has been applied to the RTC tree. > > > > > This one caused i915 selftests to eat a lot of POISON_FREE > > > in the CI. While bisecting it locally I didn't have > > > poisoning enabled so I got refcount_t undeflows instead. > > > > Unfortunately, making no mistakes is generally hard to offer. > > > > If catching things like this early is better, what about pulling my > > bleeding-edge branch, where all of my changes are staged before going > > into linux-next, into the CI? > > Pretty sure we don't have the resources to become the CI for > everyone. So testing random trees is not really possible. And > the alternative of pulling random trees into drm-tip is probably > a not a popular idea either. We used to pull in the sound tree > since it's pretty closely tied to graphics, but I think we > stopped even that because it eneded up pulling the whole of > -rc1 in at random points in time when we were't expecting it. I see. > Ideally each subsystem would have its own CI, or there should > be some kernel wide thing. But I suppose the progress towards > something like that is glacial. Well, I definitely cannot afford a dedicated CI just for my tree and I haven't got any useful information from KernlCI yet (even though hey pull and test my linux-next branch on a regular basis). KernelCI seems to be focusing on different set of hardware, so to speak. > That said, we do test linux-next to some degree. And looks like > at least one of these could have been caught a bit earlier through > that. Unfortunately no one is really keeping an eye on that so > things tend to slip through. Probably need to figure out something > to make better use of that. I think it could also be possible to contribute to KernelCI to get more useful x86 coverage from it.