diff options
| author | Gu Jinxiang <[email protected]> | 2018-07-04 18:16:39 +0800 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-08-06 13:12:55 +0200 |
| commit | 315409b0098fb2651d86553f0436b70502b29bb2 (patch) | |
| tree | 253fe1458aade4cc3ea561c2e663f173dae807dc /net/unix/af_unix.c | |
| parent | b0132a3be5daf84116833542717ff5692f51640e (diff) | |
btrfs: validate type when reading a chunk
Reported in https://bugzilla.kernel.org/show_bug.cgi?id=199839, with an
image that has an invalid chunk type but does not return an error.
Add chunk type check in btrfs_check_chunk_valid, to detect the wrong
type combinations.
Link: https://bugzilla.kernel.org/show_bug.cgi?id=199839
Reported-by: Xu Wen <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Gu Jinxiang <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions