summaryrefslogtreecommitdiffstats
path: root/fs/crypto/keyinfo.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2019-05-28 16:21:54 +0800
committerDavid Sterba <dsterba@suse.com>2019-08-07 16:42:39 +0200
commit07301df7d2fc220d3de5f7ad804dcb941400cb00 (patch)
tree729e1588e6f53c4e97d9b415153b897266f328d2 /fs/crypto/keyinfo.c
parentd7cd4dd907c19c0295829c947d79afa290b6fc24 (diff)
downloadlinux-07301df7d2fc220d3de5f7ad804dcb941400cb00.tar.bz2
btrfs: trim: Check the range passed into to prevent overflow
Normally the range->len is set to default value (U64_MAX), but when it's not default value, we should check if the range overflows. And if it overflows, return -EINVAL before doing anything. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/crypto/keyinfo.c')
0 files changed, 0 insertions, 0 deletions