<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/kern, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-04-21T15:43:53Z</updated>
<entry>
<title>tty: Avoid leaving dangling pointers in tty_drop_ctty()</title>
<updated>2026-04-21T15:43:53Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2026-03-23T15:22:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5eae7f23fe0e189f2d5160772cf6cd4d107dd30a'/>
<id>urn:sha1:5eae7f23fe0e189f2d5160772cf6cd4d107dd30a</id>
<content type='text'>
The TIOCNOTTY handler detaches the calling process from its controlling
terminal.  It clears the link from the session to the tty, but not the
pointers from the tty to the session and process group.  This means that
sess_release() doesn't call tty_rel_sess(), and that pgdelete() doesn't
call tty_rel_pgrp(), so the pointers are left dangling.

Fix this by clearing pointers in tty_drop_ctty().  Add a standalone
regression test.

Approved by:	so
Security:	FreeBSD-SA-26:10.tty
Security:	CVE-2026-5398
Reported by:	Nicholas Carlini &lt;npc@anthropic.com&gt;
Reviewed by:	kib, kevans
Fixes:		1b50b999f9b5 ("tty: implement TIOCNOTTY")
Differential Revision:	https://reviews.freebsd.org/D56046
</content>
</entry>
<entry>
<title>unix/tests: Add a regression test for fd transfer across jails</title>
<updated>2026-02-09T18:07:10Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-06-24T20:08:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c9977132865ec06d2d3e1f404e946836019ff7a2'/>
<id>urn:sha1:c9977132865ec06d2d3e1f404e946836019ff7a2</id>
<content type='text'>
MFC after:	3 weeks

(cherry picked from commit 5843b8ee02e99527c28f579acfc1f48e10033529)
</content>
</entry>
<entry>
<title>tests: Add a regression test for commit 7587f6d4840f8</title>
<updated>2025-11-19T20:47:50Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-05-28T15:28:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b55b92729641e05a05cc8526b08bd7ac3dfcb4fc'/>
<id>urn:sha1:b55b92729641e05a05cc8526b08bd7ac3dfcb4fc</id>
<content type='text'>
Reviewed by:	kib
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D50533

(cherry picked from commit a5dac34f6e98c47bd7cb1946e39cc45432e167a8)
</content>
</entry>
<entry>
<title>tests/sigsys: initialize parameter passed to sysctlbyname()</title>
<updated>2025-02-09T16:39:02Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2024-02-20T22:37:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=55c3167e51e90ae7c5983246ddb3d5eda400391b'/>
<id>urn:sha1:55c3167e51e90ae7c5983246ddb3d5eda400391b</id>
<content type='text'>
(cherry picked from commit e53b83a849e3a34772d0a0ed26eb0cb4aeeec71d)
(cherry picked from commit e4e6423ef3d2a787583d88a87a11748217602759)
</content>
</entry>
<entry>
<title>Remove "All Rights Reserved" from FreeBSD Foundation copyrights</title>
<updated>2024-09-07T16:30:19Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-07-30T16:02:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6b9c7f29b0cdf0da752927ca173f590cdf385c89'/>
<id>urn:sha1:6b9c7f29b0cdf0da752927ca173f590cdf385c89</id>
<content type='text'>
These ones were unambiguous cases where the Foundation was the only
listed copyright holder.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 5c2bc3db201a4fe8d7911cf816bea104d5dc2138)
(cherry picked from commit f06d322e9d925ab56a4aa8210a67637d4d341ab6)
</content>
</entry>
<entry>
<title>sigsys test: correct count of delivered signals</title>
<updated>2024-03-01T04:12:46Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2024-02-25T01:36:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b9880e247b26c84a5800b7cba514a65843d55e2e'/>
<id>urn:sha1:b9880e247b26c84a5800b7cba514a65843d55e2e</id>
<content type='text'>
(cherry picked from commit 09dd7240acf1fc50061246013ce318404d70c4e0)
</content>
</entry>
<entry>
<title>kern: pts: do not special case closed slave side</title>
<updated>2024-01-30T17:11:10Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2024-01-16T02:55:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=984128ce2d5eb7d3374dd4b245d443ec2f5d96b2'/>
<id>urn:sha1:984128ce2d5eb7d3374dd4b245d443ec2f5d96b2</id>
<content type='text'>
This would previously return 1 if the slave side of the pts was closed
to force an application to read() from it and observe the EOF, but it's
not clear why and this is inconsistent both with how we handle devices
with similar mechanics (like pipes) and also with other kernels, such as
OpenBSD/NetBSD and Linux.

PR:             239604
Reviewed by:	kib

(cherry picked from commit 30189156d325fbcc9d1997d791daedc9fa3bed20)
</content>
</entry>
<entry>
<title>Revert "socket tests: Add a regression test for ktrace+recv(MSG_TRUNC)"</title>
<updated>2023-10-24T18:03:49Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-24T18:03:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4bf16a282503fb1b9091e7e431220d97e72e25f9'/>
<id>urn:sha1:4bf16a282503fb1b9091e7e431220d97e72e25f9</id>
<content type='text'>
This reverts commit f5a9a849e9034c597c2b0a9014673a44834b9516.

This test will require extra work to port to stable/13.
</content>
</entry>
<entry>
<title>Revert "socket tests: Build fix"</title>
<updated>2023-10-24T18:03:27Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-24T18:03:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7259e54556f21f34dc6c161cb1bb9d8d42e49777'/>
<id>urn:sha1:7259e54556f21f34dc6c161cb1bb9d8d42e49777</id>
<content type='text'>
This reverts commit 1b07f630c11ccf899612a7d02777fe0855e3bb25.

This test will require extra work to port to stable/13.
</content>
</entry>
<entry>
<title>socket tests: Build fix</title>
<updated>2023-10-24T14:28:34Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-10-17T14:21:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1b07f630c11ccf899612a7d02777fe0855e3bb25'/>
<id>urn:sha1:1b07f630c11ccf899612a7d02777fe0855e3bb25</id>
<content type='text'>
Fixes:	d8735eb7acc0 ("socket tests: Add a regression test for ktrace+recv(MSG_TRUNC)")
Reported by:	Jenkins

(cherry picked from commit 4bd1e19684945aa1fd3397b58613f5210fda9091)
</content>
</entry>
</feed>
