]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit55276e14df4324ade34583adef110e11d249fb7b
tree52773e8ed8c8e6350417dc1a137f7026256f09c3
parent56ee254d23c59fd48fb6f192d79858f60cfe2bf6
Revert "btrfs: compression: drop kmap/kunmap from zlib"

This reverts commit 696ab562e6df9fbafd6052d8ce4aafcb2ed16069.

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