[OpenSIPS-Devel] [OpenSIPS/opensips] ff7ba6: HP_MALLOC: Fix a shm_realloc() concurrency issue

Liviu Chircu noreply at github.com
Tue Feb 4 11:18:45 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ff7ba6e2dd05fbc4989561d7a4582cb11cbb01ba
      https://github.com/OpenSIPS/opensips/commit/ff7ba6e2dd05fbc4989561d7a4582cb11cbb01ba
  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





More information about the Devel mailing list