foundationdb/fdbserver
Andrew Noyes 475ed4b1dc
Improve memory safety (#8069)
* Move arena members to the end of serializer calls

See
https://github.com/apple/foundationdb/tree/main/flow#flatbuffersobjectserializer
for why this is necessary.

* Fix a heap-use-after-free

Previously memory owned by
EncryptKeyProxyData::baseCipherDomainIdKeyIdCache was borrowed by a call
to EncryptKeyProxyData::insertIntoBaseDomainIdCache where it was
invalidated and then used. Now
EncryptKeyProxyData::insertIntoBaseDomainIdCache takes shared ownership
by taking a Standalone.

And also rename some types to end in Ref to follow the flow conventions
described here: https://github.com/apple/foundationdb/tree/main/flow#arenas
2022-09-01 12:47:03 -07:00
..
coroimpl fdbserver compiling (but linking still fails) 2022-06-27 18:54:58 -06:00
include/fdbserver Improve memory safety (#8069) 2022-09-01 12:47:03 -07:00
workloads move tenant entry cache to client 2022-09-01 10:10:47 -07:00
ApplyMetadataMutation.cpp Make encrypted mutation serialize as normal mutations 2022-08-09 19:16:26 -07:00
BackupProgress.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
BackupWorker.actor.cpp refactor ekp interface 2022-08-23 23:04:12 -07:00
BlobGranuleServerCommon.actor.cpp Blob granule summary implementation (in native client) (#7981) 2022-08-26 14:04:59 -05:00
BlobGranuleValidation.actor.cpp Blob granule summary implementation (in native client) (#7981) 2022-08-26 14:04:59 -05:00
BlobManager.actor.cpp Adding knob and increasing delay for simulation ratekeeper throttling assert 2022-08-31 09:08:27 -05:00
BlobWorker.actor.cpp Improve memory safety (#8069) 2022-09-01 12:47:03 -07:00
CMakeLists.txt Fix ASAN build (#7629) 2022-07-20 14:14:46 -07:00
ClusterController.actor.cpp Fix: an old ratekeeper process could continue running indefinitely (#8020) 2022-08-29 17:34:15 -05:00
ClusterRecovery.actor.cpp Use event holder 2022-08-31 21:48:44 -07:00
CommitProxyServer.actor.cpp Improve memory safety (#8069) 2022-09-01 12:47:03 -07:00
ConfigBroadcaster.actor.cpp Reenable status json for dynamic knobs, add unit test 2022-06-21 11:43:05 -07:00
ConfigDatabaseUnitTests.actor.cpp Reenable status json for dynamic knobs, add unit test 2022-06-21 11:43:05 -07:00
ConfigFollowerInterface.cpp Fix ConfigFollowerInterface constructor. 2022-04-08 14:21:49 -07:00
ConfigNode.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
CoordinatedState.actor.cpp Add -r changeclusterkey tool for snapshot restore (#7687) 2022-07-25 22:12:28 -07:00
Coordination.actor.cpp initalize values 2022-07-27 17:29:10 -07:00
DDRelocationQueue.actor.cpp Revert "Apply clang format" 2022-08-23 19:12:57 +02:00
DDShardTracker.actor.cpp Revert "Apply clang format" 2022-08-23 19:12:57 +02:00
DDTeamCollection.actor.cpp Merge branch 'main' of https://github.com/apple/foundationdb into feature/main/wiggler-tss 2022-08-12 15:27:50 -07:00
DDTxnProcessor.actor.cpp call removeStorageServer and removeKeysFromFailedServer from txnProcessor 2022-08-18 11:44:27 -07:00
DataDistribution.actor.cpp Merge pull request #7926 from sfc-gh-xwang/refactor/main/portEnableState 2022-08-19 13:27:57 -07:00
DiskQueue.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
EncryptKeyProxy.actor.cpp Improve memory safety (#8069) 2022-09-01 12:47:03 -07:00
FDBExecHelper.actor.cpp Avoid duplicate snapshot on one process if it serves as multiple roles (#7294) 2022-06-29 11:23:07 -07:00
GlobalTagThrottler.actor.cpp Increase timeout for GlobalTagThrottler unit tests to 600 seconds 2022-08-30 17:31:48 -07:00
GrvProxyServer.actor.cpp Revert "Apply clang format" 2022-08-23 19:12:57 +02:00
IConfigConsumer.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
KeyValueStoreCompressTestData.actor.cpp update trState ReadOption to optional 2022-08-24 15:04:17 -07:00
KeyValueStoreMemory.actor.cpp Merge pull request #7406 from sfc-gh-fzhao/RedwoodDataMovementNonCacheRead 2022-08-30 17:25:05 -07:00
KeyValueStoreRocksDB.actor.cpp update trState ReadOption to optional 2022-08-24 15:04:17 -07:00
KeyValueStoreSQLite.actor.cpp update trState ReadOption to optional 2022-08-24 15:04:17 -07:00
KeyValueStoreShardedRocksDB.actor.cpp Add knob for CF write buffer size. (#8038) 2022-08-30 17:52:29 -07:00
KnobProtectiveGroups.cpp fixup! Let invalid knob in toml not raising ASSERT but a TraceEvent 2022-03-17 16:53:10 -07:00
LatencyBandConfig.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
LeaderElection.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
LocalConfiguration.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
LogRouter.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
LogSystem.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
LogSystemConfig.cpp Merge branch 'main-4a085fc84' into vv 2022-03-30 22:28:06 -07:00
LogSystemDiskQueueAdapter.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
LogSystemPeekCursor.actor.cpp Handling request_maybe_delivered in reply promise stream and injecting faults to make sure the code path is exercised 2022-09-01 12:57:09 -05:00
MetricLogger.actor.cpp Merge pull request #7620 from sfc-gh-ajbeamon/make-tuple 2022-07-20 17:09:10 -07:00
MoveKeys.actor.cpp Change SHARD_ENCODE_LOCATION_METADATA to a server knob. (#7770) 2022-08-03 13:51:40 -07:00
MutationTracking.cpp address comments 2022-08-09 19:16:28 -07:00
OldTLogServer_4_6.actor.cpp Fix ScopeEventFieldTypeMismatch error for TLogMetrics 2022-07-19 22:27:29 -07:00
OldTLogServer_6_0.actor.cpp Increase AllTags field length in TLogReady 2022-07-20 13:17:21 -07:00
OldTLogServer_6_2.actor.cpp Increase AllTags field length in TLogReady 2022-07-20 13:17:21 -07:00
OnDemandStore.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
PaxosConfigConsumer.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
QuietDatabase.actor.cpp Added throttling when a blob worker falls behind (#7751) 2022-08-12 13:15:56 -07:00
RESTKmsConnector.actor.cpp Improve memory safety (#8069) 2022-09-01 12:47:03 -07:00
Ratekeeper.actor.cpp Adding knob and increasing delay for simulation ratekeeper throttling assert 2022-08-31 09:08:27 -05:00
RemoteIKeyValueStore.actor.cpp Merge pull request #7406 from sfc-gh-fzhao/RedwoodDataMovementNonCacheRead 2022-08-30 17:25:05 -07:00
ResolutionBalancer.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
Resolver.actor.cpp address pr comments 2022-08-02 10:51:41 -07:00
RestoreApplier.actor.cpp Merge branch 'main' into feature-metacluster 2022-07-06 15:44:21 -07:00
RestoreCommon.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
RestoreController.actor.cpp Add proxy option to backup and restore params. 2022-03-28 17:10:49 -07:00
RestoreLoader.actor.cpp Make encrypted mutation serialize as normal mutations 2022-08-09 19:16:26 -07:00
RestoreRoleCommon.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
RestoreUtil.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
RestoreWorker.actor.cpp moved wellknownendpoints and fixed some includes 2022-06-23 17:03:53 -06:00
RestoreWorkerInterface.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
RkTagThrottleCollection.cpp Update fdbserver/RkTagThrottleCollection.cpp 2022-08-22 13:00:29 -07:00
RocksDBCheckpointUtils.actor.cpp Fixed memory leak for RocksDb and CheckpointReader. (#7665) 2022-07-25 12:36:29 -07:00
RoleLineage.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
ServerCheckpoint.actor.cpp ServerCheckpoint.actor.* 2022-05-19 13:27:21 -07:00
ShardsAffectedByTeamFailure.cpp create ShardsAffectedByTeamFailure.h 2022-07-29 15:12:15 -07:00
SigStack.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
SimKmsConnector.actor.cpp Improve memory safety (#8069) 2022-09-01 12:47:03 -07:00
SimpleConfigConsumer.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
SimulatedCluster.actor.cpp Support Redwood encryption (#7376) 2022-08-31 12:19:55 -07:00
SkipList.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
Status.actor.cpp Remove global_tag_throttler status section 2022-08-29 23:17:20 -07:00
StorageCache.actor.cpp Merge pull request #7406 from sfc-gh-fzhao/RedwoodDataMovementNonCacheRead 2022-08-30 17:25:05 -07:00
StorageMetrics.actor.cpp Fix formatting in StorageMetrics.* files 2022-08-29 10:02:29 -07:00
TCInfo.actor.cpp Shard based move (#6981) 2022-07-07 20:49:16 -07:00
TLogServer.actor.cpp 2 TLog stopped bug fixes - one setting stop from dbinfo, the other handling a race between peek and stopping (#8001) 2022-08-29 15:25:29 -05:00
TSSMappingUtil.actor.cpp Add support for returning whether a key-backed type range read has more results or not. 2022-07-13 15:46:10 -07:00
TagPartitionedLogSystem.actor.cpp Log tlog initialization 2022-07-21 13:54:44 -07:00
TagThrottler.actor.cpp Addressed review comments 2022-08-10 21:44:12 -03:00
TenantCache.actor.cpp Testing upgrades to a future version of FDB (#7780) 2022-08-08 17:29:49 +02:00
TransactionTagCounter.cpp fixup! Update per comments 2022-08-01 18:56:50 -07:00
VFSAsync.cpp fdbserver compiling (but linking still fails) 2022-06-27 18:54:58 -06:00
VersionedBTree.actor.cpp Support Redwood encryption (#7376) 2022-08-31 12:19:55 -07:00
WaitFailure.actor.cpp Make TEST macros C++ only (#7558) 2022-07-19 13:15:51 -07:00
fdbserver.actor.cpp Support Redwood encryption (#7376) 2022-08-31 12:19:55 -07:00
masterserver.actor.cpp Remove a unit test which invokes undefined behavior (#7937) 2022-08-19 14:44:33 -07:00
networktest.actor.cpp Handling request_maybe_delivered in reply promise stream and injecting faults to make sure the code path is exercised 2022-09-01 12:57:09 -05:00
pubsub.actor.cpp Update copyright header dates 2022-03-21 13:36:23 -07:00
storageserver.actor.cpp Merge pull request #8061 from sfc-gh-jslocum/ss_ebrake_speed_up_sim 2022-08-31 15:54:41 -05:00
tester.actor.cpp implemented testClass and testPriority 2022-08-22 09:57:44 -06:00
worker.actor.cpp Support Redwood encryption (#7376) 2022-08-31 12:19:55 -07:00