NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/56979 CVS commit: [netbsd-9] src/libexec/ld.elf_so
The following reply was made to PR lib/56979; it has been noted by GNATS.
From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/56979 CVS commit: [netbsd-9] src/libexec/ld.elf_so
Date: Sat, 1 Apr 2023 16:08:06 +0000
Module Name: src
Committed By: martin
Date: Sat Apr 1 16:08:06 UTC 2023
Modified Files:
src/libexec/ld.elf_so [netbsd-9]: rtld.c
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1624):
libexec/ld.elf_so/rtld.c: revision 1.212
ld.elf_so(8): Make fork take a shared, not exclusive, lock.
We only need to ensure that there are no concurrent modifications to
the rtld data structures in flight, since the threads that began
those modifications will not exist in the child and will therefore be
unable to complete them in the child.
A shared lock suffices to ensure there are no such concurrent
modifications in flight; an exclusive lock is not necessary, and can
cause deadlock if fork is executed from a signal handler, which is
explicitly allowed by POSIX (and our own sigaction(2) man page) which
marks fork as async-signal-safe.
PR lib/56979
To generate a diff of this commit:
cvs rdiff -u -r1.197.2.4 -r1.197.2.5 src/libexec/ld.elf_so/rtld.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