]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "btrfs: compression: drop kmap/kunmap from zlib"
authorDavid Sterba <dsterba@suse.com>
Wed, 27 Oct 2021 08:42:43 +0000 (10:42 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 29 Oct 2021 11:03:05 +0000 (13:03 +0200)
commit9f182f902cc7f1634abb6dadacacd7649c31b780
tree52773e8ed8c8e6350417dc1a137f7026256f09c3
parent9c9c827c8176b429d22fa1902a7c0bfc6194e4ad
Revert "btrfs: compression: drop kmap/kunmap from zlib"

This reverts commit 477115c08c6af611436ced7eb2386f11deb844bd.

The kmaps in compression code are still needed and cause crashes on
32bit machines (ARM, x86). Reproducible eg. by running fstest btrfs/004
with enabled LZO or ZSTD compression.

Link: https://lore.kernel.org/all/CAJCQCtT+OuemovPO7GZk8Y8=qtOObr0XTDp8jh4OHD6y84AFxw@mail.gmail.com/
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=214839
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zlib.c