Qu Wenruo
7ef49515fa
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>
2018-08-06 13:13:03 +02:00
..
2018-08-06 13:12:52 +02:00
2018-08-06 13:12:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:01 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:39 +02:00
2018-08-06 13:12:44 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:56 +02:00
2018-05-29 18:13:00 +02:00
2018-08-06 13:12:41 +02:00
2018-08-06 13:13:01 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:00 +02:00
2018-08-06 13:13:00 +02:00
2018-08-06 13:12:39 +02:00
2018-08-06 13:12:34 +02:00
2018-08-06 13:13:01 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:00 +02:00
2018-08-06 13:12:59 +02:00
2018-08-06 13:12:55 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:56 +02:00
2018-08-06 13:12:56 +02:00
2018-05-28 18:07:17 +02:00
2018-05-28 18:07:17 +02:00
2018-08-06 13:13:03 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:13:02 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:00 +02:00
2018-05-28 18:07:36 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:02 +02:00
2018-08-06 13:13:02 +02:00
2018-04-12 16:29:55 +02:00
2018-05-28 18:23:09 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:43 +02:00
2018-03-26 15:09:39 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:12:31 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:12:41 +02:00
2018-04-20 19:18:16 +02:00
2018-05-17 14:18:25 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:00 +02:00
2018-08-06 13:12:53 +02:00
2018-08-06 13:12:45 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:13:02 +02:00
2018-08-06 13:13:00 +02:00
2018-08-06 13:13:02 +02:00
2018-08-06 13:13:03 +02:00
2018-04-12 16:29:46 +02:00
2018-08-06 13:12:43 +02:00
2018-08-06 13:13:02 +02:00
2018-08-06 13:12:43 +02:00
2018-05-28 18:23:39 +02:00
2018-08-06 13:13:02 +02:00
2018-08-06 13:12:29 +02:00
2018-08-06 13:12:42 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-08-06 13:13:02 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-05-30 16:46:53 +02:00
2018-08-06 13:13:02 +02:00
2018-08-06 13:12:58 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:51 +02:00