]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "btrfs: compression: drop kmap/kunmap from lzo"
authorDavid Sterba <dsterba@suse.com>
Wed, 27 Oct 2021 08:44:21 +0000 (10:44 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 29 Oct 2021 11:25:43 +0000 (13:25 +0200)
commit6103c1cc8a52cbb270de64b140faca5ba0b2ad90
tree3731205a362c6bd3103e67bec62c03e0ca03e234
parent35a368940917135d317a1958c8b6021c91f1cce0
Revert "btrfs: compression: drop kmap/kunmap from lzo"

This reverts commit a5a53b133aa5d983777c5cfade4d9b3348a477e9.

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.

The revert does not apply cleanly due to changes in ec56096a045d
("btrfs: rework lzo_decompress_bio() to make it subpage compatible")
that reworked the page iteration so the revert is done to be equivalent
to the original code.

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