diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-05-30 16:47:06 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2018-06-04 20:46:01 +0200 |
commit | 8db0c7596f1258b28f32a38f2d5bbc0d63c104c9 (patch) | |
tree | 5849eca70bc449a8514d5eb6ad6aecf8547373a9 /lib/lcm.c | |
parent | c36ed50de2ad1649ce0369a4a6fc2cc11b20dfb7 (diff) |
ceph: strengthen rsize/wsize/readdir_max_bytes validation
The check (intval < PAGE_SIZE) will involve type cast, so even when
specifying negative value to rsize/wsize/readdir_max_bytes, it will
pass the validation check successfully.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'lib/lcm.c')
0 files changed, 0 insertions, 0 deletions