Article View: linux.kernel.netdev
Article #16108Re: [PATCH net-next v6 1/3] net: ethernet: mtk_eth_soc: fix the RX descriptor address on the release path
From: Sandeep Haemoon
Date: Sat, 14 Nov 2026 01:39
Date: Sat, 14 Nov 2026 01:39
27 lines
9877 bytes
9877 bytes
On the automated "looks like a fix" inquiry for this series:
The change in 1/3 was found by an automated review, not in production. The
reviewer read the release path of mtk_poll_rx() and noticed that the guard
added by 6e0490fc36cd ("net: ethernet: mtk_eth_soc: fix SER panic with 4GB+
RAM") relies on dma_addr being DMA_MAPPING_ERROR on every release, while
e10a35abb3da ("net: ethernet: mtk_eth_soc: fix uninitialized variable") had
moved that initialisation out of the loop and left it valid across
iterations.
It has not been triggered at runtime by us. It needs MTK_36BIT_DMA, DRAM
above 4 GiB, and one of the early release paths (no netdev for the source
port, MTK_RESETTING set, or a refill allocation failure) so that descriptor
N+1 is handed back with the high address bits of the buffer that was mapped
for descriptor N. The visible symptom would be the engine writing the next
frame to an address that is neither buffer, and stale contents of the
untouched buffer going up the stack; there is no stack trace to report.
Hardware: the series as a whole was tested on a BPI-R4 Pro 8X (MT7988, 10G
port) on a 6.18.60 backport - 8K ICMP passes and iperf3 with MSS 8900 at
MTU 9000 reaches about 9.87 Gbit/s - but the 36-bit path fix itself was not
exercised there because the condition was never hit. The v7.3 series is
compile-tested with CONFIG_NET_MEDIATEK_SOC=y and COMPILE_TEST=y.
As suggested, this is a reply rather than a repost; please apply it to the
series.
Technical Details
Message-ID:
<patch-18d5b24e95d7d6baf74f3486715cdb10@loljews.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363028-linux-kernel-netdev=dewy.ruReferences:
<patch-4b4c5003bcf028fafd094e719c5e910b@loljews.com> <179461633631.2168702.17586474086593763386@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363028-linux-kernel-netdev=dewy.ru From: sandeeph@loljews.com (Sandeep Haemoon) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v6 1/3] net: ethernet: mtk_eth_soc: fix the RX descriptor address on the release path Date: Sat, 14 Nov 2026 03:39:07 +0200 Organization: Usenet Network Message-ID: <patch-18d5b24e95d7d6baf74f3486715cdb10@loljews.com> References: <patch-4b4c5003bcf028fafd094e719c5e910b@loljews.com> <179461633631.2168702.17586474086593763386@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1486194"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:zNpTPxhNK5z45H1H330Bh+deG60= sha256:ZqC9RR0FAy5rUJX7elGIFhjliRk96RyQO0nU+nUk2HQ= sha1:fKazogZ90Ea8giVl04EwqJqle6c= sha256:KCbZGdGdaFgN42etGIItpmsKc6pGyJiGqDw6nu8RV5U= 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 2B95B1146FF; Sat, 14 Nov 2026 04:43:51 +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 (2048-bit key) header.d=loljews.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 tia3_6co2DNW; Sat, 14 Nov 2026 04:43:43 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-363028-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=loljews.com X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 46B5F114661; Sat, 14 Nov 2026 04:43:27 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id D29092D268; Sat, 14 Nov 2026 01:43:10 +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=1794620589; b=5N91ejEI7Fqu+RaP0FSIDeooMdyb5AEAMjab3W8dYU+s2qVbLBi/apDUyUp2CsmhzYpe FqcpyvCYJr/e1wKtuIDoV+PQPE9NJYPwHvWYKImUti9KZPioG8ZjNQqpNY2WmKgnPknXH GmUBjkMEECQr6fry93yXL6o8RQJrWd6rkmFwL65Bbwv2f3kcXFWnZeMIZ2qFh2G10dFkW X/SldUhQ2kPa8YDkjxtG9gZuwbp/1oAd8maI7zXf9s6SruJmgYtRNKpzND/NLdiymmkUs ztDKAhHHiceeZZEDzV1c/+GCQ36DbRe+8c+6EncqU0KlQZ8tvaMcAAwzmRINlqQDRpg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794620589; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received: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=gSEb+snyfa1C/uq6HcvChYZZgnf95qnnJ9XhmYpvJKw=; b=LXOTqNV6jH3tQT5BZiK1hbbUwO8QcjJue9bsMJhXsPE+WsgD81E6/iRwhETEkVxseP2o zkblyHbyfFC6j7hkrZ3ZyCW1QVZv65ooJ1rWl6U1WUa5mb6Q1x16/SpCyY9/E6M4QuStw gUz9E4TauiTAx3tY3NEp5I/G1Q2WWa6N3MXOwzkj570fEhxC+dUdlk4nSeTYGlol6QXmi Mtc5lgAVrdIb3nzhYVoFBfhFSKuEVjsBWPhBT9zhzkj6IyBik0GkLiVWfHTmLzW+MpfHg lIdRHlQu4b1SSyr947Phx4VqbrioptwcHV+uBao/bERkLMjsZ3kgz9K+8m8nTNtjEBQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=loljews.com header.i=@loljews.com header.a=rsa-sha256 header.s=mail header.b=NYEG+OLN; dmarc=pass header.from=loljews.com; spf=pass smtp.mailfrom=loljews.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 8ABBE606A335; Sat, 14 Nov 2026 01:43:09 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=loljews.com header.i=@loljews.com header.a=rsa-sha256 header.s=mail header.b=NYEG+OLN X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=54.38.221.178 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794620588; b=Th0mXLa3RD7Rm/xCY7UcUZYo21AKHISHeTYPj+8womImmPd++JmYwX90rpiSB7TWha2f VqICmjzxngcR8AgQWsFGw30nH/ZS8pt3hEk6j3lChw6JvKvXtqv9m3Z7MV0HSzTGrk7Wd pAURwEg7KeZbZtVQu8Tqv+fmUbcxDm8AscqOEGEt1QFxvNqYSJb1Inr+y43Z+WPPqs/cJ kV6yfFu9KcBTN7FLbKeDRvrPzAhY04w2SreqZheYdok+/udPxx3aHSnOGpYocszV/6qe6 czVDQgl4QUNmVYI6KXmhjCgOTiTyyg9UOxpgvDllJWPxEitIY8BVaZ3sqnt9QRA4+Xw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794620588; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Subject:Date: Message-Id:In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=gSEb+snyfa1C/uq6HcvChYZZgnf95qnnJ9XhmYpvJKw=; b=EOnPqcsLDuJuSbzv8LnaeRX0ZHWBdmXSm9m+LXnidHw5lrpsNZQ8WZb4Xe28YnDvQcM3 XniNMX3X7lPaD5rCfut5oemVtuAp//h3NhUYh8YrPh7OyQiB1R4t23ELfY5+4jE0lMLBh lwyQSNWI4ZxnG/Z8d4cvfx6TDiMkbjONJjITVXI1QmSKGVk1138E0k6VxiHtazbdvcu4h Lw8EQHp2dinX10ujcN9ILILzh1ENVbpXrpnxPXvMolAUhikCJDUbv7D8WbWUKTit4nRBU Ll8EI4eVHYjiba0aPB9wyR+394PbuIFRKXXEJ9PLcEXnUENN5nuhEt+rej4jOaNMUgw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=loljews.com; spf=pass smtp.mailfrom=loljews.com; dkim=pass header.d=loljews.com header.i=@loljews.com header.a=rsa-sha256 header.s=mail header.b=NYEG+OLN; arc=none smtp.remote-ip=54.38.221.178 X-Received: from mnc015mcc432.ss7-reroute.local (unknown [54.38.221.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12A59606A329; Sat, 14 Nov 2026 01:43:06 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 12A59606A329 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=loljews.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=loljews.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=loljews.com; s=mail; t=1794620584; bh=gSEb+snyfa1C/uq6HcvChYZZgnf95qnnJ9XhmYpvJKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NYEG+OLNirTlaEbmgMVDHePjD+O5Gcvr+aVUcCRGYNMx3syZ2G/LKMtPKlukakF08 g6NPVH4ChgC/yvJycWb0iszBO3r/pvLxNZYY3r3dowrEJlZoKGUWGe2Yewnxn49oHr R8mkgNKAfVPCY3WTUnaLIGdGCtE5JfZDjoFMrt6YZLh7btifzyl+pQaKqQyMlG11Og bIBpWT6J0M5LuLdc8OM71qzv2JnGNmIWDlgUJMr055fcamtXACwlM4TAGyikGnVawl pc8eCRBMakXdGghrCy1RfukWF/BY/jYvueHvEFxbq+Gqz+5DTbZVqe8Co/HvauFivd kbYhwes7/OKOw== X-Received: from loljews.com (localhost [127.0.0.1]) by postfix (Postfix) with ESMTP id 1F71B27A688C; Sat, 14 Nov 2026 03:43:04 +0200 (EET) X-Cc: netdev-bot+sinfo@kernel.org, Felix Fietkau <nbd@nbd.name>, Lorenzo Bianconi <lorenzo@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Eric Dumazet <edumazet@kernel.org>, Daniel Golle <daniel@makrotopia.org>, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org X-In-Reply-To: <179461633631.2168702.17586474086593763386@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-Received-Bytes: 9592