Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4053795rdb; Wed, 30 Aug 2023 14:09:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGhSIxMAOF2q2yX8C16RT06r9nm8kBWcOxuKQ7cwmdWvLlONajWaaCuISg0Ft9vtJyO4lGO X-Received: by 2002:a17:906:5390:b0:9a1:b967:aca9 with SMTP id g16-20020a170906539000b009a1b967aca9mr2484278ejo.63.1693429795109; Wed, 30 Aug 2023 14:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693429795; cv=none; d=google.com; s=arc-20160816; b=LGHW1ok9fLNWi/VYyRw4ovayJfPNWoqS6j6OSJ7z5LbHX0P5wzvpZ0MUXi1xpV7/WN sjxD9kpm1IYGlBz6OHyWd5MrPJdA7c6lbOn9bhGAmr+5rJvj4WXvCpxUxmMw9x9YXWx7 utzAcU7WZEW4zioZ5D/NQzsLuYwUq4tKS8WUNws82Z6plxQ7DI3xz/hpKnBRAGhOcMgn P76KYr9HAGE1zYyFcS383MezG4dkbj5jRHXtf8guTsrqkG47BHA8AcGqPI7el4sbHfY9 gqhkj/Oq7xCBEu8uD0Us7GH/URvCE9kvX6CCD0EFVtKCkFOLJtJWEqx3qHRYTdV856oj Qi5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:reply-to :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id; bh=XWhbYcSph/cNLmngkkQ+6Un608ZxBtGa9PfNwOojMF8=; fh=iy1JatXYpB9xMW8EvXH9lVyOsOZaBU7v4cXn7tq64Vk=; b=fk4YahgmB0vgjo+jeP1omWaX0QghIWJRppRe9yl2o9oBaOEiWxMoWC4mtr8w49b7+b xc3c40csTu8ijh9+IO/5L6yMmCekzWYFwtNht6fd9l4jg9PQAGovO5tzUvwFLU2w0V1p n7dPCITtM9ZPnrXWYDg1atnZFeatcA1EBUjmClTMMmaGvR1cyyj5leXkGkoecAk+736P dVhAypbM17i9wUh/Y6QVFN+H4EdOsHqPjQqAzdNEB7NOej7taOedWLgvXYe4WmXtqMHu rJ2g3b09KjP4/PS9UqP/LMLie7Al/7nyHC8tH/K2c/FAVx0x/bb6Lot3FlnM1tEwfdxU a3qA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm10-20020a170906c04a00b0099bd1d002e4si5963460ejb.846.2023.08.30.14.09.24; Wed, 30 Aug 2023 14:09:55 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233429AbjH3TGe (ORCPT + 99 others); Wed, 30 Aug 2023 15:06:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242889AbjH3Jzz (ORCPT ); Wed, 30 Aug 2023 05:55:55 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B47451B0; Wed, 30 Aug 2023 02:55:52 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1qbHvQ-0002P7-2Q; Wed, 30 Aug 2023 11:55:48 +0200 Message-ID: <8a737241-f216-169a-8bd3-d0832439b99e@leemhuis.info> Date: Wed, 30 Aug 2023 11:55:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [regression v6.5-rc1] PCI: comm "swapper/0" leaking memory Content-Language: en-US, de-DE To: Kalle Valo , Ross Lagerwall , Bjorn Helgaas Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, regressions@lists.linux.dev References: <878r9sga1t.fsf@kernel.org> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <878r9sga1t.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1693389352;552f9eec; X-HE-SMSGID: 1qbHvQ-0002P7-2Q X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Hi, Thorsten here, the Linux kernel's regression tracker. Partially top-posting for once, to make this easily accessible to everyone. Thx for the report. To quote one aspect: > v6.4 has no leaks. I pretty sure you mean stock 6.4 here. But FWIW, the culprit was backported to 6.4.y and 6.1.y, so they latest versions might be affected as well. For the rest of this mail: [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have encountered already in similar form. See link in footer if these mails annoy you.] On 30.08.23 11:21, Kalle Valo wrote: > > I noticed that starting from v6.5-rc1 my ath11k tests reported several > memory leaks from swapper/0: > > unreferenced object 0xffff88810a02b7a8 (size 96): > comm "swapper/0", pid 1, jiffies 4294671838 (age 98.120s) > hex dump (first 32 bytes): > 80 b8 02 0a 81 88 ff ff b8 72 07 00 00 c9 ff ff .........r...... > c8 b7 02 0a 81 88 ff ff 00 00 00 00 00 00 00 00 ................ > backtrace: > unreferenced object 0xffff88810a02b880 (size 96): > comm "swapper/0", pid 1, jiffies 4294671838 (age 98.120s) > hex dump (first 32 bytes): > 58 b9 02 0a 81 88 ff ff a8 b7 02 0a 81 88 ff ff X............... > a0 b8 02 0a 81 88 ff ff 00 00 00 00 00 00 00 00 ................ > backtrace: > unreferenced object 0xffff88810a02b958 (size 96): > comm "swapper/0", pid 1, jiffies 4294671838 (age 98.120s) > hex dump (first 32 bytes): > 30 ba 02 0a 81 88 ff ff 80 b8 02 0a 81 88 ff ff 0............... > 78 b9 02 0a 81 88 ff ff 00 00 00 00 00 00 00 00 x............... > backtrace: > unreferenced object 0xffff88810a02ba30 (size 96): > comm "swapper/0", pid 1, jiffies 4294671838 (age 98.120s) > hex dump (first 32 bytes): > 08 bb 02 0a 81 88 ff ff 58 b9 02 0a 81 88 ff ff ........X....... > 50 ba 02 0a 81 88 ff ff 00 00 00 00 00 00 00 00 P............... > backtrace: > unreferenced object 0xffff88810a02bb08 (size 96): > comm "swapper/0", pid 1, jiffies 4294671838 (age 98.120s) > hex dump (first 32 bytes): > e0 bb 02 0a 81 88 ff ff 30 ba 02 0a 81 88 ff ff ........0....... > 28 bb 02 0a 81 88 ff ff 00 00 00 00 00 00 00 00 (............... > backtrace: > > I can easily reproduce this by doing a simple insmod and rmmod of ath11k > and it's dependencies (mac80211, MHI etc). I can reliability reproduce > the leaks but I only see them once after a boot, I need to reboot the > host to see the leaks again. v6.4 has no leaks. > > I did a bisect and found the commit below. I verified reverting the > commit makes the leaks go away. > > commit e54223275ba1bc6f704a6bab015fcd2ae4f72572 > Author: Ross Lagerwall > AuthorDate: Thu May 25 16:32:48 2023 +0100 > Commit: Bjorn Helgaas > CommitDate: Fri Jun 9 15:06:16 2023 -0500 > > PCI: Release resource invalidated by coalescing To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced e54223275ba1bc6f704a6bab015fcd2ae4f72572 #regzbot title PCI: comm "swapper/0" leaking memory #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail. Developers: When fixing the issue, remember to add 'Link:' tags pointing to the report (the parent of this mail). See page linked in footer for details. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.