NetBSD-Bugs archive

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

PR/59237 CVS commit: src/lib/libc/gen



The following reply was made to PR lib/59237; it has been noted by GNATS.

From: "Taylor R Campbell" <riastradh%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/59237 CVS commit: src/lib/libc/gen
Date: Tue, 28 Apr 2026 13:01:25 +0000

 Module Name:	src
 Committed By:	riastradh
 Date:		Tue Apr 28 13:01:25 UTC 2026
 
 Modified Files:
 	src/lib/libc/gen: arc4random.c
 
 Log Message:
 arc4random(3): 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.50 -r1.51 src/lib/libc/gen/arc4random.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