diff options
| author | Daniel Xu <[email protected]> | 2020-10-09 01:09:10 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2020-10-26 14:03:48 +0000 |
| commit | 85d07fbe09efd1c529ff3e025e2f0d2c6c96a1b7 (patch) | |
| tree | 8b61245838e4906ee46098b550e1930eee222b7b /fs/btrfs/dev-replace.c | |
| parent | btrfs: tree-checker: fix incorrect printk format (diff) | |
| download | kernel-85d07fbe09efd1c529ff3e025e2f0d2c6c96a1b7.tar.gz kernel-85d07fbe09efd1c529ff3e025e2f0d2c6c96a1b7.zip | |
btrfs: tree-checker: validate number of chunk stripes and parity
If there's no parity and num_stripes < ncopies, a crafted image can
trigger a division by zero in calc_stripe_length().
The image was generated through fuzzing.
CC: [email protected] # 5.4+
Reviewed-by: Qu Wenruo <[email protected]>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=209587
Signed-off-by: Daniel Xu <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
