summaryrefslogtreecommitdiffstats
path: root/fs/compat_binfmt_elf.c
diff options
context:
space:
mode:
authorQu Wenruo2019-05-28 10:21:54 +0200
committerDavid Sterba2019-08-07 16:42:39 +0200
commit07301df7d2fc220d3de5f7ad804dcb941400cb00 (patch)
tree729e1588e6f53c4e97d9b415153b897266f328d2 /fs/compat_binfmt_elf.c
parentBtrfs: fix sysfs warning and missing raid sysfs directories (diff)
downloadkernel-qcow2-linux-07301df7d2fc220d3de5f7ad804dcb941400cb00.tar.gz
kernel-qcow2-linux-07301df7d2fc220d3de5f7ad804dcb941400cb00.tar.xz
kernel-qcow2-linux-07301df7d2fc220d3de5f7ad804dcb941400cb00.zip
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/compat_binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions