aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.h
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2018-08-01 10:37:17 +0800
committerDavid Sterba <dsterba@suse.com>2018-08-06 13:13:03 +0200
commit7ef49515fa6727cb4b6f2f5b0ffbc5fc20a9f8c6 (patch)
tree2013a3d439113c58479b799561e07dfb5d072b02 /fs/btrfs/volumes.h
parentbtrfs: Check that each block group has corresponding chunk at mount time (diff)
downloadlinux-dev-7ef49515fa6727cb4b6f2f5b0ffbc5fc20a9f8c6.tar.xz
linux-dev-7ef49515fa6727cb4b6f2f5b0ffbc5fc20a9f8c6.zip
btrfs: Verify that every chunk has corresponding block group at mount time
If a crafted image has missing block group items, it could cause unexpected behavior and breaks the assumption of 1:1 chunk<->block group mapping. Although we have the block group -> chunk mapping check, we still need chunk -> block group mapping check. This patch will do extra check to ensure each chunk has its corresponding block group. Link: https://bugzilla.kernel.org/show_bug.cgi?id=199847 Reported-by: Xu Wen <wen.xu@gatech.edu> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Gu Jinxiang <gujx@cn.fujitsu.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.h')
0 files changed, 0 insertions, 0 deletions