[Bug 280318] fork() can deadlock on rtld_phdr_lock
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 280318] fork() can deadlock on rtld_phdr_lock"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Jul 2024 23:59:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280318
--- Comment #3 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=860c4d94ac46cee35a678cf3c9cdbd437dfed75e
commit 860c4d94ac46cee35a678cf3c9cdbd437dfed75e
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-07-17 04:05:33 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-07-29 23:57:33 +0000
rtld: add LD_NO_DL_ITERATE_PHDR_AFTER_FORK env var
which makes threaded fork ignore the phdr rtld lock, in particular
allowing the dl_iterate_phdr() to block in callback. The cost is that
the image started in this mode cannot use dl_iterate_phdr() after fork.
PR: 280318
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
libexec/rtld-elf/rtld.1 | 10 +++++++++-
libexec/rtld-elf/rtld.c | 1 +
libexec/rtld-elf/rtld.h | 1 +
libexec/rtld-elf/rtld_lock.c | 7 +++++--
4 files changed, 16 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.