[PATCH] malloc: Fix ABBA deadlock in fork handlers
Florian Weimer
fweimer@redhat.com
Mon May 11 06:41:30 GMT 2026
* Cuishuangjin:
> - Solution: Weaken definitions of __malloc_fork_lock_parent,
> __malloc_fork_unlock_parent, and _ _malloc_fork_unlock_child in glibc
> 2.38-50 to prevent hard-linking inconsistencies. Strengthen
> malloc_lock management in __register_atfork prepare_handler functions
> for ptmalloc and tcmalloc libraries.
The patch was garbled, but according to the diff summary, it did not
contain changes like that.
Is this for bug 34021?
The key part is that this involves a custom malloc. The commit message
must mention that. The “Replacing malloc” section in the manual needs
to document the new interface. Depending on how this is implemented,
you need to add GLIBC_2.44 symbol versions for the new interfaces and
update the *.abilist files.
Thanks,
Florian
More information about the Libc-alpha
mailing list