<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/libexec, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>http://cgit.freebsd.org/src/atom?h=main</id>
<link rel='self' href='http://cgit.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<updated>2026-08-03T16:47:32Z</updated>
<entry>
<title>rtld: fix indentation of multiline conditional</title>
<updated>2026-08-03T16:47:32Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2026-07-17T09:08:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6880edbfd5aa1fbe96ffdf53e323807e18b8dc53'/>
<id>urn:sha1:6880edbfd5aa1fbe96ffdf53e323807e18b8dc53</id>
<content type='text'>
Fixes:		7e2f38311e62 ("rtld-elf/rtld.c: apply clang-format")
Sponsored by:	Innovate UK
</content>
</entry>
<entry>
<title>nuageinit: Allow the userdata script to run before firstboot* rc services</title>
<updated>2026-08-01T13:02:59Z</updated>
<author>
<name>Gleb Popov</name>
<email>arrowd@FreeBSD.org</email>
</author>
<published>2026-07-27T18:18:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=16e47f317c4ce2be5fed530bf8a9af9f9bf55364'/>
<id>urn:sha1:16e47f317c4ce2be5fed530bf8a9af9f9bf55364</id>
<content type='text'>
Allowing nuageinit user scripts to run before these makes it possible to
customize official BASIC-CI and BASIC-CLOUDINIT FreeBSD images.

This was requested by KDE for their CI.

Approved by:	cperciva
Pull-Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/60
</content>
</entry>
<entry>
<title>rc.d/bthidd: Correct load_kld invocations</title>
<updated>2026-07-31T18:05:03Z</updated>
<author>
<name>Li-Wen Hsu</name>
<email>lwhsu@FreeBSD.org</email>
</author>
<published>2026-07-31T18:05:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b5fe1bc5c6e4b483aacadddd8bdf37aa12c89982'/>
<id>urn:sha1:b5fe1bc5c6e4b483aacadddd8bdf37aa12c89982</id>
<content type='text'>
Pass a single module name to load_kld for kbdmux and vkbd, allowing
bthidd_prestart to load both modules successfully.

Fixes:		cfe1962a1925 (rc: Fix improper use of load_kld)
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>rtld: Reject ELF files with PT_LOAD or PT_TLS segments where filesz &gt; memsz</title>
<updated>2026-07-31T17:52:24Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-07-31T17:52:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=535eb24d8451bad8de745937018800df1895a9aa'/>
<id>urn:sha1:535eb24d8451bad8de745937018800df1895a9aa</id>
<content type='text'>
All sorts of places in the ELF loading code assume that filesz &lt;=
memsz, so check that explicitly up front.  The kernel already performs
this check for the PT_LOAD segments in the main binary and rtld in
imgact_elf.c.

Reviewed by:	jrtc27, kib
Differential Revision:	https://reviews.freebsd.org/D58541
</content>
</entry>
<entry>
<title>rtld: Remove write-only text_end local variable from map_object</title>
<updated>2026-07-29T18:38:08Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-07-29T18:38:08Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ec73badfbc2e08928d917924af491c07e1f39a09'/>
<id>urn:sha1:ec73badfbc2e08928d917924af491c07e1f39a09</id>
<content type='text'>
Reviewed by:	kib
Fixes:		561991144e42 ("Remove Obj_Entry textsize member.")
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D58522
</content>
</entry>
<entry>
<title>rc.subr: Fix premature return from wait_for_pids</title>
<updated>2026-07-27T10:15:47Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2026-07-27T10:15:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=356d0b79cf6fc693ed1a5564232e240ce15ccb8a'/>
<id>urn:sha1:356d0b79cf6fc693ed1a5564232e240ce15ccb8a</id>
<content type='text'>
Use pwait's new -r option to wait until the target processes have not
only terminated, but also been reaped.

PR:		293183
MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	NetApp, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D58391
</content>
</entry>
<entry>
<title>rc.d/dumpon: minor hardening/tightening up</title>
<updated>2026-07-16T16:25:03Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-07-16T16:24:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fc186c24b1e72fa3eba91c166f7a554a5cea5828'/>
<id>urn:sha1:fc186c24b1e72fa3eba91c166f7a554a5cea5828</id>
<content type='text'>
- Scope local variables properly to each function.
- Quote variables that should be treated as single words.
- Replace `${cmd}; if [ $? -eq 0 ]` with `if ${cmd}` for simplicity.

MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D57899
</content>
</entry>
<entry>
<title>rtld: unify the return path for map_object()</title>
<updated>2026-06-29T20:33:12Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-06-29T20:08:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=70fb92cd56bfe88a12d2a253542320bad7198321'/>
<id>urn:sha1:70fb92cd56bfe88a12d2a253542320bad7198321</id>
<content type='text'>
Reviewed by:	kevans
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D57908
</content>
</entry>
<entry>
<title>rtld: stop using unbound alloca()</title>
<updated>2026-06-29T20:33:12Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-06-27T15:11:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1e370f038778e16c4b31f8992dda339d429e5cb8'/>
<id>urn:sha1:1e370f038778e16c4b31f8992dda339d429e5cb8</id>
<content type='text'>
For DoneList allocations, its size depends on the number of loaded DSOs.
Small images could be served by alloca(), but large donelists need to
go into heap.

For map_object(), alloca size is the number of segments in the object.

In both cases, over-grown situations would cause a stack overflow.

PR:	295991
Noted and reviewed by:	kevans
Tested by:	Marek Zarychta &lt;zarychtam@plan-b.pwste.edu.pl&gt;
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D57908
</content>
</entry>
<entry>
<title>rtld: add spinlock around the crt malloc calls</title>
<updated>2026-06-29T20:33:12Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2026-06-27T18:50:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=559f45638dfa50195c591bb0f7f3d3d8f3bb8dc0'/>
<id>urn:sha1:559f45638dfa50195c591bb0f7f3d3d8f3bb8dc0</id>
<content type='text'>
Right now, the rtld malloc is called under the write-locked rtld bind
lock. A future change adds places where only read-locked rtld bind lock
is held, and then the spinlock protects the malloc structures from the
parallel updates.

Reviewed by:	kevans
Tested by:	Marek Zarychta &lt;zarychtam@plan-b.pwste.edu.pl&gt;
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D57908
</content>
</entry>
</feed>
