diff options
author | Adam Borowski <kilobyte@angband.pl> | 2016-05-08 15:08:00 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-09 11:51:19 +0200 |
commit | 8eb0dfdbda3f56bf7d248ed87fcc383df114ecbb (patch) | |
tree | 94790c517b62412cf192002fbf2a454db3742472 /fs/btrfs/compression.c | |
parent | 2f3165ecf103599f82bf0ea254039db335fb5005 (diff) |
btrfs: fix int32 overflow in shrink_delalloc().
UBSAN: Undefined behaviour in fs/btrfs/extent-tree.c:4623:21
signed integer overflow:
10808 * 262144 cannot be represented in type 'int [8]'
If 8192<=items<16384, we request a writeback of an insane number of pages
which is benign (everything will be written). But if items>=16384, the
space reservation won't be enough.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions