Re: [GIT PULL] Btrfs changes for 4.15

From: David Sterba
Date: Tue Nov 14 2017 - 09:52:32 EST


On Tue, Nov 14, 2017 at 07:39:11AM +0800, Qu Wenruo wrote:
> > - extend mount options to specify zlib compression level, -o compress=zlib:9
>
> However the support for it has a big problem, it will cause wild memory
> access for "-o compress" mount option.
>
> Kernel ASAN can detect it easily and we already have user report about
> it. Btrfs/026 could also easily trigger it.
>
> The fixing patch is submitted some days ago:
> https://patchwork.kernel.org/patch/10042553/
>
> And the default compression level when not specified is zero, which
> means no compression but directly memory copy.

This fix will go in next pull request. Thanks.