[PATCH] Btrfs extent_same (dedup) ioctl fixes

DORMANTno replies

From: fdmanana@kernel.org
Date: 2016-02-01 13:48:35

From: Filipe Manana <redacted>

Hi Chris,

Please consider the following fixes for the extent_same ioctl. They fix
issues related to missing proper page and range locking, which lead to
invalid memory accesses and other unexpected failures (such as data
checksum validation failures, on perfectly healthy hardware, making
the ioctl fail with a non sense -ENOMEM error).
The last patch just removes a function not needed anymore after the two
fixes. I've tagged the two fixes for stable releases.
These were all previously sent to the mailing list.

Thanks.

The following changes since commit e410e34fad913dd568ec28d2a9949694324c14db:

  Revert "btrfs: synchronize incompat feature bits with sysfs files" (2016-01-29 08:19:37 -0800)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/fdmanana/linux.git extent_same_fixes

for you to fetch changes up to 30b809be1e150f91c5bbaf74d6a23bc81b37e2d9:

  Btrfs: remove no longer used function extent_read_full_page_nolock() (2016-01-30 17:54:25 +0000)

----------------------------------------------------------------
Filipe Manana (3):
      Btrfs: fix invalid page accesses in extent_same (dedup) ioctl
      Btrfs: fix page reading in extent_same ioctl leading to csum errors
      Btrfs: remove no longer used function extent_read_full_page_nolock()

 fs/btrfs/compression.c |   6 +-----
 fs/btrfs/extent_io.c   |  45 +++++++++++----------------------------------
 fs/btrfs/extent_io.h   |   3 ---
 fs/btrfs/ioctl.c       | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------
 4 files changed, 109 insertions(+), 64 deletions(-)

-- 
2.7.0.rc3
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help