]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/fsmap: proper update of filesystems 46371/head
authorAliaksei Makarau <aliaksei.makarau@ibm.com>
Tue, 31 May 2022 07:24:19 +0000 (09:24 +0200)
committerAliaksei Makarau <aliaksei.makarau@ibm.com>
Tue, 31 May 2022 07:24:19 +0000 (09:24 +0200)
commit80d5dcb4c6a4b2e5d6079dfb62d86b37326b6cc4
tree9627185c6344a3a869f28fd99877fc9f05f6eaaf
parent51969f86a25a42b29f5c768867b0437bc3148d2b
mds/fsmap: proper update of filesystems

Segfault was triggered by the fs/multifs test.
The problem is in potential undefined behaviour
afer erasing element and iterator invalidation in
FSMap::stop() and FSMap::erase().
Fixed by decoupling element removal from the loop.

Fixes: https://tracker.ceph.com/issues/55620
Signed-off-by: Aliaksei Makarau <aliaksei.makarau@ibm.com>
src/mds/FSMap.cc