[MXS-1847] Race condition in server_get_parameter Created: 2018-05-02  Updated: 2018-05-04  Resolved: 2018-05-03

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 2.2.5
Fix Version/s: 2.2.6

Type: Bug Priority: Minor
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

The return value of server_get_parameter function is retrieved without locking the server. In addition to this, the pointed to value is used instead of it being copied locally. This can cause reads of freed memory if server parameters are freed at runtime. The returned value can be a stale value as no locking is performed.

The updating of server parameters in config_runtime.cc can cause a parameter to be temporarily lost while it is being updated. In other words, the update is not fully atomic.


Generated at Thu Feb 08 04:09:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.