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=1796388452; b=N3etGnZdxKIFIWt62vHrh6j+UaiymqQRHayp5ybtCx3qIeN+YoK4n7e1Z8A4ueW1sied iljdVrNyuMDibC1eQik0RsyxDFFWDhPjG7XifTW6A1ZkNcbIn7wVz82gv0fhgodXacrjv PkmBBFNYRDQxYya2MTUz2iZx31Y/p44JgS5RQzg1m64mrEuLprRnuhVQl0hMsOh7OpkCL y7jJNfzc4XEREuw5JDgiZsraPenwbMS80OKVnZKOnFcdB+Zxv0StUQ7mhW9eWFzCJu1p1 B4wxzZEwAEMZ480aP9ngZ+zYt/JBQ2o3LFy2VyUDnqQ2gCd2jJCt01zy+DV+KXgbDPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796388452; 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=MPkiftDd04oVsaDCLb7DpnkOGpR3RWOO+FB+Q8Ryoog=; b=nHF4nq9lL/QtQvo2BrTaiWaTBsgp1mzHnDAQZKvs8o99tOfnqBxF+Eld8J/2xKwwhbgL BZuQu19QB+XYsrWnnzyPYoU2/Rx66XsBGcGPgtdxEDrnQljkq4ak7U6TYEZfcqWpSj6/c aGOAV7ZPPpRj6Zk84/TNGiIpBTcBIF335sFBzGnTxv8gue4tP376QlUgRp6kZTOj2a8Sy 1ghOOloNwfPFEX1CGo8f22uawFxUsseFbhJgRftTSQVOsaVGsR/sUts8de0uKJJ/E7nFV hPGp0h9x977dCNU5NnNz+/aAugbaS9huAj0D0GNo6Fn0z9o6gWyowGYCzfru1V/21jg== 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="RM/mDqhT"; 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 62968606A333; Fri, 4 Dec 2026 12:47:32 +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=RM/mDqhT Received: by smtp.kernel.org (Postfix) with ESMTPSA id 579041F00897; Fri, 4 Dec 2026 12:47:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796388451; bh=MPkiftDd04oVsaDCLb7DpnkOGpR3RWOO+FB+Q8Ryoog=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=RM/mDqhTgqGQwsb+1q79CnkY6ueI//WpG6H6e2/Jk3nJ0Gw+25ZXYZGx7/DRfMjmn vkzFXYj2gnfbeUfcmUYki9L/3I9it+H07Ln9s1+pVTsbiO5aENKkvzFDbueqsuNoKZ rUGm2xceb2UjMCiYCjViVyTbDaqDsffxA13Bekd25tsxF7/d2bCBoDMnScIn+J1Dbl zqdwE5DMyIJ3/YM6ELuCckuRJChbwYil1Xm0iUX935BJ4uQyi+K52drXJ8yc4w4dhi 42kksgcTU2vZ9Et01cF5hgCDBxBgrbm9nJ7ePTxKwiwWsZ+XC0pta1R/nYCZv/uA8e 0zDHv6aOznSZA== Subject: Re: [PATCH net v4 2/4] net: ethernet: ti: cpsw_ale: serialize ALE table accesses From: netdev-bot+sashiko@kernel.org To: manuel.janocha@amperfied.com Cc: s-vadapalli@ti.com, rogerq@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, vigneshr@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, kuniyu@google.com Date: Fri, 04 Dec 2026 12:47:30 +0000 Message-ID: <179638845089.3146.9429239253121285604@kernel.org> In-Reply-To: <20261203-cpsw-ale-lock-v4-2-4ecfbc4bb042@amperfied.com> References: <20261203-cpsw-ale-lock-v4-2-4ecfbc4bb042@amperfied.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 changelog of "net: ethernet: ti: cpsw_ale: serialize ALE table accesses" refers to other patches by their position in the… -- net: ethernet: ti: cpsw_ale: serialize ALE table accesses This adds a spinlock to struct cpsw_ale and takes it with spin_lock_bh() in all exported cpsw_ale functions that access the ALE table. Without it, ndo_set_rx_mode() running without RTNL on one am65-cpsw/netcp port can interleave its index and data register accesses with a VLAN or address operation on another port. cpsw_ale_add_vlan() is split into a locked wrapper and an unlocked __cpsw_ale_add_vlan() helper, which cpsw_ale_vlan_add_modify() calls with the lock held. > The lock is taken with spin_lock_bh(). ndo_set_rx_mode() already runs > with bottom halves disabled, and no caller runs in hard interrupt > context, so hard interrupts stay enabled while the table is scanned. > netcp was the only caller that took the lock with interrupts disabled > (netcp_rx_add_vid() and netcp_rx_kill_vid()); the previous patch > changed that. [ ... ] > are not missing serialization: with the lock held, a table read can > still return a wrong entry, which patch 4 handles. These numbers are > from v1 (spin_lock_bh()) and v2 (spin_lock_irqsave()) of this patch. > This version was run with the whole series on net v7.4-rc3: 60 runs > of 120 seconds passed and lockdep stayed silent. [Severity: Low] This isn't a bug, but once this is merged, nothing in git identifies "the previous patch" or "patch 4". Could the changelog name these patches by subject instead? From the series, they look like "net: netcp: do not disable interrupts in the VLAN callbacks" and "net: ethernet: ti: cpsw_ale: verify ALE table reads". The changelog says 2 of 19 runs on net and 1 of 29 runs on 6.18 still lost the VID 0 entry. A stable backporter reading only this commit can't tell which commit fixes those failures. The netcp prerequisite does name this patch by subject and says the two must be backported together, so the dependency is only recorded in one direction. The "verify ALE table reads" follow-up has no Cc: stable tag. It only has a Fixes: tag for 1dd3841033b3. Should it be tagged for stable as well? Also, could the v1/v2 revision history move below the --- line? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261203-cpsw-ale-lock-v4-0-4ecfbc4bb042%40amperfied.com