]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: prevent exceeding xattrs limits on initial set
authorLuís Henriques <lhenriques@suse.de>
Tue, 12 Jul 2022 12:54:48 +0000 (13:54 +0100)
committerMykola Golub <mgolub@suse.com>
Fri, 3 Nov 2023 16:33:25 +0000 (18:33 +0200)
commit65238bc89ef6dfa2e4bd758b76f841d2c05d4852
tree48473fe17c536c02d15da76322f90c534482fee9
parentd3fc3487ab93087ba0dd3191df9a0d1e28091be4
mds: prevent exceeding xattrs limits on initial set

When doing a sync setxattr (MDS_OP_SETXATTR) to set the first xattr in an
inode it is possible for the client to set a huge xattr key/value that would
exceed the limit.  Prevent this from from happening by checking the size
against the maximum allowed size.

URL: https://tracker.ceph.com/issues/55725
Signed-off-by: Luís Henriques <lhenriques@suse.de>
(cherry picked from commit ca1a397cca6b39a6472b453cd393e65e339a506e)
src/mds/Server.cc