<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib, branch releng/13.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2022-07-25T21:08:46Z</updated>
<entry>
<title>pam_exec: fix segfault when authtok is null</title>
<updated>2022-07-25T21:08:46Z</updated>
<author>
<name>Yan Ka Chiu</name>
<email>nyan@myuji.xyz</email>
</author>
<published>2022-05-22T16:33:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=277c0c4d2512228bfd25e762cc1517b216a37238'/>
<id>urn:sha1:277c0c4d2512228bfd25e762cc1517b216a37238</id>
<content type='text'>
According to pam_exec(8), the `expose_authtok` option should be ignored
when the service function is `pam_sm_setcred`. Currently `pam_exec` only
prevent prompt for anth token when `expose_authtok` is set on
`pam_sm_setcred`. This subsequently led to segfault when there isn't an
existing auth token available.

Bug reported on this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263893

After reading https://reviews.freebsd.org/rS349556 I am not sure if the
default behaviour supposed to be simply not prompt for authentication
token, or is it to ignore the option entirely as stated in the man page.

This patch is therefore only adding an additional NULL check on the item
`pam_get_item` provide, and exit with `PAM_SYSTEM_ERR` when such item is
NULL.

Approved by:	so
Security:	FreeBSD-EN-22:19.pam_exec
MFC after:	1 week
Reviewed by:	des, khng
Differential Revision:	https://reviews.freebsd.org/D35169

(cherry picked from commit b75e0eed345d2ab047a6b1b00a9a7c3bf92e992c)
(cherry picked from commit ea80848e1c0639e2ac8d3f974ddb9c6233491eb3)
</content>
</entry>
<entry>
<title>Fix libfetch out of bounds read.</title>
<updated>2021-08-24T18:00:47Z</updated>
<author>
<name>Gordon Tetlow</name>
<email>gordon@FreeBSD.org</email>
</author>
<published>2021-08-24T18:00:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=060510ba8bfba7a59908fb5aa99aa8d17d6882c8'/>
<id>urn:sha1:060510ba8bfba7a59908fb5aa99aa8d17d6882c8</id>
<content type='text'>
Approved by:	so
Security:	SA-21:15.libfetch
Security:	CVE-2021-36159
</content>
</entry>
<entry>
<title>libcasper: fix descriptors numbers</title>
<updated>2021-06-29T17:09:02Z</updated>
<author>
<name>Mariusz Zaborski</name>
<email>oshogbo@FreeBSD.org</email>
</author>
<published>2021-06-09T21:46:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ba5ed8109cc99cccd4eebb626225afc5eefa16b0'/>
<id>urn:sha1:ba5ed8109cc99cccd4eebb626225afc5eefa16b0</id>
<content type='text'>
Casper services expect that the first 3 descriptors (stdin/stdout/stderr)
will point to /dev/null. Which Casper will ensure later. The Casper
services are forked from the original process. If the initial process
closes one of those descriptors, Casper may reuse one of them for it on
purpose. If this is the case, then renumarate the descriptors used by
Casper to higher numbers. This is done already after the fork, so it
doesn't break the parent process.

Approved by:	so
Security:	EN-21:19.libcasper
PR:		255339
Reported by:	Borja Marcos &lt;borjam (at) sarenet.es&gt;
Tested by:	jkim@

(cherry picked from commit aa310ebfba3d49a0b6b03a103b969731a8136a73)
(cherry picked from commit 934e10b4a388b13c2bcd8fbac8cd8cc4a641b1b0)
</content>
</entry>
<entry>
<title>Add C++ headers &lt;barrier&gt; &lt;concepts&gt; &lt;execution&gt; &lt;latch&gt; &lt;numbers&gt; &lt;semaphore&gt;</title>
<updated>2021-06-29T17:08:58Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2021-06-03T18:53:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dac086497e50619b26d227de02b602f5350d7366'/>
<id>urn:sha1:dac086497e50619b26d227de02b602f5350d7366</id>
<content type='text'>
I missed adding these to the libc++ Makefile, when importing
llvm-project 11.0.0-rc1, even though they were supplied by upstream.

While here, update OptionalObsoleteFiles.inc to add these new headers,
and cleanup old cruft.

Approved by:	so
Security:	EN-21:18.libc++
Reported by:	yuri
Submitted by:	jkim (Makefile diff)
PR:		255374
MFC after:	3 days

(cherry picked from commit 95aa617e4bf09fcc813b1bab3d0dbf4b606807b1)
(cherry picked from commit 70e13c4cffd5ff7a70296bc5c4c3b7525c278b1d)
</content>
</entry>
<entry>
<title>libradius: Fix attribute length validation in rad_get_attr(3)</title>
<updated>2021-06-01T20:26:32Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2021-05-28T14:41:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8acc450613c31d7cb7997eeca995369109cc7742'/>
<id>urn:sha1:8acc450613c31d7cb7997eeca995369109cc7742</id>
<content type='text'>
The length of the attribute header needs to be excluded when comparing
the attribute length against the length of the packet.  Otherwise,
validation may incorrectly fail when fetching the final attribute in a
message.

Approved by:	so
Security:	FreeBSD-EN-21:17.libradius
Fixes:		8d5c78130 ("libradius: Fix input validation bugs")
Reported by:	Peter Eriksson
Tested by:	Peter Eriksson
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 6bb5699d2b59491097bc21ffa3c097cdd4853f89)
(cherry picked from commit f9972532343bb1eb101bf7afef2966972eea3b5e)
</content>
</entry>
<entry>
<title>libradius: Fix input validation bugs</title>
<updated>2021-05-26T20:36:29Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2021-05-25T17:59:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7d900abe6269af09d63746ceebe008e49454535e'/>
<id>urn:sha1:7d900abe6269af09d63746ceebe008e49454535e</id>
<content type='text'>
Approved by:	so
Security:	FreeBSD-SA-21:12.libradius
Security:	CVE-2021-29629
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 8d5c7813061dfa0b187500dfe3aeea7a28181c13)
(cherry picked from commit bec0d2c9c8413707b0fff8e65fb96aa53f149be3)
</content>
</entry>
<entry>
<title>13.0: set static __FreeBSD_version</title>
<updated>2021-04-09T00:12:37Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2021-04-09T00:12:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=df7114e92efea8c74618c228880675594400d017'/>
<id>urn:sha1:df7114e92efea8c74618c228880675594400d017</id>
<content type='text'>
Approved by:	re (implicit)
Sponsored by:	Rubicon Communications, LLC ("Netgate")
</content>
</entry>
<entry>
<title>AArch64: Don't set flush-subnormals-to-zero flag on startup</title>
<updated>2021-03-24T00:07:34Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-03-01T14:27:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f979a90f4209418a26d858ca97b1497985bda0a7'/>
<id>urn:sha1:f979a90f4209418a26d858ca97b1497985bda0a7</id>
<content type='text'>
This flag has been set on startup since 65618fdda0f272a823e6701966421bdca0efa301.
However, This causes some of the math-related tests to fail as they report
zero instead of a tiny number. This fixes at least
/usr/tests/lib/msun/ldexp_test and possibly others.
Additionally, setting this flag prevents printf() from printing subnormal
numbers in decimal form.
See also https://www.openwall.com/lists/musl/2021/02/26/1

PR:		253847
Reviewed By:	mmel
Approved by:	re (gjb)
Differential Revision: https://reviews.freebsd.org/D28938

(cherry picked from commit 0e4ff0acbe80c547988bede738af2e227c7eb47c)
(cherry picked from commit d37fb0e37814db8f76462b3b9f1fb0e6dfca6324)
</content>
</entry>
<entry>
<title>[PowerPC] [PowerPCSPE] Fix multiple issues in fpsetmask().</title>
<updated>2021-03-23T21:59:28Z</updated>
<author>
<name>Brandon Bergren</name>
<email>bdragon@FreeBSD.org</email>
</author>
<published>2021-03-01T03:06:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a9c7d90862ef1214f5d9c4455d4519eec3a34570'/>
<id>urn:sha1:a9c7d90862ef1214f5d9c4455d4519eec3a34570</id>
<content type='text'>
Building R on powerpc64 exposed a problem in fpsetmask() whereby we
were not properly clamping the provided mask to the valid range.

This same issue affects powerpc and powerpcspe.

Properly limit the range of bits that can be set via fpsetmask().

While here, use the correct fp_except_t type instead of fp_rnd_t.

Reported by:	pkubaj, jhibbits (in IRC)
Sponsored by:	Tag1 Consulting, Inc.
Approved by:	re (gjb) (Post-RC3 outstanding request approved for RC4)

(cherry picked from commit 384ee7cc6e9e4ddc91a6e9e623fcbbe5826bce38)
(cherry picked from commit 8b96d6ac04e7e761ec6b9eff47c801a2b89fbd6d)
</content>
</entry>
<entry>
<title>[PowerPC64] Fix multiple issues in fpsetmask().</title>
<updated>2021-03-23T21:50:14Z</updated>
<author>
<name>Brandon Bergren</name>
<email>bdragon@FreeBSD.org</email>
</author>
<published>2021-03-01T02:35:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=064f09616c6745e96321313a6bebe0872f242eac'/>
<id>urn:sha1:064f09616c6745e96321313a6bebe0872f242eac</id>
<content type='text'>
Building R exposed a problem in fpsetmask() whereby we were not properly
clamping the provided mask to the valid range.

R initilizes the mask by calling fpsetmask(~0) on FreeBSD. Since we
recently enabled precise exceptions, this was causing an immediate
SIGFPE because we were attempting to set invalid bits in the fpscr.

Properly limit the range of bits that can be set via fpsetmask().

While here, use the correct fp_except_t type instead of fp_rnd_t.

Reported by:	pkubaj (in IRC)
Sponsored by:	Tag1 Consulting, Inc.
Approved by:	re (gjb) (Post-RC3 outstanding request approved for RC4)

(cherry picked from commit dd95b39235dd81c890aa3cce02a5bb7f91f23803)
(cherry picked from commit a79735386c46298274d71577ab6b4dd00be261cc)
</content>
</entry>
</feed>
