commit | 8db0c7596f1258b28f32a38f2d5bbc0d63c104c9 | [log] [tgz] |
---|---|---|
author | Chengguang Xu <cgxu519@gmx.com> | Wed May 30 16:47:06 2018 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Jun 04 20:46:01 2018 +0200 |
tree | 5849eca70bc449a8514d5eb6ad6aecf8547373a9 | |
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>