On Fri, Dec 19, 2025 at 12:02:44PM -0800, Eric Biggers wrote: > The error handling at out_free_enc_bio is still broken, I'm afraid. > It's not taking into account that some of the pages may have been moved > into bvecs and some have not. > > I think it needs something like the following:
That will now leak the pages that were successfully added to the bio. I end up with a version that just adds the pages to the bio even on failure. I've pushed the branch here: https://git.infradead.org/?p=users/hch/misc.git;a=shortlog;h=refs/heads/blk-crypto-fallback but I plan to come up with error injection to actually test this patch given the amount of trouble it caused.
