🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8764

Re: [PATCH net v3 1/2] net: dsa: mxl862xx: bound FDB dump walk with a read limit

#8764
From: memoriaru
Date: Fri, 30 Oct 2026 03:33
24 lines
10209 bytes
From: Zhang Hewei <memoriaru@foxmail.com>

Hi,

Adding the requested information:

How discovered: manual code inspection. We were auditing the
mxl862xx driver's handling of device-controlled API responses
(firmware as an untrusted party): both spots keep consuming or
trusting values that the firmware alone controls -- the MAC table
walk's only exit is the device-set "last" flag, and the returned
bridge id is never checked against the values the API documents
as reserved.

Triggered: no, theoretical. We have no MxL862xx hardware in hand,
so neither issue was exercised on a real device. The FDB dump loop
and the missing bridge_id checks were verified by code inspection
against the GSW API documentation (id 0 reserved, INVALID_HANDLE
documented but undefined -- 0xffff in the MaxLinear GSW API). No
symptoms to report.

Best,
Zhang Hewei
Technical Details
Message-ID: <tencent_9A3D612B75599BC18E420368621A5A296A05@qq.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-353558-linux-kernel-netdev=dewy.ru
References: <179327344028.3327.14084939226295973095@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-353558-linux-kernel-netdev=dewy.ru
From: memoriaru@foxmail.com
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v3 1/2] net: dsa: mxl862xx: bound FDB dump walk with a read limit
Date: Fri, 30 Oct 2026 11:33:12 +0800
Organization: Usenet Network
Message-ID: <tencent_9A3D612B75599BC18E420368621A5A296A05@qq.com>
References: <179327344028.3327.14084939226295973095@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2155971"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:UHzBw4ooHE1grx2LFYY6sbD6wBk= sha256:qjN18Iyih1WJOthQP03HHWskSmaWfYQkQfQJA0LX5QQ=
	sha1:03niyB7hiPbsdAdaOr8ph/kPRp0= sha256:BMditdOhezTgOzTjBM8JckJ8S+91SzBiLuetqhWF01A=
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 B580D125C7E; Fri, 30 Oct 2026 06:39:07 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.047
X-Spam-Status: No, score=-3.047 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=foxmail.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 d-H-vSXA2_nM;
	Fri, 30 Oct 2026 06:39:03 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353558-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=foxmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 51F14125C77; Fri, 30 Oct 2026 06:38:54 +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 AB7612DB02; Fri, 30 Oct 2026 03:34:46 +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=1793331286;
	b=dRMypDO6l8X0R4oEGmSHylCezcZct1TEWGw4vbaOui2owm+Pqy5FVUrxUrJDQOlFRZ69
	 njJgDJC3xxXruc5KO7H1MZgLI+IHMPV88Ak2mpRhfE/7LJQjsX8O3lqsZ4xeU1F6dg9/f
	 Bh61UcSsvltEa7jyaMmGEPSHz2stj0+/YrOEVs80o1c5jKj4lGhFnj40FTbXBCbB3SXdY
	 3RmiAIlmoyWxaVMzU5NAQJIMOcuw/SojtBX2rfqPKHHfshL2VqipXG+nclQ7q6P7kELlO
	 at8MfxqG8shkhvFUviG9YmZdJcUZwrJVvf/IJQB1RHPvSgrQ+sZCYQv+5vpvDD/5CHg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793331286;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:X-QQ-mid:
	 Message-ID:X-QQ-XMAILINFO:X-QQ-XMRINFO:From:To:Subject:Date:
	 X-OQ-MSGID:X-Mailer: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=UpMK1eS3G+4e5yAU/xnlikzuJMV8mVbAyBsPVRuDU5k=;
	b=fXZNMGw1/uw9Y48OvdOM16zHhA9F5ath8R/bmoAOnIogzFgHeZjd1KuBvmUTv5Tby0fx
	 bEh0DTr/xVA+YbMh2UBSd7ztjIJfbGdI58eRsFEaCaviQi/PufsngHcd18KUXbNzx1DjK
	 e9qi2Wka6bBBeLr8Nq6iqK4HtiwWaLPhingJ2U1o9DO6SIuYtJ1Y+qcl6n81hZq40u0hh
	 MEPXHelXRz+tFTNjahxazQ8Lx7+uBdq8iRnPFuVxBpH1pzsZYHfBD1UVUmF8AAQPfhY1U
	 pc7923YBXUN4aYAmQz63PBGaOmckfxopiqxmL21L2wsJ31SP7zTtf2Pk3G2asc3yF+A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=P1i6J4gz;
	dmarc=pass header.from=foxmail.com;
	spf=pass smtp.mailfrom=foxmail.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 81C5E606A321;
	Fri, 30 Oct 2026 03:34:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=P1i6J4gz
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=203.205.221.209
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793331285;
	b=yaeqJ/8PnG6kAK+dpqSVclpAdM1R1h//L+//CVewRcB7v7w7wtiICDoZpNBsThYo2IqM
	 0oLqBdjkvCFiGiC1nl3kxbCyfPsBIwdFWAqmNB9xIY1Cz4MUafhASaJa5nUDZVxa74S2R
	 Hv1/OO15MtY2zzqHPqQo3ZAqN9zrYO4c1MFLBDaGE1h1nBY05MOasbG/acgBmTqSXKDXD
	 E+uFt2zTzAC/kbIpwdNMRw/8VTlS2sxaPThOF4n21ocbzqUF6xhQibzjEYCWG7/EC1bJ0
	 Z9cAwLDNDSY6PiYuqFRBLde8HysfW0olo8AUiSijnS6kxEU1JFJhlWo5Oo02OPiUdLg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793331285;
	h=DMARC-Filter:DKIM-Signature:Received:X-QQ-mid:Message-ID:
	 X-QQ-XMAILINFO:X-QQ-XMRINFO:From:To:Subject:Date:X-OQ-MSGID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=UpMK1eS3G+4e5yAU/xnlikzuJMV8mVbAyBsPVRuDU5k=;
	b=BZQP4JXqt1bkcbjUMiNcTo900unpJ+XTh03FCnAGoAkdpCvqPZl2UnIqemgHV1aBRTyI
	 HIDND4kd89CqL0Af7SDy4gQBSwsjIdDyarwBrbuAQuVBBLqTwQArpmwMwkHtOUMgq9eV2
	 Fq9T/Ff2Kb6bo8eUUdJog2/V2tVnJiOfJdsBC9AnfbeCHs/cre0jLBCXSc9zrZZM5gQK/
	 sbtOMsRKong+LZYIWUZP6txYTCRPTe8JnUoawBTuDhFdSwq+MV1YrGQkfjjy3ZheGXlyy
	 RLIduDnHm1jXBPUEXEIwQNjCu7afytscy4QLNsaAuvx7jmTJZNePGgYe2tRkSZTxLww==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=foxmail.com;
	spf=pass smtp.mailfrom=foxmail.com;
	dkim=pass header.d=foxmail.com header.i=@foxmail.com header.a=rsa-sha256 header.s=s201512 header.b=P1i6J4gz;
	arc=none smtp.remote-ip=203.205.221.209
X-Received: from out203-205-221-209.mail.qq.com (out203-205-221-209.mail.qq.com [203.205.221.209])
	(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60E4B606A31A
	for <netdev@vger.kernel.org>; Fri, 30 Oct 2026 03:34:42 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 60E4B606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foxmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foxmail.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com;
	s=s201512; t=1793331281;
	bh=UpMK1eS3G+4e5yAU/xnlikzuJMV8mVbAyBsPVRuDU5k=;
	h=From:To:Subject:Date:In-Reply-To:References;
	b=P1i6J4gz3qkmlYbtnCGjoU2Xsg0J3BAIox5c+z+5opCawQm5sgpHntvKLYUMivuBD
	 cVmbdEeLdyA7XLDeIF4Ln+9i5FAAgMrfXXKkm7EtELQbxJwoculzOsuioOusw4b5iq
	 odjBahtSi8pHkWBqiriWg+PtxH48WFCIEOdvP0qQ=
X-Received: from localhost.localdomain ([240e:3bb:302c:4eb1:5da5:a99e:d3a2:d604])
	by newxmesmtplogicsvrsza73-0.qq.com (NewEsmtp) with SMTP
	id 84D24025; Fri, 30 Oct 2026 11:33:13 +0800
X-QQ-mid: xmsmtpt1793331193t77gxfd8c
X-QQ-XMAILINFO: M9B5ARjGA2Wm/d4swbdMrRO4E/+mnGGIzS61HubAg3usyhJeNhr7tExAcWb/KK
	 BvhPlFj91JD1DJAKn7OkWAmU6/is7CvM/8HOp0p6QRpOPQR269ruP1uBWDYUbd7ub3aYYcLRZyaV
	 Ayx8qeER3HZVOvFTE7hQXl72HfAziYzFNFl7lkStoyVPG4HyVyov0MZORIERMoXdzktQAsvvLSZX
	 g/DswG8URS5ftWntD7cftdKGCvwzNTHwyUjA4apXDDZ3R1S+ldSA9a6GmIoAtyKYlxRcfeB5w87x
	 OopArzIfhqWq/pRsw/swnSd+XzUxWtiDbYtXP+NZWS80dLcLbuvG7/PvLcV1U47jECNZkdbv0KvK
	 RYnf9mSYGuquwXEwwxRhw+Ei2VNCVkhA+1iIrJmn/NSnfRbRc28RUuoIf4oi/MKWiXrj2lBl8dVh
	 aOH7u2yyFqJxvv/LSsWK+Jh1lz9A5u9vutmrOQZBLHLlL3d4229NHZGvo0hpKzwI7ERrX3BlCYT+
	 p9ZStMBPSTOC2n9egd6vf+N/lEUtg69u43mzHX4XZmnRK1TCU6Hk/5VuQZaDLH8uyyoWMcxv/VaJ
	 nzYsEBj7CCmNrTopA40K6KPuhNOZFu+fTrGiRQgfvIOVsPn79f9SrZ2SLMzabC7pphq5taoGiABO
	 vQyJ1TswDURF8VwhY04/YQFEeDJTr84umulEOjTWK6dW5G0NJ/HItGJwNVSRcCpYJIYOHVZ8hhrH
	 Ic9IRdCHOw8hcRx5E0qx39RlEe9FBthDpMPvbKHbSX++9U4l8kwo9+P2BSt/RtF1qLsbCbKyckem
	 s3cYo2iD+xhsxXohPe2eOXKccuf7CkV2h8A6jeUEHAkqZc6SefBMY3oiDLZx+qgL5ti2vIV2KUNb
	 ddl5AXpH02OHJ4VCgEipE+J63An49K1sYOVa4UIw4Urt2pRc8BE2UBp6vEiisAB+U/HAR+taQyh3
	 lHCrODHfpqWO3Hh1Kf2NAGq9IpBCYFyBdJVIZT0jj9Bi5DYNUcgiWJoSfuu1oaNJNJIyBmDZ9XEi
	 kJP+uXs0UuMHVE9I03c+rCn4V51SR92o9/yKNQYXOxe0MV3g5O0K5Pg8ABhmA=
X-QQ-XMRINFO: Mp0Kj//9VHAxzExpfF+O8yhSrljjwrznVg==
X-OQ-MSGID: <20261030033312.2607-1-memoriaru@foxmail.com>
X-Mailer: git-send-email 2.39.5 (Apple Git-154)
X-In-Reply-To: <179327344028.3327.14084939226295973095@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