diff options
| author | Qu Wenruo <[email protected]> | 2018-08-01 02:37:20 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-08-06 11:13:03 +0000 |
| commit | 64f64f43c89aca1782aa672e0586f6903c5d8979 (patch) | |
| tree | faf9455a54d072d1ba33ece10942f4ead8e5b477 /fs/jbd2/commit.c | |
| parent | btrfs: Introduce mount time chunk <-> dev extent mapping check (diff) | |
| download | kernel-64f64f43c89aca1782aa672e0586f6903c5d8979.tar.gz kernel-64f64f43c89aca1782aa672e0586f6903c5d8979.zip | |
btrfs: Exit gracefully when chunk map cannot be inserted to the tree
It's entirely possible that a crafted btrfs image contains overlapping
chunks.
Although we can't detect such problem by tree-checker, it's not a
catastrophic problem, current extent map can already detect such problem
and return -EEXIST.
We just only need to exit gracefully and fail the mount.
Reported-by: Xu Wen <[email protected]>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=200409
Signed-off-by: Qu Wenruo <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
