Article View: linux.kernel.netdev
Article #12065Re: [PATCH net-next] net: ethernet: adi: adin1110: Fix phy_device leak in probe_netdevs()
From: Xia Yan
Date: Fri, 06 Nov 2026 07:53
Date: Fri, 06 Nov 2026 07:53
22 lines
9785 bytes
9785 bytes
On 11/6/26 15:27, netdev-bot+sinfo wrote: > - Whether the issue was actually triggered, or is only theoretical > (e.g. found by code inspection). If it was triggered please include > the symptoms, like the stack trace or error messages. > > - What hardware the change was tested on. For driver fixes please > mention the device (and if relevant firmware version) used for > testing, or say that the change was not tested on real hardware. Hi, The leak was not hit at runtime. I found it by code inspection while reviewing the MDIO attach paths, as the commit message notes. There is no stack trace: the effect would be one struct phy_device allocated per port on every probe and never released. I don't have ADIN1100 or ADIN2111 hardware, so the change is compile-tested only, with CONFIG_ADIN1110 enabled on x86_64. Thanks, Xia Yan
Technical Details
Message-ID:
<1793951584000.347526.5074428569945602767@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357825-linux-kernel-netdev=dewy.ruReferences:
<1793949783000.333861.5224091507677300156@cmss.chinamobile.com> <179395006518.488859.7603845397469844366@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357825-linux-kernel-netdev=dewy.ru From: yanxia@cmss.chinamobile.com (Xia Yan) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next] net: ethernet: adi: adin1110: Fix phy_device leak in probe_netdevs() Date: Fri, 06 Nov 2026 15:53:04 +0800 Organization: Usenet Network Message-ID: <1793951584000.347526.5074428569945602767@cmss.chinamobile.com> References: <1793949783000.333861.5224091507677300156@cmss.chinamobile.com> <179395006518.488859.7603845397469844366@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="3823004"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:c3KK3FMwF3D/1Qj6KLlAxotZfhk= sha256:2XCO41x+t7BKxyF22X4qEMsNBFMMrgMcm4WzhtqjX/k= sha1:rBi4WIkVi00Cxf9mlE2z/fKZgHY= sha256:wTNZeCNOmrSkx0+dSmcf144kZr2MhrqElFJyVOsMcHI= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 80B1F1131A8; Fri, 6 Nov 2026 10:54:16 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.751 X-Spam-Status: No, score=-2.751 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cmss.chinamobile.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rZL3pM0nhxdA; Fri, 6 Nov 2026 10:54:11 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-357825-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 449021131A6; Fri, 6 Nov 2026 10:54:03 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id EA71E2BD21; Fri, 6 Nov 2026 07:53:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793951602; b=HoL3ARzEjcJF5JvczTADVF/vXJjjofuoG9KaeJiJY7K8Zj0ch5cttWyHW/OLytximnLc 9uutZ0SLCt0ou2l8hZPvZO7u+miSAtMwIIDhWuqA+c6KfHcTjWMpX1ZOHnW4X7d9wT7U9 O0A+aHvjNmQCBJRfpU02FboeD9RszD6cm5lEfKIASKS03ivOHEuW8bPSS9K9sSxNGJ70U 21+l9hnbDIJEuzAsLt2RXLhobAQnmToeql+WuEvctpOGcpw7BXrtWrR+H8eD6t7/MgPs0 GPR3RNdRTH4OYxYz0Py5Tg+Jnqpoz6BcfKVzwnO1F6QK9YE7bJmWLxCtrgXOCThGa2A== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793951602; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo: X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG: Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:In-Reply-To: References:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=kur3oCIADPik00ww6Op7p8ctt5qcVWiVMu2HCk2DBAA=; b=WK7zqHsF3qTmXuKELue1BlzNW68EJ6UwpATQFWOdg6XOAR35b7hbyuV9MTXcOC+EEh4r qg5GLAeXMfTr5AiD9zBfU0uq45Z/PfCQvKCvzzSIsujbDoScf+S7RsRW6NO8GMVTG54UH ByiGDK7k4FH+IJNekfDDtwwXaT2Hk8ibGpFN+iNMQJTXY6hGhA2k2CSqm+SIWRlijZvy5 fn8KqMNdMJaC+mwefF1BD5Qi5PC3M7LxRUkO83prOlUDQg5rS7CcEibdlwYIpplS7wp9u aFvAMKfd+O/XaFU8A3Sf2exJSy+Ymq/XX4xiMcPwLsS6QUkl//5ONsgTABN1zypxWVQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=bsNIcf7U; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 712D8606A32E; Fri, 6 Nov 2026 07:53:17 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=bsNIcf7U X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.151 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793951590; b=K1LSHXZjjP6v/BP7A3gDoCpvNjX9qIll6tewJSakjoMfytj4lSCb0IHpDQ6ZXnEq/95V ajpQFYA9tH8R8ayPx+dD8cMZS97juqrkpQ8Xja3KqbIDri9vbmuZoJahB9vzqVXGdfCjO +4tEvO/QJdCI9Fzm6gFZ+YwaxBzmmlLUCn1JGJa6cr++C1nOJ+7/+9W9qh8jqAMbWBXSQ EG6yO6+hJl9ZwWMSaiKZX6eYBA/F4dJbO7Qsp+hjbAButq1NpnWWKs6vlrFVP8j/jydN3 qFBV2N3zfjpBDdhrsB4Ma8Nz8Z1eK68lHhX7ecuOBKutVBvDoDpA0JGVzrZl0ymC0lw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793951590; h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received: X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From: To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=kur3oCIADPik00ww6Op7p8ctt5qcVWiVMu2HCk2DBAA=; b=uTwLIRxFyQ/8SdSRFAvaqLSnRoFN+wP14VldZQ8wzstUis2vfVytEPKvrTnJl+Pb1jlC Fx/EMVlImU0LX0K9KrISR4K6trAvtIgkvbgBG/Be6XcAsqMYTi2fayM+Jax84N4QgSpUf 7DlZHzREq62sIuQDbs05v1/oNxNascPnvtA1FWb1HHr2qAT7FNpvtvpo7vK+DjTSFTCU4 Zq3l+zDgW+YwHQa9EQMob05Lg8kEv2+QNwfnVD9R+kTV8MRYCAmVkQflo3ZeroMYTY5MI lvPz0+MDgK+pzHxGox8EqhLVMYC5Dbe5K6/cuV5EoTk7pNmoCTJoFU4bFOryWyHweHQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=bsNIcf7U; arc=none smtp.remote-ip=111.22.67.151 X-Received: from cmccmta8.chinamobile.com (cmccmta8.chinamobile.com [111.22.67.151]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F888606A326; Fri, 6 Nov 2026 07:53:07 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6F888606A326 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmss.chinamobile.com; s=default; l=0; h=from:subject:message-id:to:cc:mime-version; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=bsNIcf7U6SmZMfz5/dJXiO/7iwMdPzJDDmuQL292m6KtvL2Mh6QYlslXzuYUNgP6MWap97tVkbsSf y9YmTXRc1QEpvNKOJe/vQjclFjsszjUNPIxqi6IK0EeDpw0ksgjU61Xd/1t5SSZSKdlT7fKISaWjS4 8O/bCq+iwoN3WGUQ= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app06-12006 (RichMail) with SMTP id 2ee66aed8761cfd-7b6a5; Fri, 06 Nov 2026 15:53:05 +0800 (CST) X-RM-TRANSID: 2ee66aed8761cfd-7b6a5 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from [198.18.0.104] (unknown[223.108.79.97]) by rmsmtp-syy-appsvr01-12001 (RichMail) with SMTP id 2ee16aed875f96d-17b71; Fri, 06 Nov 2026 15:53:05 +0800 (CST) X-RM-TRANSID: 2ee16aed875f96d-17b71 X-Cc: netdev@vger.kernel.org, Andrew Lunn <andrew+netdev@lunn.ch>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Eric Dumazet <edumazet@kernel.org>, David S. Miller <davem@davemloft.net>, Alexandru Tachici <alexandru.tachici@analog.com>, Ciprian Regus <ciprian.regus@analog.com>, Linkui Xiao <xiaolinkui@kylinos.cn>, Heiner Kallweit <hkallweit1@gmail.com>, linux-kernel@vger.kernel.org, yana06070@163.com X-In-Reply-To: <179395006518.488859.7603845397469844366@kernel.org> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list