Copyright 2022 - CSIM - Asian Institute of Technology

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

Subject: [FreeBSD-Announce] FreeBSD Errata Notice FreeBSD-EN-15:17.libc
From: FreeBSD Errata Notices <This email address is being protected from spambots. You need JavaScript enabled to view it.>
Date: Wed, 16 Sep 2015 21:31:40 +0000 (UTC)

Hash: SHA512

FreeBSD-EN-15:17.libc                                           Errata Notice
                                                          The FreeBSD Project

Topic:          libc incorrectly handles signals for multi-threaded processes

Category:       core
Module:         libc
Announced:      2015-09-16
Credits:        Konstantin Belousov
Affects:        FreeBSD 10.2
Corrected:      2015-09-05 08:55:51 UTC (stable/10, 10.2-STABLE)
                2015-09-16 20:59:41 UTC (releng/10.2, 10.2-RELEASE-p3)

For general information regarding FreeBSD Errata Notices and Security
Advisories, including descriptions of the fields above, security
branches, and the following sections, please visit

I.   Background

The FreeBSD libc library is the core C runtime library which implements
the ANSI C, POSIX APIs and BSD extensions for applications on top of the
FreeBSD kernel.  The internal operations of libc change when the threading
library is loaded, ensuring service implementations are operational in
multi-threaded environments, while avoiding unnecessary overhead for
applications not utilizing threads.  The implementation of some services
is delegated to the threading library, for instance, the signal management.

II.  Problem Description

Signal-related services, such as signal(3), sigprocmask(2), and sigwait(2)
are not properly redirected to the threading library implementation when
used by libc directly.

III. Impact

The full impact of the bug is difficult to enumerate precisely based on the
nature of the problem, though some visible effects include runtime linker
hang during signal delivery, and delivery of a signal to the application
at an unexpected time.

IV.  Workaround

No workaround is available.

V.   Solution

Perform one of the following:

1) Upgrade your system to a supported FreeBSD stable or release / security
branch (releng) dated after the correction date.

2) To update your present system via a binary patch:

Systems running a RELEASE version of FreeBSD on the i386 or amd64
platforms can be updated via the freebsd-update(8) utility:

# freebsd-update fetch
# freebsd-update install

3) To update your present system via a source code patch:

The following patches have been verified to apply to the applicable
FreeBSD release branches.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch
# fetch
# gpg --verify libc.patch.asc

b) Apply the patch.  Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch

c) Recompile the operating system using buildworld and installworld as
described in <URL:>.

Reboot the system.

VI.  Correction details

The following list contains the correction revision numbers for each
affected branch.

Branch/path                                                      Revision
- -------------------------------------------------------------------------
stable/10/                                                        r287480
releng/10.2/                                                      r287872
- -------------------------------------------------------------------------

To see which files were modified by a particular revision, run the
following command, replacing NNNNNN with the revision number, on a
machine with Subversion installed:

# svn diff -cNNNNNN --summarize svn://

Or visit the following URL, replacing NNNNNN with the revision number:


VII. References

The latest revision of this Errata Notice is available at

Version: GnuPG v2.1.8 (FreeBSD)

This email address is being protected from spambots. You need JavaScript enabled to view it. mailing list
To unsubscribe, send any mail to "This email address is being protected from spambots. You need JavaScript enabled to view it."

Powered by: MHonArc

Login Form


School of Engineering and technologies     Asian Institute of Technology