Article View: linux.kernel.netdev
Article #8516Re: [PATCH net] net: pcs: xpcs-rk: limit advertised interfaces
From: Coia Prant
Date: Thu, 29 Oct 2026 10:23
Date: Thu, 29 Oct 2026 10:23
52 lines
14454 bytes
14454 bytes
<netdev-bot+sinfo@kernel.org> δΊ2026εΉ΄10ζ29ζ₯ε¨ε 17:56ειοΌ > > Hi! > > This is an automated message. This series looks like a fix, but its > commit messages seem to be missing some information: > > - How the issue was discovered, e.g. hit in production, hit during > development, syzbot report, manual code inspection, LLM or static > analysis tool scan. > > - 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. > > Please do not repost the series just to address the above. Instead, > reply to this email with the missing information, so that reviewers > can take it into account. If the series needs another revision for > other reasons, please include the information in the commit messages > then. > > The evaluation is done by an LLM so it may be wrong, if you think > that is the case please reply and explain. Hi, Thanks for the check. Replying with the missing information and a respin that folds a related core fix into the same patch. How the issue was discovered: this is a known gap previously flagged by Sashiko review. xpcs_find_compat() only walks desc->compat[] and never looks at pcs.supported_interfaces, so the mask the glue sets is written but never consulted by the core. The same review pointed out that the generic xpcs core fills pcs.supported_interfaces from the compat table, which for the Synopsys ID includes 1000BASE-X, 2500BASE-X, USXGMII and the 10G/25G modes. The RK3568 XPCS supports 1000BASE-X, SGMII and QSGMII in hardware, but does not implement the C73 10G or 2500BASE-X modes, and the RK3568 MAC side currently only supports SGMII. The respin fixes both sides in one patch: the glue narrows the mask to SGMII, and the core respects it in xpcs_find_compat(). Whether it was actually triggered: no, this is theoretical. The affected Rockchip platform is not present in any released kernel, and the MAC side forces the phy mode, so phylink start passes the mode explicitly and does not normally pass an interface outside the mask. The patch makes the mask the single source of truth for both the core and the glue. pw-bot: cr
Technical Details
Message-ID:
<CALj3r0hX3Ded4G0KY+f5uhoJzRB4ivW+Sa3R-TeDcq=O6eaGDw@mail.gmail.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-353236-linux-kernel-netdev=dewy.ruReferences:
<20261029094916.3127193-2-coiaprant@gmail.com> <179326779144.3327.11596356628770174944@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-353236-linux-kernel-netdev=dewy.ru
From: coiaprant@gmail.com (Coia Prant)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net: pcs: xpcs-rk: limit advertised interfaces
Date: Thu, 29 Oct 2026 18:23:08 +0800
Organization: Usenet Network
Message-ID: <CALj3r0hX3Ded4G0KY+f5uhoJzRB4ivW+Sa3R-TeDcq=O6eaGDw@mail.gmail.com>
References: <20261029094916.3127193-2-coiaprant@gmail.com> <179326779144.3327.11596356628770174944@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1984168"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oZulwRUCjv1Psp8oD7vsh5w58uE= sha256:bKY6sHTmLOw3GGYnVujwqX9LaaEBzl66nONmbODgtI4=
sha1:UQA5e/am0OJeAcwid27CXTWn7eM= sha256:K+CXPKtRlYq3R34bayl8qPcNxoKxIa9fWMwKGjyUDT4=
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 02725125C61; Thu, 29 Oct 2026 13:28:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
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=pass (2048-bit key)
header.d=gmail.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 yQYADzyQbEha;
Thu, 29 Oct 2026 13:28:29 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353236-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 423EE12580F; Thu, 29 Oct 2026 13:28:21 +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 38ED1291B1; Thu, 29 Oct 2026 10:23:38 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793269411;
b=VRL/8vVnKKCT0DH1As6kb2NvZCeKaDiNwBpb+n3Ksq8RqMqdEZ1sDx6ZF2hGlwWi4rBu
mLmtK2fZBO1b7Dn8IZ2CBs0jS6h3bcVUta6U3r8aRRqQd5NilTn9lJv9axuiTX1EdfrrQ
fyTh7bc0SY9l1vPGAbcQx9157bE4OMyh50a7wGIJgCrxViXYB3xvTnchxA7Ec/T3+NEQg
I0uzS1Cwjll3CcjXv5qUOyOr5+tE8u5Z4Hk1Nh7LocRDm19SZ4I69BERHrEFlUl4RaOuS
gI6QyBYD10WUP1OhoTcja7i7/cNUcbUIZp9JagmUJaaYHtYMVNvx+6FCkANZKWH+8fg==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793269411;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:X-Mailing-List:List-Id:List-Post:List-Help:
List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version:
References:In-Reply-To:From:Date:X-Gm-Features:Message-ID:Subject:To:
Cc:Content-Type:Content-Transfer-Encoding;
bh=BA+kSJSuqF0Tp/mjbmAU8rE7i18xLMiTHg0IlzoVm5Y=;
b=upOE47/DZtjBrN+EB5VhkD1Ay/hFEGabup1gt9nASt47wd3gOD6AlQv/grmbM+idgqwf
iebLsoFe44VDGkRCZOTNV4WTOxTI2d2GYHHkgc+j19s3wGxDLIzwDrPJ4NW0TcuWZHauk
MLekJ9K9Nb36DSJqvod2qeZ55ioc+bMxoP0iYNy3hptWKgSrpzm4LQVs5bKarw89oskWO
8jtk5xHVFzhPcwSup2iyb5k6aFrxFlar+qPy5mnthN0+gpGjCgEdGGxNqpp53yhRsVErF
xZ/MnUrm+QvQo3DgL/x9L4w6i3djWVbMXrKpwMlWvuisWOHp6ngAukE+8e/S0aeHtqw==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="WK6/y+1W";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.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 9E5EE606A331;
Thu, 29 Oct 2026 10:23:31 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=WK6/y+1W
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.228.71
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1793269405;
b=kNeuJoyTdmGamS6Xo35W+XVNE9sEtxZ9ozwjofi3JsKDIyJKWbNCllyt5pd/x9mISYnm
5FEM2JmB46a1FHR2Oxikew9SdJAhkoBgouPmTY7t48s5auEK3DF77GqbaJKMfL8kcTLeS
RNKeXYrTZH/ah7glKZ84rWnsodqJuacsNwuY2GTPpb7d2YtcLuIqxLdk/8GNzf+KdRY0b
ChWMPvgQRCkkDu5inGi3wXKaVc+pwqxjqqcIBJ34r4a3ioC6ha5eCQ6kHJFuH9LX51kuy
U/QA4v4b2QeDWVTb4kKwPzqB1DHBFj509WVehSa+aefwg6eShXlQaspPB2o5UGKbacg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793269405;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:
MIME-Version:References:In-Reply-To:From:Date:X-Gm-Features:
Message-ID:Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=BA+kSJSuqF0Tp/mjbmAU8rE7i18xLMiTHg0IlzoVm5Y=;
b=ks4fcfMd/OMFA1vsjjB5/7Bn6uZQGnMAbPgO6ITqijmQs6eoifpUjdKKVabJKgEyMYyt
yoIbF/GqxkwCgRWNJN0ruacW4SPvDu6qwb7AAcQwVqJ837YGgYgZiI4coxDADcwM9DcB9
MZHBqkU9dq0pyfJzZ0TsCdzgRCV5/TyxmToh7fmbpSwO1heZRdp3J1mNUoJPHO9tzkDv9
RFlVSbnZbPKaYZE8NfoSrNtmWXVPR/eZMpF/JbgaSRFh/h0rkpwGXARQIgNV1pKFn9p2l
FNkvzbqumwu9Um2yqqdKCGlqWOYAwexqrku65zUejaHdconWUXZB3YhoDwiq0LGz1JQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="WK6/y+1W";
arc=pass header.oldest-pass=0 smtp.remote-ip=74.125.228.71
X-Received: from mail-ed2-f7.google.com (mail-ed2-f7.google.com [74.125.228.71])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6147D606A327
for <netdev@vger.kernel.org>; Thu, 29 Oct 2026 10:23:25 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6147D606A327
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ed2-f7.google.com with SMTP id 4fb4d7f45d1cf-6b1a8d1e6d8so887939a12.0
for <netdev@vger.kernel.org>; Thu, 29 Oct 2026 03:23:25 -0700 (PDT)
X-ARC-Seal: i=1; a=rsa-sha256; t=1793269404; cv=none;
d=google.com; s=arc-20260327;
b=ei7fptP1NKg7IfanvrOxj/8Z41Ojl+NZyCugIR8QxjQogK5D73jL8urWlZnqLjoNg+
hUfedUMjrwB0YpAwjhxhNi3gz+qt/ihHqfbDk/QxGFy4uuc6OLrlS6R0MJd11i0sTYa6
PreWK3XSQpfYiPDTCy9qi7FQcwoDUDV8ji1+9k5jjLWsmAjIKJIyBUmBG+p5KSoSq2NT
jbZGZVl2nzDdCe7VJpjbsMGQdHlMKDNGBLqffjcbUOngCYRHAVjxqZBi5/eAzTljqVYg
xy7K4iOfmg6PplcG2OLY4WWhxlUnlzH/b8nAWhUkwYNLUj0yjidvqFMa9OyY36q7eUAZ
87aw==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
h=content-transfer-encoding:cc:to:subject:message-id:date:from
:in-reply-to:references:mime-version:dkim-signature;
bh=BA+kSJSuqF0Tp/mjbmAU8rE7i18xLMiTHg0IlzoVm5Y=;
fh=Emi15biMxhcQZg5FLwYOvymqhwz/W9NNVykBiHQkbok=;
b=Vu3Z0JfsEcyASrmNfXo93lxGCxHZLWhXRPypwT3iNMn8DpSilv4UOb7Ry6JAPTdv56
rbzDExzPKkMZEpi80PFOhdymKZZYpxFYqh5TBqk3aAEGs9UbH5cY7T8QkWZLgJCjV3u7
zqRONfPiOSjIvaCjykRy9MsSbJ9EoKXz4+iuc7I9kykPGV9k7dXAaUbB/i2C9EpGhpff
YF96/SP6EC0YvSFYnQp47fi04C3rJO9mRAKVYFfAMC6OnStAKVP87laNuZ0krMdQjP+u
UVhdfiaYjLotDrisj715WGW3oidwZ9z/1rucKuq2hH4UOnNx0l6DwbozczZNGHswDSgy
D24A==;
darn=vger.kernel.org
X-ARC-Authentication-Results: i=1; mx.google.com; arc=none
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793269404; x=1793874204; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:from:to:cc:subject
:date:message-id:reply-to:content-type;
bh=BA+kSJSuqF0Tp/mjbmAU8rE7i18xLMiTHg0IlzoVm5Y=;
b=WK6/y+1Wz0AXURlsYTqtbMZgqlkEzPB5OmWVXA+pVAi/DAAFgbOASA1bLf6PDFz1XX
dly3Kb/VlaE4cML+c9e/X+GPm5cjz0Kn2FFZwDYNOou/d7Js37KqyvHMTbJw18N7N2ED
MZ2oFTyBjsoF1KpTWbn2znRJIPtd2uksw2EqLC9J0GeL5ryM4Md2J78ISM8Up8NhEIBm
fs8AbogAwVcOeUecN34PoE21O7A3R5At3pvq8asYoTXyt/vF8qzM6qtPHsBFsuyM93o3
C0f3JcE1S2hqxviECKEnUneKnLGd6XX/KdShGu3W9/4fmPoafghr4goKUVl1ZyuXR0nt
qrgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793269404; x=1793874204;
h=content-transfer-encoding:content-type:cc:to:subject:message-id
:date:from:in-reply-to:references:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=BA+kSJSuqF0Tp/mjbmAU8rE7i18xLMiTHg0IlzoVm5Y=;
b=rXNTU+D3X1IL49s9BcIj7DaLiOh7+BvpcwD0eUJL0k2SyXcgsy/v70Jq1P1q68kcbP
pD/ZgpY13u7mpVzbmynk8+bLfpc66txvCcgA5s3hMLSItDEBrOVo9bD2owztmbK+43om
SB5n7iva8CSPrnhUMYr0N7JKIvxrPQOZxzPDiYFeguF0vJD/txRts1baGfisk6HsMX33
xHWx/7ss2ocnf0sBGOvJjx1Jbp8l3X7KaTQP1EnYM+GavyugoGzVA6Tcu/6I5goGE3gT
HKYm3ivQ380iCQV7Kf6GZFeOAetDZrjr4ZLcG7GHr19XRxy7NaSNJkF5Jn0cXNiYnCuJ
YB0w==
X-Forwarded-Encrypted: i=1; AKwUvBx80JgP44LGg96jFj1KpsqbvVI1RNhNMZ3sGmj2Ab/DFkeS/xFuw/E0JhMrog8u+wWjMP7Q0O4=@vger.kernel.org
X-Gm-Message-State: AFq9FYL4oTQ68TVbiTkur5jhaMfh5InoO0nAdrbVkmMdk6MoNi7Og5F6
FOAGY+gIchEBnTfw7FG+tfFEaW6mFcaq1M9DcHHFkX7UGLhu63tuL8aZyldW71yzxrGHpeIEEji
XJLV4EvXKbwWlYLsa7hP2fpboEim7nVc=
X-Gm-Gg: AYBFou336jYcJZ9SQvPBd/7NrGY4I8xqqPhvKdBK1c2wTLrcMtNv31p63Q5biRWzbmr
BNY5ZiLo1BRTJ1mtc8QRoyS6fhh8qfSUiDZtqgPhIVHwCAVIi4J4bWN84a68hK6yJil5UqBpCzU
DxALkCLm6d9HgGf3ZG7oDOupE09+SSr6XTDy6Ht7bAKYAz3BOlUqKsMacHbXwHcNn/65ls6sXf2
YdZIAFLQ8t0LyxRJ2QahanVh+3U40jb+MiEFcEhUQzap+/g6zzKqey/Ko28uYvoWPNW1skJ06og
widwrlotsFnqF8R+JHhtrDCMx37I6grLJfAauesfFUjXCjrWFxrvE7fTMl3xmfU425jjnEI+i7R
+W7KAc53YTnmxNtbV9s3yDVtkJEWDIkegOaJxKwY=
X-Received: by 2002:a17:907:5c1:b0:c44:9a32:b27 with SMTP id
a640c23a62f3a-c49bdf3efccmr409763966b.25.1793269403495; Thu, 29 Oct 2026
03:23:23 -0700 (PDT)
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: <179326779144.3327.11596356628770174944@kernel.org>
X-Gm-Features: AclHuK8EImYqqF5YHtT2i1-3dqjgRi3f79j4EOfGIpng75DJLEaq2ArfexxeNFU
X-Cc: Jakub Kicinski <kuba@kernel.org>, Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>,
"David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>,
Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org