]> 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)
commit4a3a799751839bfdc0f226636d12fc77f5c019a2
tree3731205a362c6bd3103e67bec62c03e0ca03e234
parent9f182f902cc7f1634abb6dadacacd7649c31b780
Revert "btrfs: compression: drop kmap/kunmap from lzo"

This reverts commit 77de0f81b8fdf741deab2415ed27bf27e53673cc.

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 b4377748972e
("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