]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: add additional offset check in ceph_write_iter()
authorChengguang Xu <cgxu519@gmx.com>
Thu, 19 Jul 2018 14:15:26 +0000 (22:15 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Aug 2018 19:33:28 +0000 (21:33 +0200)
commit6009b8b3c48e37f7db839cc069418ad46e9f4839
tree22a099b8e861972165e9e736c335c2ed42bfb817
parentbd07d51882a712df338496c48fbfbb1a365d4fba
ceph: add additional offset check in ceph_write_iter()

If the offset is larger or equal to both real file size and
max file size, then return -EFBIG.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/file.c