[OpenSIPS-Devel] [OpenSIPS/opensips] 1e3350: HP_MALLOC: Fix a shm_realloc() concurrency issue
Liviu Chircu
noreply at github.com
Tue Feb 4 11:19:13 EST 2020
Branch: refs/heads/3.0
Home: https://github.com/OpenSIPS/opensips
Commit: 1e3350c80098b0a17bf371c17fa39a4c17f81e23
https://github.com/OpenSIPS/opensips/commit/1e3350c80098b0a17bf371c17fa39a4c17f81e23
Author: Liviu Chircu <liviu at opensips.org>
Date: 2020-02-04 (Tue, 04 Feb 2020)
Changed paths:
M mem/hp_malloc_dyn.h
Log Message:
-----------
HP_MALLOC: Fix a shm_realloc() concurrency issue
On a fragment shrink operation, we must also grab the lock on the
resulting fragment before inserting it (this cannot be an _unsafe
operation!)
Many thanks to 46Labs and Răzvan Crainea for helping troubleshoot this
(cherry picked from commit ff7ba6e2dd05fbc4989561d7a4582cb11cbb01ba)
More information about the Devel
mailing list