]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/rbd_mirror: clear Namespace::s_instance at the end of a test 61880/head
authorIlya Dryomov <idryomov@gmail.com>
Tue, 18 Feb 2025 16:51:47 +0000 (17:51 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 18 Feb 2025 18:38:13 +0000 (19:38 +0100)
commitc0f5359b7b47bb424d700f69a2af43ab81fa87c2
treed66392e563d891d35607886303ba0cbc0a726352
parent466112e71cac691803fb78883a6ce26140a115fc
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>
src/test/rbd_mirror/test_mock_PoolReplayer.cc