aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorDaniel Xu <[email protected]>2020-10-09 01:09:10 +0000
committerDavid Sterba <[email protected]>2020-10-26 14:03:48 +0000
commit85d07fbe09efd1c529ff3e025e2f0d2c6c96a1b7 (patch)
tree8b61245838e4906ee46098b550e1930eee222b7b /fs/btrfs/dev-replace.c
parentbtrfs: tree-checker: fix incorrect printk format (diff)
downloadkernel-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