btrfs: zlib: zero-initialize zlib workspace
commit eadd7dec upstream. 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@syzkaller.appspotmail.com> CC: stable@vger.kernel.org # 5.4+ Signed-off-by:
Alexander Potapenko <glider@google.com> Reviewed-by:
David Sterba <dsterba@suse.com> Signed-off-by:
David Sterba <dsterba@suse.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Please register or sign in to comment