summaryrefslogtreecommitdiff
path: root/fs/btrfs/zoned.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2024-01-17 03:32:26 +0300
committerDavid Sterba <dsterba@suse.com>2024-01-19 01:43:08 +0300
commit7f2d219e78e95a137a9c76fddac7ff8228260439 (patch)
treef6d2ba99e3f8148706efd6f580a9ed9378cf0bb7 /fs/btrfs/zoned.c
parentf546c4282673497a06ecb6190b50ae7f6c85b02f (diff)
downloadlinux-7f2d219e78e95a137a9c76fddac7ff8228260439.tar.xz
btrfs: scrub: limit RST scrub to chunk boundary
[BUG] If there is an extent beyond chunk boundary, currently RST scrub would error out. [CAUSE] In scrub_submit_extent_sector_read(), we completely rely on extent_sector_bitmap, which is populated using extent tree. The extent tree can be corrupted that there is an extent item beyond a chunk. In that case, RST scrub would fail and error out. [FIX] Despite the extent_sector_bitmap usage, also limit the read to chunk boundary. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.c')
0 files changed, 0 insertions, 0 deletions