From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EC124C27C4F for ; Wed, 26 Jun 2024 10:02:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Dn3nBMGKGJrDwWGU8hyI8eTzDONmgOWvu3/mio4YDVg=; b=uY+t2LzGWCK2o5euP873UBFw8h gFb9V6784MDk9C8IwmlC9xyc5AvHVpRrtpJOCDmBSKP6V1wg8MH6rAn4y6sEAHV/vDrs3k0lABKZ0 +FhA4t85ou/ZrIYxl8xnBaD5/x0m1E+CsldT73H3QJpP4OzRuUWTyuzeKr2jGWeG9mhmDOy9BvTjq xczezLVsT+BXGeg0dSBmwG7Diwmit5YogKLZzLl/enBOHFLvwXxTLem2u8g0qj87HEK5BG7cKcNc6 naZT2fHTYMMn7CmeU1AK9JT84zwtiCJVL9mJVAoOeB4rJjC3/yr2JJNjv8yOMHqxqIfT2loKf8Bbr MGarrPeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMPTR-00000006E01-48iu; Wed, 26 Jun 2024 10:01:58 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMPTK-00000006DyZ-1kFA for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 10:01:52 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 821AC1BF20F; Wed, 26 Jun 2024 10:01:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1719396103; 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=Dn3nBMGKGJrDwWGU8hyI8eTzDONmgOWvu3/mio4YDVg=; b=TSWd9oPSd5UiaKgEuf2Ms0FVuWUN02Z4wOBC8q9IVC5vKUNYyGhtkhLYAlCdhI70QWcHr1 2bgDS37b5hu5OiDLqoACB4e4W6cZrrail97ASJcDZBGyF6cKtNmwP30ZH77noa8InkAdfE pAaE+a2MYlSNImT6o82/USSYaCL6oPLesw9t4aupuvDaJCB/iPcCwzSFYF4A4D4uOm45zA 8NgzLU6ZeGj6CnKa5Ip+vHplUUpfJPZszPfKA4kcbAjiQzdXucn5Dw0F2zqak0J3FRWeD/ 7N+IStvXbKBxzWyAFnxq/VZoZQhLwy2Yougff0BaPv0L2tTE6SdPqPyLc80qoA== Date: Wed, 26 Jun 2024 12:01:37 +0200 From: Maxime Chevallier To: Marc Kleine-Budde Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?UTF-8?B?S8O2cnk=?= Maincent , Jesse Brandeburg , Marek =?UTF-8?B?QmVow7pu?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese , Simon Horman , mwojtas@chromium.org, Nathan Chancellor , Antoine Tenart , kernel@pengutronix.de Subject: Re: [PATCH net-next v13 00/13] Introduce PHY listing and link_topology tracking Message-ID: <20240626120137.10c2ad61@fedora-5.home> In-Reply-To: <20240626-worm-of-remarkable-leadership-24f339-mkl@pengutronix.de> References: <20240607071836.911403-1-maxime.chevallier@bootlin.com> <20240626-worm-of-remarkable-leadership-24f339-mkl@pengutronix.de> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_030151_235945_1D791B94 X-CRM114-Status: GOOD ( 11.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello Marc, Thanks for giving this a test. On Wed, 26 Jun 2024 11:47:52 +0200 Marc Kleine-Budde wrote: > > # ethtool --show-phys * > > This creates the following warning for me: > > [ 51.877429] ------------[ cut here ]------------ > [ 51.882094] WARNING: CPU: 0 PID: 333 at lib/refcount.c:31 ref_tracker_free+0x1ac/0x254 > [ 51.890222] refcount_t: decrement hit 0; leaking memory. > [ 51.895611] Modules linked in: mcp251xfd flexcan imx_sdma can_dev spi_imx > [ 51.902493] CPU: 0 PID: 333 Comm: ethtool Not tainted 6.10.0-rc4+ #327 > [ 51.909056] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree) > [ 51.915603] Call trace: > [ 51.915623] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > [ 51.925979] [] (show_stack) from [] (dump_stack_lvl+0x50/0x64) > [ 51.933605] [] (dump_stack_lvl) from [] (__warn+0x88/0xc0) > [ 51.940877] [] (__warn) from [] (warn_slowpath_fmt+0x1b4/0x1c4) > [ 51.948590] [] (warn_slowpath_fmt) from [] (ref_tracker_free+0x1ac/0x254) > [ 51.957176] [] (ref_tracker_free) from [] (ethnl_phy_done+0x24/0x54) > [ 51.965318] [] (ethnl_phy_done) from [] (genl_done+0x3c/0x88) > [ 51.972845] [] (genl_done) from [] (netlink_dump+0x2d8/0x3d0) > [ 51.980387] [] (netlink_dump) from [] (__netlink_dump_start+0x1f4/0x2c4) > [ 51.988889] [] (__netlink_dump_start) from [] (genl_family_rcv_msg+0x140/0x328) > [ 51.997989] [] (genl_family_rcv_msg) from [] (genl_rcv_msg+0x44/0x88) > [ 52.006204] [] (genl_rcv_msg) from [] (netlink_rcv_skb+0xb8/0x118) > [ 52.014157] [] (netlink_rcv_skb) from [] (genl_rcv+0x20/0x34) > [ 52.021673] [] (genl_rcv) from [] (netlink_unicast+0x23c/0x3d0) > [ 52.029367] [] (netlink_unicast) from [] (netlink_sendmsg+0x18c/0x3d4) > [ 52.037667] [] (netlink_sendmsg) from [] (__sys_sendto+0xd4/0x128) > [ 52.045626] [] (__sys_sendto) from [] (ret_fast_syscall+0x0/0x54) > [ 52.053496] Exception stack(0xc3967fa8 to 0xc3967ff0) > [ 52.058576] 7fa0: b6f1130c 0000000c 00000003 015dd238 00000018 00000000 > [ 52.066780] 7fc0: b6f1130c 0000000c b6fb6700 00000122 00571000 00000001 0052a2f8 015dd190 > [ 52.074978] 7fe0: 00000122 bec7cf38 b6ea847d b6e1fe86 > [ 52.080184] ---[ end trace 0000000000000000 ]--- Hmm I've never seen this one before, but I could be missing some debug options. Looks like my ethnl_parse_header_dev_put() doesn't belong in the ethnl_phy_done() callback. I'll see if I can reproduce this error on some setups, and address that in the next iteration. > While a "ethtool --show-phys lan0" works w/o problems. Thanks a lot for the test, Maxime