summaryrefslogtreecommitdiffstats
path: root/fs/notify
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2024-01-17 11:02:26 +1030
committerDavid Sterba <dsterba@suse.com>2024-01-18 23:43:08 +0100
commit7f2d219e78e95a137a9c76fddac7ff8228260439 (patch)
treef6d2ba99e3f8148706efd6f580a9ed9378cf0bb7 /fs/notify
parentf546c4282673497a06ecb6190b50ae7f6c85b02f (diff)
downloadlinux-stable-7f2d219e78e95a137a9c76fddac7ff8228260439.tar.gz
linux-stable-7f2d219e78e95a137a9c76fddac7ff8228260439.tar.bz2
linux-stable-7f2d219e78e95a137a9c76fddac7ff8228260439.zip
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/notify')
0 files changed, 0 insertions, 0 deletions