]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs: fix write_buf's _len overflow problem 16103/head
authorYang Honggang <joseph.yang@xtaotech.com>
Thu, 13 Apr 2017 12:09:07 +0000 (20:09 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 4 Jul 2017 11:06:29 +0000 (13:06 +0200)
commitbee73d2429628e7d27cf9b1ca67eb5d5f049f285
tree2127c5b5e7ed4ca7467ee226b51c53d7d62a7e53
parent8452c0c134a1cae30ac9e80eb7e08c6e54b16239
cephfs: fix write_buf's _len overflow problem

After I have set about 400 64KB xattr kv pair to a file,
mds is crashed. Every time I try to start mds, it will crash again.
The root reason is write_buf._len overflowed when doing
Journaler::append_entry().

This patch try to fix this problem through the following changes:

 1. limit file/dir's xattr size
 2. throttle journal entry append operations

Fixes: http://tracker.ceph.com/issues/19033
Signed-off-by: Yang Honggang joseph.yang@xtaotech.com
(cherry picked from commit eb915d0eeccbe523f8f70f6571880003ff459459)
src/common/config_opts.h
src/mds/Server.cc
src/osdc/Journaler.cc
src/osdc/Journaler.h