Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1010323rwi; Wed, 19 Oct 2022 05:48:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SIWn4bFIuamvV4byUxM92eVgItcUVCyLGGB/LGMsSYOQIy6MdENpaQ81EWtgmN8ZglPyI X-Received: by 2002:a17:902:ed93:b0:185:4421:24b with SMTP id e19-20020a170902ed9300b001854421024bmr8237467plj.158.1666183688296; Wed, 19 Oct 2022 05:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666183688; cv=none; d=google.com; s=arc-20160816; b=y/h54r4pGzIjbeoFp+Pkk+3jAc6IUvKd+RAN0G3Bxk1jPc5IZ8Zg4hAw5iuPQS59DC kz0ene8yaZU7ZF0/X3rLmBOQeo9xi2ZElYspFIIUyhmxK9pQwVyd9nOtXrSg7IAKE+yq x97sqFnhTYkTenjYiZcE9/+r72IxfXeLyDr4jMa00AUHsn06CkZAX+qQtW/WL92z0OJv Ckevl5B0JBsO56j7V6FmvQ1/0Xx6qOmlLbSrf5rCo22TWU1/G3TmI6qa29GoYvn/ToCr tYxpjF2McunB3ivTL0kOgNYRw9KzTWtpKFycqMOeXJn9hUQtAfJDsHLiwu902V3Y/rSL Rt8g== 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=JqXmiOVJhQ4zIijKgEF+lVbcwMaQQmoomlXLBa7fWQQ=; b=Pn5JKAxEAOY0tpj5JZ+Vkwvl0/rl3pd/kIE0KnFb2yjV74DNmeVA5YeKBRzTBIHiQj MJQZC1L0hRuZRBGyDwB0gBFEnh5MjhRcDjTVb3tPQq53mtqPJ0l3lwA9PI4wR9gxdH0/ NGuO/2U4FSnA5zuV/hXD4HEvZ6Pj/QA9sscK7fYl8wa91wCboUc4ePYE+v1nX1IWFXK7 N3PHYLImbw2jS5rRLnJPTqLQdDHozfv7CQJeCTkaV36Kgm+Jwul4brem7C060CgIM6kg Eji/OpqOrixs80DOGkfAqxk4sF1WexvIWoMSGS9UhtTRRxOggjicYhGiWGXjwNr3Chf+ qZqg== 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 ob15-20020a17090b390f00b0020c52b9512csi20546035pjb.5.2022.10.19.05.47.55; Wed, 19 Oct 2022 05:48:08 -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 S232237AbiJSMJ7 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 19 Oct 2022 08:09:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233044AbiJSMJV (ORCPT ); Wed, 19 Oct 2022 08:09:21 -0400 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ADA7E22ED; Wed, 19 Oct 2022 04:45:06 -0700 (PDT) Received: by mail-io1-f43.google.com with SMTP id 137so14164173iou.9; Wed, 19 Oct 2022 04:45:06 -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=YkeBWCcFMJNFjbaBfw9zUjyE7Y7cuaLWG97IUP/cIwE=; b=2uYsTnYGOhx+EBdGM4FFhNbO0y+B6rBtBistqOR6vJrLWSWSGn6HfvH9CjZhXDnWAu ETj00CuZL22d63tIeDwBEEeFzE0g0YVj8axeadGjz+AMj8/tEvzbIdNvBiNBCo2lD+S5 jeTyWJP8Pg9iUaEVFgmiJoXV4XZBKZxj54pVkJrmNgRqadB7YN2bwDnZ8Y0yYQIZWvru UxI+xEPH7VbH5jpZnkJb3HwrO+jlbbbNukvZA6IeovWXd5ZkiEqmP++DQf3rXY1CkqFE LSeiJeO5mmfcYYmyErvRlHRiMo+rzgXZdynXXmHzFOmq6/xjzL8VlZsCEgO3r71bzEjf 6y+w== X-Gm-Message-State: ACrzQf1Nd7rpTXGFmbCby3Hnl5jOCbBw0K3zy0hq79K55IgkrRxDIjGF 6RYTwGUWuLgSST7HNv4riW2z1/aH5DVnSt/ATrWXvnQv X-Received: by 2002:a05:620a:158f:b0:6ee:93d5:e249 with SMTP id d15-20020a05620a158f00b006ee93d5e249mr5044929qkk.505.1666179338715; Wed, 19 Oct 2022 04:35:38 -0700 (PDT) MIME-Version: 1.0 References: <12097002.O9o76ZdvQC@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 19 Oct 2022 13:35:26 +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" , Linux PCI , Linux ACPI , LKML , Greg Kroah-Hartman , Bjorn Helgaas 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,RCVD_IN_MSPIKE_H2,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 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? > https://intel-gfx-ci.01.org/tree/drm-tip/index.html has a lot > of colorful boxes to click if you're interested in any of the > logs. The fixes are included in the CI_DRM_12259 build. Earlier > builds were broken. Thanks!