summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@gmx.com>2018-08-05 07:33:01 -0400
committerIlya Dryomov <idryomov@gmail.com>2018-08-13 11:55:43 -0400
commit36a4c72d1c6f5f50d4db14a38f296855ae82571b (patch)
tree0ba22abf9482dc9ad7abadd18f1b2b1ede2ff95a /block
parent8687a3e2c7a026c173ac2e0d65d869c98c154a3a (diff)
ceph: add additional size check in ceph_setattr()
ceph_setattr() finally calls vfs function inode_newsize_ok() to do offset validation and that is based on sb->s_maxbytes. Because we set sb->s_maxbytes to MAX_LFS_FILESIZE to through VFS check and do proper offset validation in cephfs level, we need adding proper offset validation before calling inode_newsize_ok(). Signed-off-by: Chengguang Xu <cgxu519@gmx.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions