Re: [PATCH] btrfs: zlib: zero-initialize zlib workspace

From: David Sterba
Date: Tue Jan 24 2023 - 12:07:02 EST


On Tue, Jan 24, 2023 at 12:32:34PM +0100, Alexander Potapenko wrote:
> KMSAN reports uses of uninitialized memory in zlib's longest_match()
> called on memory originating from zlib_alloc_workspace().
> This issue is known by zlib maintainers and is claimed to be harmless,
> but to be on the safe side we'd better initialize the memory.
>
> Link: https://zlib.net/zlib_faq.html#faq36
> Reported-by: syzbot+14d9e7602ebdf7ec0a60@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Alexander Potapenko <glider@xxxxxxxxxx>

Added to misc-next, thanks.