<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin, branch release/13.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>bhyve: fix off by one error in pci_xhci</title>
<updated>2024-09-04T19:14:35+00:00</updated>
<author>
<name>Pierre Pronchery</name>
<email>pierre@freebsdfoundation.org</email>
</author>
<published>2024-09-04T14:38:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b3f0e555781cd9bc94ba4194a5bd82b6d347e3ec'/>
<id>b3f0e555781cd9bc94ba4194a5bd82b6d347e3ec</id>
<content type='text'>
The function pci_xhci_find_stream validates that the streamid is valid
but the bound check accepts up to ep_MaxPStreams included.

The bug results in an out-of-bounds write on the heap with controlled
data.

Reported by:	Synacktiv
Reviewed by:	jhb
Security:	FreeBSD-SA-24:12.bhyve
Security:	CVE-2024-32668
Security:	HYP-04
Sponsored by:	The Alpha-Omega Project
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D45994

(cherry picked from commit 5c9308a4130858598c76f3ae6e3e3dfb41ccfe68)
(cherry picked from commit 90af1336ed5e3c8556147325c4841c68639c4b63)
(cherry picked from commit 5920b7e6eea1e1c46b78656ef75944fc0709e887)

Approved by:	so
Approved by:	re (cperciva)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function pci_xhci_find_stream validates that the streamid is valid
but the bound check accepts up to ep_MaxPStreams included.

The bug results in an out-of-bounds write on the heap with controlled
data.

Reported by:	Synacktiv
Reviewed by:	jhb
Security:	FreeBSD-SA-24:12.bhyve
Security:	CVE-2024-32668
Security:	HYP-04
Sponsored by:	The Alpha-Omega Project
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D45994

(cherry picked from commit 5c9308a4130858598c76f3ae6e3e3dfb41ccfe68)
(cherry picked from commit 90af1336ed5e3c8556147325c4841c68639c4b63)
(cherry picked from commit 5920b7e6eea1e1c46b78656ef75944fc0709e887)

Approved by:	so
Approved by:	re (cperciva)
</pre>
</div>
</content>
</entry>
<entry>
<title>pw userdel: destroy home dataset if empty</title>
<updated>2024-08-21T17:13:40+00:00</updated>
<author>
<name>Mike Karels</name>
<email>karels@FreeBSD.org</email>
</author>
<published>2024-05-29T23:55:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7847d5e56cdc35e42dea1f801ccb01e2a96993e6'/>
<id>7847d5e56cdc35e42dea1f801ccb01e2a96993e6</id>
<content type='text'>
When removing a user's home directory, if the directory is a ZFS
dataset, it cannot be removed.  If the directory has been emptied,
use "zfs destroy" to destroy it.  This complements the automatic
dataset creation in adduser.  Note that datasets within the directory
and snapshots are not handled, as the complete path is not constructed.

While here, add waitpid() calls to rmat() and pw_user_del().

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D45348
Approved by:	re (cperciva)

(cherry picked from commit d2f1f71ec8c62dd26d6169d0d671a5aa5a933c1a)
(cherry picked from commit cd13258d266411c39944021ae46f5fcd724faa4a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When removing a user's home directory, if the directory is a ZFS
dataset, it cannot be removed.  If the directory has been emptied,
use "zfs destroy" to destroy it.  This complements the automatic
dataset creation in adduser.  Note that datasets within the directory
and snapshots are not handled, as the complete path is not constructed.

While here, add waitpid() calls to rmat() and pw_user_del().

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D45348
Approved by:	re (cperciva)

(cherry picked from commit d2f1f71ec8c62dd26d6169d0d671a5aa5a933c1a)
(cherry picked from commit cd13258d266411c39944021ae46f5fcd724faa4a)
</pre>
</div>
</content>
</entry>
<entry>
<title>adduser: Better document ZFS dataset creation.</title>
<updated>2024-08-21T17:13:33+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2024-08-19T08:30:01+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=eb7bf0d071916c2c11bc3f9810861998d7d070a6'/>
<id>eb7bf0d071916c2c11bc3f9810861998d7d070a6</id>
<content type='text'>
MFC after:	3 days
PR:		280873
Reviewed by:	bcr
Differential Revision:	https://reviews.freebsd.org/D46316
Approved by:	re (cperciva)

(cherry picked from commit 9ff2ebd92891b6953bbe44c6d6a6d8bc31f5139f)
(cherry picked from commit 8398c81b7c28ea315cb98405accb701502e3636a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	3 days
PR:		280873
Reviewed by:	bcr
Differential Revision:	https://reviews.freebsd.org/D46316
Approved by:	re (cperciva)

(cherry picked from commit 9ff2ebd92891b6953bbe44c6d6a6d8bc31f5139f)
(cherry picked from commit 8398c81b7c28ea315cb98405accb701502e3636a)
</pre>
</div>
</content>
</entry>
<entry>
<title>adduser: create dataset only if home is directly within dataset</title>
<updated>2024-08-21T17:13:22+00:00</updated>
<author>
<name>Mike Karels</name>
<email>karels@FreeBSD.org</email>
</author>
<published>2024-05-20T13:43:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0ebe6df086f3bac96945415965a8e0ea1431259a'/>
<id>0ebe6df086f3bac96945415965a8e0ea1431259a</id>
<content type='text'>
Currently, if the prefix of the new home directory is a subdirectory
of a ZFS dataset, adduser will create a new dataset up one or more
levels from the intended destination.  "pw useradd" will then create
a normal directory in the desired location, leaving an unused dataset.
Check for this situation when determining whether to create a dataset,
and let pw create the directory.

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D45229
MFC after:	3 days
Approved by:	re (cperciva)

(cherry picked from commit 0b39b2e2ddb2df1d1325e042893ddcb1a1c12b8e)
(cherry picked from commit da384ffbd5adebd7079b4dadd2592e82232566e0)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, if the prefix of the new home directory is a subdirectory
of a ZFS dataset, adduser will create a new dataset up one or more
levels from the intended destination.  "pw useradd" will then create
a normal directory in the desired location, leaving an unused dataset.
Check for this situation when determining whether to create a dataset,
and let pw create the directory.

Reviewed by:	des
Differential Revision:	https://reviews.freebsd.org/D45229
MFC after:	3 days
Approved by:	re (cperciva)

(cherry picked from commit 0b39b2e2ddb2df1d1325e042893ddcb1a1c12b8e)
(cherry picked from commit da384ffbd5adebd7079b4dadd2592e82232566e0)
</pre>
</div>
</content>
</entry>
<entry>
<title>leap-seconds: Update to leap-seconds 3960057600 obtained from IERS</title>
<updated>2024-07-22T02:37:03+00:00</updated>
<author>
<name>Cy Schubert</name>
<email>cy@FreeBSD.org</email>
</author>
<published>2024-07-21T01:41:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fad8955b97cc2d29c2d66b63c4346611715eff6e'/>
<id>fad8955b97cc2d29c2d66b63c4346611715eff6e</id>
<content type='text'>
IERS is the canonical source of leap-seconds. IANA, NIST and USNO obtain
their leap-second updates from IERS.

This resolves an issue for IPv6-only hosts as IERS is not accessible
via IPv6, requiring IPv6-only host to rely on some other source,
above.

From this point forward we should fetch the file from IERS, the
organization responsible for deciding when to insert leap-seconds.

PR:		279413
Obtained from:	https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list
Discussed with:	imp

(cherry picked from commit 04b4dcf04fc345b29b78e5061768091648b8ee2a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
IERS is the canonical source of leap-seconds. IANA, NIST and USNO obtain
their leap-second updates from IERS.

This resolves an issue for IPv6-only hosts as IERS is not accessible
via IPv6, requiring IPv6-only host to rely on some other source,
above.

From this point forward we should fetch the file from IERS, the
organization responsible for deciding when to insert leap-seconds.

PR:		279413
Obtained from:	https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list
Discussed with:	imp

(cherry picked from commit 04b4dcf04fc345b29b78e5061768091648b8ee2a)
</pre>
</div>
</content>
</entry>
<entry>
<title>ctladm: don't require the use of "-p" with "port -r", part 2</title>
<updated>2024-07-20T14:56:36+00:00</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2024-07-04T20:32:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9fd9ba30cc20011c07435d6ac19ac08717fd5d0a'/>
<id>9fd9ba30cc20011c07435d6ac19ac08717fd5d0a</id>
<content type='text'>
* Remove a now superfluous FALLTHROUGH hint
* Don't specify "-p" with an empty argument in the tests

Reported by:	jhb

(cherry picked from commit 7f50027321db3b08477f6236abded0297e9e5ed8)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Remove a now superfluous FALLTHROUGH hint
* Don't specify "-p" with an empty argument in the tests

Reported by:	jhb

(cherry picked from commit 7f50027321db3b08477f6236abded0297e9e5ed8)
</pre>
</div>
</content>
</entry>
<entry>
<title>cxgbetool(8): Be flexible about the nexus name.</title>
<updated>2024-07-17T07:18:12+00:00</updated>
<author>
<name>Navdeep Parhar</name>
<email>np@FreeBSD.org</email>
</author>
<published>2024-06-13T20:17:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1d0abfccc47f7f70c6dfd12dc96768259babf1f6'/>
<id>1d0abfccc47f7f70c6dfd12dc96768259babf1f6</id>
<content type='text'>
Use the name as-is but perform cxgbe specific ioctls on the device to
make sure that it is a Terminator device nexus.  Determine the chip
type, pf/vf, etc. from the device registers rather than the nexus name.

This allows cxgbetool to work with the VF driver.

Sponsored by:	Chelsio Communications

(cherry picked from commit e827b61cacddd4bc9a2f1657ad8c6d2bcd70d52e)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use the name as-is but perform cxgbe specific ioctls on the device to
make sure that it is a Terminator device nexus.  Determine the chip
type, pf/vf, etc. from the device registers rather than the nexus name.

This allows cxgbetool to work with the VF driver.

Sponsored by:	Chelsio Communications

(cherry picked from commit e827b61cacddd4bc9a2f1657ad8c6d2bcd70d52e)
</pre>
</div>
</content>
</entry>
<entry>
<title>binmiscctl.8: Change the example to armv7</title>
<updated>2024-07-15T12:35:21+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2024-06-20T09:26:18+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=64542285a83209746679ce6e9335d5d2f3abef47'/>
<id>64542285a83209746679ce6e9335d5d2f3abef47</id>
<content type='text'>
armv6 is in the process of being removed.

Reviewed by:	manu, imp, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45641

(cherry picked from commit 68f044de29b3867c2e0d282b86395f777f95b034)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
armv6 is in the process of being removed.

Reviewed by:	manu, imp, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45641

(cherry picked from commit 68f044de29b3867c2e0d282b86395f777f95b034)
</pre>
</div>
</content>
</entry>
<entry>
<title>iovctl: allow vlan restrictions to be passed to the driver</title>
<updated>2024-07-01T16:06:02+00:00</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-05-29T17:29:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=95596d181dade90597e8badd7916f9aa0dfce87c'/>
<id>95596d181dade90597e8badd7916f9aa0dfce87c</id>
<content type='text'>
Allow iovctl to create VFs that are restricted to specific VLAN IDs.

Reviewed by:	kib, np
MFC after:	2 weeks
Sponsored by:	Orange Business Services
Differential Revision:	https://reviews.freebsd.org/D45402

(cherry picked from commit c57c26179033f64c2011a2d2a904ee3fa62e826a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow iovctl to create VFs that are restricted to specific VLAN IDs.

Reviewed by:	kib, np
MFC after:	2 weeks
Sponsored by:	Orange Business Services
Differential Revision:	https://reviews.freebsd.org/D45402

(cherry picked from commit c57c26179033f64c2011a2d2a904ee3fa62e826a)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC zfs/jail: Document the zfs.mount_snapshot parameter in jail(8).</title>
<updated>2024-06-28T19:51:58+00:00</updated>
<author>
<name>Jamie Gritton</name>
<email>jamie@FreeBSD.org</email>
</author>
<published>2024-06-24T20:03:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0e391d97fbe4d0369b001f1e645f6984c8c1bca1'/>
<id>0e391d97fbe4d0369b001f1e645f6984c8c1bca1</id>
<content type='text'>
PR:		274263
Differential Revision:	https://reviews.freebsd.org/D45647

(cherry picked from commit 63875db56bd545896e019c922378f96ad5adc892)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
PR:		274263
Differential Revision:	https://reviews.freebsd.org/D45647

(cherry picked from commit 63875db56bd545896e019c922378f96ad5adc892)
</pre>
</div>
</content>
</entry>
</feed>
