diff options
author | Qu Wenruo <wqu@suse.com> | 2024-01-17 03:32:26 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-01-19 01:43:08 +0300 |
commit | 7f2d219e78e95a137a9c76fddac7ff8228260439 (patch) | |
tree | f6d2ba99e3f8148706efd6f580a9ed9378cf0bb7 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
parent | f546c4282673497a06ecb6190b50ae7f6c85b02f (diff) | |
download | linux-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 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions