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=1796238271; b=GaL228YI6eQx+NtBzCg/xEF4OCv83Br5UTWwpYHJ7LOHGsCHXdTKXw6mUfCRTAqXZxH5 OanKR8ICmKa/mXccOihmHYOpmlR0/n+VLHWuNzxjNd5MdoffwHf6H5jDcy6oVk4nz20S0 w164d5WBa/YJDj+OBxquR4HgQmH4739IUZjr0wtltSdg5F/Pl1LQWAO+qywzvk6Ga7xe5 Cm8JO8uz3eI+0AIpEZzTPCdOaLCw9SKhr4dzNIuZFrbea0aAXXrNQlJAVdIbzxqbdDu6J fr7jRjxhRc2DNCoFNMaNrYYWbiXIcYZzaZ2gXksZwkJZDGlPWdKECfpvITewLCknyZg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796238271; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=cpLhA6Q85zz/zeFSdFBtLEHQWFV+LEPS4/x6x6vnOhs=; b=OkD/cIRmOP2FqFlwWTFqKR5XxmCBtq4iK3FaEVRgJhz8uXW3tbQX9Wol9pLjQqBkLp/T 6Y1nLfl9TsqTt98Xc1hlkWKpTvPmc6zh5CIAAbPJfzm5CtBESz44bKg7dsR1O64f3ifUX ILCre7sRkcSUEJMc03dkaCb5nSqlvOV61+d4J1s2aFffzH8DNY5zArPk/tBpnSHoyrhWD N23wUHv+pBbDtzrzF9k3klWxTzBjmtZSKvclqvIyQzp37CVa4DOqOQ/D+17DpiKAluRDW KJRROL8ZUASvnLp0mSFnEaN6znPYL6kg0EB6KvUZyM8XfWZUZBKLPRVFrj8wxPstkbA== 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=MZxGClgv; 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 BF8EA606A334 for ; Wed, 2 Dec 2026 19:04:31 +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=MZxGClgv Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B5C81F00897; Wed, 2 Dec 2026 19:04:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796238271; bh=cpLhA6Q85zz/zeFSdFBtLEHQWFV+LEPS4/x6x6vnOhs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=MZxGClgvxZ2v9goTO9OgRYoyBNBKS9CQa26UrUtIG2cy3m+zC15mp7aGGsJt/oKOL 2vOzdTELlW3+T/sbwCFAoRBV55FngkFPomJcwk6djVcB7+62tif+g3Agr98Pkrcz1K p2QBzeFchggfTuT3DMKbcS7z47Z9jPzuWRCnankMGLkRuHMgNCjrry4gpzVgaul/Mz 7oxWooya5UXJsZAuPaPKomuEfeU72rHtXjsrH8+u2CtdcLa4v+w2662Xk4AGyMjk5+ h2fRhY8z6aNEv0GlS6TvKG+o0Pr2J8v/XtJYPpbrWNnA5nE5Y9rNzcP3kAFlngAM8H Q7bxat6u6bQAw== Date: Wed, 2 Dec 2026 19:04:29 +0000 From: Eric Biggers To: =?utf-8?B?5ZGo5Lyf5rGfIChXZWlqaWFuZyBaaG91KQ==?= Cc: Sami Tolvanen , Mikulas Patocka , "dm-devel@lists.linux.dev" , Alasdair Kergon , Mike Snitzer , Benjamin Marzinski , =?utf-8?B?6YeR57qi5a6HIChIb25neXUgSmluKQ==?= , =?utf-8?B?5ZC056Wl56aEIChYaWFuZ2x1IFd1KQ==?= , =?utf-8?B?5ZC05ZGo6ZWcIChKdXN0aW4gV3Up?= Subject: Re: [RFC PATCH 1/2] dm-verity: don't decode FEC into a dm_bufio page that is already in the cache Message-ID: <20261202190429.GC338490@google.com> References: <27b2dc50d3bb497ea3f3f84e7e4b271c@zeshmbx08.spreadtrum.com> <5188c1e8-c08a-2a56-7e4c-1d84aba4df35@redhat.com> <179436615557.34024.8414792860115638345@unisoc.com> <20261113053639.GA76778@sol> <6b4ac19a42ce4297ae89ae0ae2fea674@zeshmbx08.spreadtrum.com> X-Mailing-List: dm-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Weijiang, On Wed, Dec 02, 2026 at 01:05:19PM +0000, 周伟江 (Weijiang Zhou) wrote: > Hi Eric, Sami and Mikulas, > > Sorry to ping this thread again - we know this is a busy time of > year, and we are grateful for the help you have already given us. > > We are gently following up on the four-patch series we sent on Nov 19 > (as attachments in this thread), which implements the approach you > recommended: FEC decodes into the per-I/O fio->output buffer first > and populates the cache atomically through a new dm-bufio interface > (0002/0003), and the corruption policy is no longer invoked while the > erasure lookup walks the hash tree (0004). > > First, could you let us know whether that email and its attachments > reached you? Our corporate mail gateway has mangled our outbound mail > before (the lost TABs and the appended footers you saw), so if the > message or the patches arrived damaged or were filtered out, we will > gladly resend them inline. > > Second, whenever you can find a moment, we would appreciate your > comments on patches 0002-0004. We are not committed to our own > version: if you see a better approach, or if you would rather take the > series over, rework it, or replace it with something of your own, we > would much prefer the fix to come from you. On our side the stress > testing of the series is still in progress; we will share the results > as soon as it completes. I did get the patches, and it's on my long list of things to review. I've just been busy with other things, sorry. Note that attachments are not the normal way to send Linux kernel patches. Also, all your emails also have a notice at the bottom telling people to delete your emails. It would be helpful if you would resend them in the normal format as per Documentation/process/submitting-patches.rst, and also without asking for them to be deleted. Then people would be more likely to look at them. > 1. Eric, you mentioned that the shutdown workaround (upstream commit > 47930d1236d2, now also queued for the 6.12/6.18/7.3 stable trees) > had been cherry-picked to the Android Common Kernel branches. > Will it be part of the December quarterly release (QPR)? If not, > when is the next GKI build that contains it expected? Our Android > 17 projects pace their OTA plans against the GKI cadence, so even > a rough estimate would help us a lot. > > 2. About the FEC root-cause fix (our 0002-0004, or your own version > of it): our devices boot Google's GKI images, so we cannot carry > the series in our own kernel - for now it only runs on an internal > test branch for stress testing, and the fix has to reach our > devices through the ACK/GKI. On the geometries we described, a > single failed hash read reports corruption even outside shutdown, > so the timing matters to us. Is there any chance the fix could > still make it into the December QPR, or would it be a later one? > And is there anything we can do from our side to help it along? > > As always, we have devices that reproduce the issue and are glad to > verify any approach you prefer. > > Thank you again for your time and guidance. The commit is in the android16-6.12-2026-12 and android17-6.18-2026-12 release branches already. If you need it in other branches too, you could submit a GKI respin request using the process documented at source.android.com. In any case, if you have any further questions about Android / GKI specific stuff please use the partner issue tracker, as it isn't relevant to the upstream mailing lists. Thanks! - Eric