Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libbsdmalloc



Module Name:    src
Committed By:   riastradh
Date:           Tue Apr 28 13:02:10 UTC 2026

Modified Files:
        src/lib/libbsdmalloc: malloc.c

Log Message:
libbsdmalloc: Use mutex_init, not mutex_unlock, in child post-fork.

Using mutex_unlock may try to wake a thread that doesn't exist in the
child, which could lead to trouble such as crash or deadlock.  But
since the child is single-threaded, it is safe to just reinitialize
the mutex memory anyway.

PR lib/59237: postfork mutex audit: mutex_init, not mutex_unlock


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libbsdmalloc/malloc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index