From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796341278; b=wAeUjzUdC95TonQH27wmlCrUqfPceQjzIxc+GchRj9R21VRfe3JIdzl+Enm/JMi0g8Aw OOmODLZb1eXxwuyGelslFY1UNcD1Bf0whhIIE8yqrTTEk62wLmguCYBRuCtfZXxvQCnS1 t46mtdW2Gfg9Hq+1ub2OdgU893ra575SSKuz936na9dhDGtME1f/iKxN7DJ1cjiqzsMuX I2oxS3o92GNWqQtFPO9Zz85OBNODET6xs7FOEJEK/ESXJcUFadhnn4gYgPKq3O3n/eklp sPsJRKHA+Zu/i99cwSfDGEqkclOzH2DbCKDVenMHwNd0RNIX6NNsKQPKlwhBcs3Fadg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796341278; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=5QBXCuqUbG57hnarYYh4ahfaIh96rhrVFupmHRVWVAQ=; b=UVJvHelQ15A/n8fCVolYV9MJ6D8JBQiauwFvfaks3q0hXzBBr+Zz7MUf030x2vfWKwkX 52UisSrtJRaA1HPk2HKa1H9u99yfFj9cT8+o/Tk/6ZHkV1bLWr0ECu7nX07bh7vCtCDiJ dFOuCpPRs9oaufp5ScdATYsBvUjeX//6yhEd/2T+NL2SRy5q5VGTFj2jNSlGnTrx6iLDw 1QL8CUk5HoY0YWSea02nmv5r/FFw4wa38xJSix5KW/scBiv3rdUoykf7FItApcWqeudMV 3lUf9PH0opP2ZCL68Wp4TV6FecxVEkhar5bilqau6TZRkb+/B3AGj2p/wWDl0NF+VMA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OjPvPPDm; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E684606A322; Thu, 3 Dec 2026 23:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OjPvPPDm Received: by smtp.kernel.org (Postfix) with ESMTPSA id D50001F000CE; Thu, 3 Dec 2026 23:41:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796341277; bh=5QBXCuqUbG57hnarYYh4ahfaIh96rhrVFupmHRVWVAQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=OjPvPPDm2t7VCRrR32qMM4qCbFAruhKxn7hMzlpp7gtJZV2fmlPtYolHSZn8HhDa2 2IffsZTkD976vYuMqNGEWV8iaZquxNmJ7j3HsjOyb623Z95IZwXFryeDYCmJ98uIl4 Sj7jMSSWq3eYeCYakSMjA/xJGKMsCqB7L4morkSEARNGm3aaWZ9mWp6B92jqc4cMgN K090DDNb9esn5tQ5UEkVgssuZDoqmQeYX3O/xqD9J9xxN9IP5AqYKaahsY6gAAqzTB dgsS9IJt/I9ZURK19goHatnla2xh80kYNQndCZouj/rxTWLJ7bPs91rNJ/drKwYO1M M28KKTMnkkfHQ== Subject: Re: [PATCH net v5 05/10] net: au1000: serialize TX completion with packet submission From: netdev-bot+sashiko@kernel.org To: f.fainelli@gmail.com Cc: netdev@vger.kernel.org, horms@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, hkallweit1@gmail.com, linux@armlinux.org.uk, shaojijie@huawei.com, runyu.xiao@seu.edu.cn, mmyangfl@gmail.com, hvr@gnu.org, danny.kukawka@bisect.de, mugunthanvnm@ti.com, sebastian.hesselbarth@gmail.com, linux-kernel@vger.kernel.org, manuel.lauss@gmail.com Date: Thu, 03 Dec 2026 23:41:16 +0000 Message-ID: <179634127640.3146.8125538197870339120@kernel.org> In-Reply-To: <20261202224957.3043478-6-f.fainelli@gmail.com> References: <20261202224957.3043478-6-f.fainelli@gmail.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The last paragraph of the commit message for "net: au1000: serialize TX completion with packet submission" describes earlier,… -- net: au1000: serialize TX completion with packet submission This commit takes aup->lock in both au1000_tx_ack() and au1000_tx(), so TX completion and packet submission no longer run at the same time. The packet copy and padding stay outside the lock. When au1000_tx() reclaims a completed descriptor it now also clears TX_T_DONE and advances tx_tail, and the skb is freed with dev_consume_skb_any() after the lock is released. > Sashiko AI review identified the IRQ-off copy window; OpenAI Codex > assisted the lock-scope change and validation. An extracted-function > harness exercised 432 ring, copy, padding, IRQ-state and completion > interleavings under ASan/UBSan, plus busy and oversized-packet paths. > The baseline failed the unlocked-copy assertion, and omitting the > TX_T_DONE clear reproduced double reclamation in the harness. [Severity: Low] Is this paragraph describing the parent commit, or an earlier unposted version of this patch? In the parent commit, au1000_tx() in drivers/net/ethernet/amd/au1000_eth.c never takes aup->lock. The skb_copy_from_linear_data() call, the ETH_ZLEN padding and the TX_DMA_ENABLE write all run without spin_lock_irqsave(). So the normal xmit path had no IRQ-off copy window for this patch to remove. Netpoll entry does run the copy with IRQs off, and this patch leaves that path as it was. For the same reason, how could the baseline fail the unlocked-copy assertion? The copy is already unlocked in the parent. The mention of oversized-packet paths also doesn't seem to match this commit. au1000_tx() still copies skb->len bytes into the 2048-byte (MAX_BUF_SIZE) pDB->vaddr buffer with no bound: skb_copy_from_linear_data(skb, (void *)pDB->vaddr, skb->len); The skb->len > MAX_BUF_SIZE check is only added by the later commit "net: au1000: reject frames larger than the TX bounce buffer". An ASan harness built from this commit would be expected to flag an oversized copy. Could the revision history and harness details go below the --- line, so that the changelog only describes the code as committed? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202224957.3043478-1-f.fainelli%40gmail.com