]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/rbd_mirror: clear Namespace::s_instance at the end of a test 61959/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 18 Feb 2025 16:51:47 +0000 (17:51 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 22 Feb 2025 15:18:41 +0000 (16:18 +0100)
commit11da82024baf107cc098d33c3388974fb7e719a4
treed9c3de815672a02abcdad194f074e756c45224a9
parent4652246b03ab4dc8f4d5f87b5cd2663d6cb8af74
test/rbd_mirror: clear Namespace::s_instance at the end of a test

TestMockPoolReplayer.Namespaces and NamespacesError tests leave behind
a dangling pointer to a stack-allocated MockNamespace which leads to an
easily reproducible use-after-free and segfault when tests are shuffled.

Fixes: https://tracker.ceph.com/issues/70041
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit c0f5359b7b47bb424d700f69a2af43ab81fa87c2)
src/test/rbd_mirror/test_mock_PoolReplayer.cc