Article View: linux.kernel.netdev
Article #24837Re: [PATCH net-next v7 1/3] net: ethernet: mtk_eth_soc: fix the RX
From: Sandeep Haemoon
Date: Mon, 30 Nov 2026 23:16
Date: Mon, 30 Nov 2026 23:16
26 lines
9436 bytes
9436 bytes
On Sat, Nov 28, 2026 at 07:34:01PM +1100, Eugene Markus wrote: > This bug is not theoretical: it has been corrupting memory in the field > on a BPI-R4 Pro 8X (MT7988A, 8 GiB) running OpenWrt main (r38441, > kernel 6.18.60) as a home router with a Bitcoin node behind it. Thank you for the detailed report and the bench data - that is much stronger evidence than the series had. Your mechanism matches the analysis: every path that reaches release_desc without a fresh mapping relies on dma_addr being DMA_MAPPING_ERROR, and before this change the sentinel was only still true before the first successful mapping in a poll. The comparison between the old handling and this patch is exactly the test that was missing. I have sent the fix to net on its own, with Cc: stable, your Tested-by and a Reported-by, and a Link to your report: https://lore.kernel.org/all/patch-d7f0fb2678768cc97f1e9fb7ff0a27b5@loljews.com/ The jumbo work continues on net-next as v9, without the fix, so it is not submitted twice: https://lore.kernel.org/all/patch-957a473dc4caca415acb95d2d6cfa1ab@loljews.com/ The v8 cover said the 36-bit fix had not been triggered at runtime; that was wrong and v9 corrects it. If you would rather not have the Reported-by, say so and I will drop it.
Technical Details
Message-ID:
<reply-872ec7a67a8d5b5f3b22ef27752bfa1a@loljews.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374524-linux-kernel-netdev=dewy.ruReferences:
<patch-295a65477d87017ff5b65482ffae46fb@loljews.com> <17e86b6f-25af-43fc-b0ca-a0eb982e6cf4@fiftyone-percent.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-374524-linux-kernel-netdev=dewy.ru From: sandeeph@loljews.com (Sandeep Haemoon) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v7 1/3] net: ethernet: mtk_eth_soc: fix the RX Date: Tue, 01 Dec 2026 01:16:48 +0200 Organization: Usenet Network Message-ID: <reply-872ec7a67a8d5b5f3b22ef27752bfa1a@loljews.com> References: <patch-295a65477d87017ff5b65482ffae46fb@loljews.com> <17e86b6f-25af-43fc-b0ca-a0eb982e6cf4@fiftyone-percent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Injection-Info: usenet.network; logging-data="1564261"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:63/fbib0PvM0k4JkFfCyIACW4dw= sha256:Cd0XrAzc+fqMQnQLp34km3ZIw/uGkXbdP4yXyK/g3S8= sha1:j/lVMlcQ6bnyDdHuJFpaM56BtsU= sha256:7d8VHKSQil/f0RmTc/Ffcf7TPGfqlneM4CaeoLNCmcY= 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 7667F126019; Tue, 1 Dec 2026 02:17:47 +0300 (MSK) X-Quarantine-ID: <HkD6wVvbQYyy> X-Virus-Scanned: Debian amavisd-new at usenet.network X-Amavis-Alert: BAD HEADER SECTION, Header field occurs more than once: "Cc" occurs 4 times X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[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] 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 HkD6wVvbQYyy; Tue, 1 Dec 2026 02:17:44 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-374524-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id B4C47126018; Tue, 1 Dec 2026 02:17:32 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 3599D60198B; Mon, 30 Nov 2026 23:17:32 +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=1796080646; b=MuE6yCxVhmMxSwPtnQ6zkcoyIR+oU/zjBpXWQMlIImlas1zotGj6s11ecOlv5wxNnjJe vF51WI3AQQH48rufSMbHR2TZOCfNjOz/c5wibYNZfF/GD3VQQIZuXpQFc3V8mUmEClnic oXh4RkW6PW3Ir4LUo9w2H3EvSXrRdJlR2o71f6FS9DiJise0WZbe0d29B3HrwXoOJcWDC 8vyptWP3mavG/ELIwGYqqaZi/BsNhud+NHWeg4JvSmHUBNev9D3bjcd+Das/5Z2SAb0Bj 9oayDD0dr3qxwcg1HMQa467Iy9BgfReSRg/ICnGmbNcE5mztCYdPxkT7q2EJ4xYqQpg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796080646; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:From:To: Cc:Cc:Cc: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; bh=oZWWSXO9BRjXFl6Sw8TxgM54biWBdFhDZwrfA63OiKQ=; b=A3vao2mr7Bh1mIEisjz+3Fj7Qv1Un9GsHYHxIIjHQqpLrXYhxeTOW2u9M33A8QaUZCF0 BCGN6EWhMw/P3L3ZjmG15Poq5FoORQYh+on+N/sd2WdOz3lvqCXXyPW3L3SphQBrOhCua raiyfFjREHoP0QxQqTCBGKU2Y73/fD+q52fsci4D1u4M6v+fYkvojA1w02pKc4SsIxZTp uc7VCOh40TPH7LN+JXpeSOhWVD3iZyaiSB4UhQBx6PAUQf6JBJ4mHLv48y02c621WWEF8 co6OVaty5W9nwpvcvSLOfiONMzJTlSPyOcFZZzISm3FFwKxPDeSA2hlQpMGplTEfzEg== 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=usdanaWx; 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 3357D606A337; Mon, 30 Nov 2026 23:17:26 +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=usdanaWx 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=1796080640; b=PVh8bGwYUl70fGb1tV8GNawiGS0cKJzXhOLkHMSDw4C14Fhr/RGXbg+vV1CZJ48nK1PK ZI98cgU4OKld1QuWTDxK+bmkQY8igZEkokTsMwBRJsABQr9ZOa2p5LogAEOgLan6FWD4X f4E4gTfwmNr6tHo6tw9rL2vFT6uGP9CxRyOtO6Na4TyP0zS7f+bUb2vHMIZc8ylIwL1Jm zLd1IUfkgiNMdiyYmAF7RPAB4WAI519600XGEO/ZXFK4yiV9x/804XQGAlITVge6OpLjt R7roe7LvOWkidNb/nGkdv+kIQVazkFMS/uH5X2pqSjXG0qjqCCjcj4PEBirrcf0Qoag== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796080640; h=DMARC-Filter:DKIM-Signature:Received:From:To:Cc:Cc:Cc:Cc:Subject: Date:Message-Id:In-Reply-To:References:MIME-Version:Content-Type; bh=oZWWSXO9BRjXFl6Sw8TxgM54biWBdFhDZwrfA63OiKQ=; b=Vp8yAbqCDJ7AFDe2ioNjtZ3sidQDdHXSo0Gvc6nFe37mRGroaHUdqyUT44A6G+azN1wL 35YYN2WnLnou05wWhivCEuT8tJqZuomdSwKhC1UhDhslDPMQW+3uhjMu39dQZS8TbjfxY /Yi6guqA2FDaKXPOZ6uaJGfh1Gr8tJv3vKZkWcL+M8tE243p7e78qs68/qsFhfwyhOdr1 66P2w4IGOu6DjF7G+cFtvPYeGhiB6/On3C6MRHwatqE8od/MW15+DOgBdhMk1i+X9kANi HftJ5+ZYwcc6yxWR6RyLPUgF71UYOqsJI9I3Dca8w6rIY9BQhBWKO6pTfbOGZ0Y8xuQ== 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=usdanaWx; 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 CCBA6606A325; Mon, 30 Nov 2026 23:17:16 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CCBA6606A325 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=1796080628; bh=oZWWSXO9BRjXFl6Sw8TxgM54biWBdFhDZwrfA63OiKQ=; h=From:To:Cc:Cc:Cc:Cc:Subject:Date:In-Reply-To:References; b=usdanaWxXavxjazWjsRuq/X1s11ZjQX9PqPODF6kEww37s/rKFIdlJqfsK4WT7US1 SlpHbfATOABZldX8nvb1U+R39G9NSmNtieOyzeS+C2M+arlfcd9iUuu4kA2OlUzF09 NYVlCefztwH9mFeXR7IVhiDySUp7IM89LRn9eRcLfN14JBWU7M/K5b0JQbhW+E19jK mdq8x+gZ5ZdIcxi7p7GXX9V/H1oQtXBkhQ0090DGiS3XN9fAlA72r69Lz4keUno23r 9bQtqsrkK1YDRbTQLkqaXYkry/Mr0duaEwJjrkKsqN2oD9Y23DvAQ2yiK38jt7qL/q gdFVtBum/cpZA== X-Received: from loljews.com (localhost [127.0.0.1]) by postfix (Postfix) with ESMTP id 65A5427A3667; Tue, 01 Dec 2026 01:17:08 +0200 (EET) X-Cc: netdev@vger.kernel.org X-Cc: linux-mediatek@lists.infradead.org X-Cc: linux-arm-kernel@lists.infradead.org X-Cc: linux-kernel@vger.kernel.org X-In-Reply-To: <17e86b6f-25af-43fc-b0ca-a0eb982e6cf4@fiftyone-percent.net> 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