Article View: linux.kernel.netdev
Article #19224Re: Re: Re: [PATCH net] net: phy: micrel: Fix potential shared PHC use-after-free
From: Andrew Lunn
Date: Thu, 19 Nov 2026 15:23
Date: Thu, 19 Nov 2026 15:23
9 lines
8821 bytes
8821 bytes
> On LAN8814, if the registering PHY unbinds first, the other ports would
> lose access to the PHC. Is that the behaviour you'd expect?
No, as i keep saying, i expect remove to be the opposite of probe. The
first PHY probed sets up the PHC. What is the opposite of that? The
last PHY removed releases the PHC.
Andrew
Technical Details
Message-ID:
<ed84f6b1-4bed-4328-9278-02bbde45ca23@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367114-linux-kernel-netdev=dewy.ruReferences:
<20261107-0d0c29e10a-net-micrel-lan8814-1@mail.sdu.edu.cn> <71089325-dfab-45f7-9ebd-1feb65013863@lunn.ch> <AHAASAAGLPGJfVjn9skPJKoS.3.1794229559658.Hmail.202321181@mail.sdu.edu.cn> <198e6702-0663-4183-9aaf-0fa4082dbf79@lunn.ch> <ANsAuAAOLLS4OaDq0elM1KrN.3.1795091965243.Hmail.202321181@mail.sdu.edu.cn>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367114-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: Re: Re: [PATCH net] net: phy: micrel: Fix potential shared PHC use-after-free Date: Thu, 19 Nov 2026 16:23:10 +0100 Organization: Usenet Network Message-ID: <ed84f6b1-4bed-4328-9278-02bbde45ca23@lunn.ch> References: <20261107-0d0c29e10a-net-micrel-lan8814-1@mail.sdu.edu.cn> <71089325-dfab-45f7-9ebd-1feb65013863@lunn.ch> <AHAASAAGLPGJfVjn9skPJKoS.3.1794229559658.Hmail.202321181@mail.sdu.edu.cn> <198e6702-0663-4183-9aaf-0fa4082dbf79@lunn.ch> <ANsAuAAOLLS4OaDq0elM1KrN.3.1795091965243.Hmail.202321181@mail.sdu.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2910510"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:u61brU+Acfo85TlPp+8VJclgjOY= sha256:PsPWUOQeNBLb3gYbwTm5hptaO/2vWQWXaxZoN4eiv3Y= sha1:zq1mPQvQzDKMTFtNYAnBKM7aKZk= sha256:lNl7js1U1MladB+99DK6Ll1oZtYbql2JgRTZ0mKf+aY= Content-Disposition: inline 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 586F21156BF; Thu, 19 Nov 2026 18:23:52 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch 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 TUsgKwkrcFFV; Thu, 19 Nov 2026 18:23:49 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-367114-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id F2D7D115699; Thu, 19 Nov 2026 18:23:40 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id D02D6E85DF; Thu, 19 Nov 2026 15:23:33 +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=1795101812; b=xx3s+pdMVJlIomGU3thvtGcvowYD1iMSJyPsB1zLXAxfOKFwyRbpqorvCtI6XihVO5R1 IyPeeT1F9ro1eHQ8w3wNvFg7dVH+7uVMVd8j1X/uW/dQuBRHQ9iRkR4Eqdo46vwyT0Nqx Y+3mVSEegqG2QWzrVNHUk2Bi6EZgLESJBkWzsZcQtzOZ4w2oGSDj9MInaykeYGBKgfmrx XRO9VHpvdvFTEohzokjJUx2tQx4J9jW9xz+Z2wuP9J64IJZzizACp1W6zN4AMt8BW+LpN JhppcJ3ppKo8UV852rtxUftytZLDR/pwJ6/s6zsMRB8gUlVtzTfyz9rrs6/QGH/z7TQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795101812; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=YIzSyzaItZhIffQi2QtIvlrKu5BS3YVep8+7TkvwtmM=; b=WmGfLYWWb0B6N9SK0RGt3L1zU3MCZacnccEWym695PXVSFkkLDqIPKvVllyeOaRgs84N GkM+ED5RD92y70UcqA0RpMCyp53EGUppRVBSa6sjmSsFul4Q28cQ5o1QNZE0qkGhTWkpU vR2w3HIMeab8WqLZKzrlpHa7/o3eipn+5RUbdX6hwW7Vpkyq2wfUg46Iye4+mjfKkLOuF Bhtm0dSdT5u4GTL4jtVwRVo0wz1DYUd7ml+VIMJtDxat37iwt7N1Pq5AHOWfH2Dsk/yOQ US+tuBjuzXEcC1FfR7426ihNY5Ru0H3chAqLsNdyrqSAtMYY4Z4T1y0b/sMUzjauTwA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=CPf7m+Xx; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; 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 6F258606A331; Thu, 19 Nov 2026 15:23:32 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=CPf7m+Xx X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795101806; b=yAq2JdfMC3qZzsaVfXn27ZBrjOm6R/W9anMmn+spu/lqRPSOzQJt2s2H/5DAtRTg6nZd H/uSsMO3fEEncRgUoyYEViQa6e/fMAKWOZsdjaYaBQ4AvBT0k2tgMwqpfJAiiZmlgirGN TGIcYFEotDCUXZZLBswXq7YxjcAywDvKSP0sODic/Cl5RT7SC8JiZcl7hExyZ2xbL7B+x 8VdvRF9lh7hBX4w+4lOdEDdjZSN8oVhSv6RnBnT0W84PTqYIVGzwMwJe9abADUK/xUsxa /W4Mn900Ba4NIULAhOvBgMbi/2HmUKEV6X0c4D9/CTBNZS3D/vkEXxN3jAbB8tmC6Cg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795101806; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=YIzSyzaItZhIffQi2QtIvlrKu5BS3YVep8+7TkvwtmM=; b=anw26u1FbLp/4wBpkSWfczDPjUPeMVX7FTgkT3LMiQvK1UjS/j18eMKLsynnqgQyQb9b GrYxDotySPjjf2395upwOBanA7GRSbfcV6TA5+EUu08cB6qL40ULREfgVkMsp866ZonJB mzat1NJp3/VhlyPos9IG4qE3/KdkI9UcM1tyN2IpARbdGccJKYzccxeoPoNZyKDisEjh8 HUnuhBgARryyaf6PXhWiWlG3Dw68xDL2TeNswh9Abe9T0lJGIZUY85heWBqXGxB5QjbUP TwZOtTrx8dSMQGb2vuSwS3SONQjv/cot4oBPFt+fx4DQAp6VteldMutnZKnmVGlVuDw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=CPf7m+Xx; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4857E606A320; Thu, 19 Nov 2026 15:23:26 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4857E606A320 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=YIzSyzaItZhIffQi2QtIvlrKu5BS3YVep8+7TkvwtmM=; b=CPf7m+XxC2aOPWBIbZ1FZwojES KHOEmvXm7b4dxoNstIe6Pejopqwj5qDRYIxozdI041E02LMoUyQLqBRZF75tfjtg+xl0f4alFDQ5I CoWGLaGUHVw3f+hGZPhiEk4q9mVZoATtzVehwoMZHYBHkDLIl3nbRFynVXj4PDrYHGaQ=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xU3yg-0004Dh-Qt; Thu, 19 Nov 2026 16:23:10 +0100 X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.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 X-In-Reply-To: <ANsAuAAOLLS4OaDq0elM1KrN.3.1795091965243.Hmail.202321181@mail.sdu.edu.cn>