From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28894321B5 for ; Thu, 19 Oct 2023 16:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SyHilvGl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 771A0C433CB; Thu, 19 Oct 2023 16:29:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697732940; bh=Ye8d1uuZaaK10OD5z7psESvy3uRnG/HNWE2waR2oJW0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SyHilvGlYklTP6mvOjLmQd5fTzxp0Ev47QNZ10DvdN3886I4AjdUfGeV0g/zWiQIy ijODs9hpy1IPkyisRGwbu/HT8lfbtrz3b9fLfA4PU46m1p2cX6GUm2ZS34mEqr8FVH ZkYBBX6dDtZqUEkmqgnzSotT0ZtSXREUYPeDDmLCxaHjSzYQxCcME0oMey2AhP76gF kcrMo3vo4zJyspPatwj1V4OnRYq8DO/lHU+JZZYFLoQkXbC6S7xoJty61JMxm5/0pI zCl+wa2TLsmzN4z3cFeKJXjpsI3Fu2+iGFS6brWtQNOEs57Ws59gdJjBk0Ykh+k3lw G/YRMVgfmCPXg== Date: Thu, 19 Oct 2023 09:28:59 -0700 From: Jakub Kicinski To: Greg Kroah-Hartman Cc: stable@vger.kernel.org, patches@lists.linux.dev, Kory Maincent , Simon Horman , Sasha Levin Subject: Re: [PATCH 6.5 082/191] ethtool: Fix mod state of verbose no_mask bitset Message-ID: <20231019092859.051ca34b@kernel.org> In-Reply-To: <20231016084017.315801421@linuxfoundation.org> References: <20231016084015.400031271@linuxfoundation.org> <20231016084017.315801421@linuxfoundation.org> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 16 Oct 2023 10:41:07 +0200 Greg Kroah-Hartman wrote: > A bitset without mask in a _SET request means we want exactly the bits in > the bitset to be set. This works correctly for compact format but when > verbose format is parsed, ethnl_update_bitset32_verbose() only sets the > bits present in the request bitset but does not clear the rest. The commit > 6699170376ab fixes this issue by clearing the whole target bitmap before we > start iterating. The solution proposed brought an issue with the behavior > of the mod variable. As the bitset is always cleared the old val will > always differ to the new val. > > Fix it by adding a new temporary variable which save the state of the old > bitmap. This one got reverted / needs more work. Please drop across the branches.