On Tue, Dec 26, 2023 at 3:30 PM Chris Li <chrisl@xxxxxxxxxx> wrote: > > Again, sorry I was looking at the decompression side rather than the > compression side. The compression side does not even offer a safe > version of the compression function. > That seems to be dangerous. It seems for now we should make the zswap > roll back to 2 page buffer until we have a safe way to do compression > without overwriting the output buffers. Unfortunately, I think this is the way - at least until we rework the crypto/compression API (if that's even possible?). I still think the 2 page buffer is dumb, but it is what it is :(