Re: [PATCH v2 12/15] lib/lz4: widen LZ4_DECOMPRESS_INPLACE_MARGIN for the fast decode loop

From: S. Biplab Raut

Date: Wed Nov 18 2026 - 13:36:22 EST


With the whole of v2 applied on v7.3-rc4, the in-place cases of the
lib/lz4 KUnit tests I posted in this thread pass on UML, i386, and
x86_64 under QEMU with KASAN and KASAN_VMALLOC. They include a fixed
block that corrupts in place with the old + 32 margin and decodes
cleanly with this patch's + 36.

In userspace, against the vendored v1.10.0 decoder, I saw no in-place
corruption at + 36 in 600000 random streams, nor in a port of upstream's
worst-case in-place test for any source size from 300 to 4096.

Tested-by: S. Biplab Raut <Biplab.Raut@xxxxxxx>