<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/sys/kern/Makefile, 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>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>tests: Test that SIGSYS is not delivered if kern.signosys knob is off</title>
<updated>2023-10-10T05:15:57Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-10-03T07:38:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f9d36fa86cdd458c00c74b8a211d049a560af322'/>
<id>urn:sha1:f9d36fa86cdd458c00c74b8a211d049a560af322</id>
<content type='text'>
Reviewed by:		markj
Differential Revision:	https://reviews.freebsd.org/D41979
MFC after:		1 week

(cherry picked from commit b67c0ba4613861f8245ce835081311aef1c19bae)
</content>
</entry>
<entry>
<title>SIGSYS: add tests</title>
<updated>2023-10-09T03:42:17Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2023-09-25T18:40:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c11f71789d7d8f741243c21add8d7c5f0ecea03e'/>
<id>urn:sha1:c11f71789d7d8f741243c21add8d7c5f0ecea03e</id>
<content type='text'>
(cherry picked from commit 0afcac3e37e911f7e387ebeb2aae19b2b00ca4cc)
</content>
</entry>
<entry>
<title>socket tests: Add a regression test for MSG_WAITALL</title>
<updated>2023-09-27T12:33:50Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-08-31T17:29:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e4ed8e67e206c069955d541de41addcd0da05b82'/>
<id>urn:sha1:e4ed8e67e206c069955d541de41addcd0da05b82</id>
<content type='text'>
PR:		212716
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 38426b32e106cf251520259b29779372eda7a5f8)
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line sh pattern</title>
<updated>2023-08-23T17:43:30Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9'/>
<id>urn:sha1:023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9</id>
<content type='text'>
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/

Similar commit in main:
(cherry picked from commit d0b2dbfa0ecf)
</content>
</entry>
<entry>
<title>sockets: add MSG_TRUNC flag handling for recvfrom()/recvmsg().</title>
<updated>2023-02-09T18:01:49Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2022-07-25T19:46:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=adaf752192c165b66875e81db62d274a09591d0c'/>
<id>urn:sha1:adaf752192c165b66875e81db62d274a09591d0c</id>
<content type='text'>
Implement Linux-variant of MSG_TRUNC input flag used in recv(), recvfrom() and recvmsg().
Posix defines MSG_TRUNC as an output flag, indicating packet/datagram truncation.
Linux extended it a while (~15+ years) ago to act as input flag,
resulting in returning the full packet size regarless of the input
buffer size.
It's a (relatively) popular pattern to do recvmsg( MSG_PEEK | MSG_TRUNC) to get the
packet size, allocate the buffer and issue another call to fetch the packet.
In particular, it's popular in userland netlink code, which is the primary driving factor of this change.

This commit implements the MSG_TRUNC support for SOCK_DGRAM sockets (udp, unix and all soreceive_generic() users).

PR:		kern/176322
Reviewed by:	pauamma(doc)
Differential Revision: https://reviews.freebsd.org/D35909
MFC after:	1 month

(cherry picked from commit be1f485d7d6bebc53b055cc165a11ada0ab5fb17)
</content>
</entry>
<entry>
<title>Prevent running sigwait tests in parallel</title>
<updated>2022-06-17T19:35:24Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-06-17T19:35:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b7af02ed7934850639517eaf42760e1bec4f937d'/>
<id>urn:sha1:b7af02ed7934850639517eaf42760e1bec4f937d</id>
<content type='text'>
test_sig_discard_ign_* could not run at the same time.

Approved by:    dchagin
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D35236

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