<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev, branch releng/14.1</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.1</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.1'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-10-29T18:43:16Z</updated>
<entry>
<title>bhyve: avoid TOCTOU on iov_len in virtio_vq_recordon()</title>
<updated>2024-10-29T18:43:16Z</updated>
<author>
<name>Pierre Pronchery</name>
<email>pierre@freebsdfoundation.org</email>
</author>
<published>2024-08-27T13:57:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b11b889402aa3f85545464f4ead5da537638a12'/>
<id>urn:sha1:9b11b889402aa3f85545464f4ead5da537638a12</id>
<content type='text'>
Avoid a race condition when accessing guest memory, by reading memory
contents only once.

This has also been applied to _vq_record() in
sys/dev/beri/virtio/virtio.c, as per markj@'s suggestion.

Reported by:	Synacktiv
Reviewed by:	markj
Security:	HYP-10
Security:	FreeBSD-SA-24:17.bhyve
Approved by:	so
Sponsored by:	The Alpha-Omega Project
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D45735

(cherry picked from commit 869d760cb9d7a307faa2fbe8c1c2b238a81b74d4)
(cherry picked from commit ed03c309908687bdb9f71dc6d9c9c8a92c54fc20)
</content>
</entry>
<entry>
<title>sound: Correctly check nvlist_unpack() error</title>
<updated>2024-05-22T13:22:40Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-05-20T14:18:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8d3f96bd85c9519cef76d0727b00082354a2134b'/>
<id>urn:sha1:8d3f96bd85c9519cef76d0727b00082354a2134b</id>
<content type='text'>
The current check is never false and if nvlist_unpack() fails, we might
panic later down the road.

PR:		266144
Sponsored by:	The FreeBSD Foundation
MFC after:	1 day
Reviewed by:	dev_submerge.ch, emaste
Differential Revision:	https://reviews.freebsd.org/D45237

(cherry picked from commit 64f4e2db6d19d8ab520903a197fcaa8cc7ab9f9a)
(cherry picked from commit 45feaa73c68011bbba647d1eb6f86a166a0453e9)

Approved by:	re (cperciva)
</content>
</entry>
<entry>
<title>sound: Check user-supplied size passed to SNDSTIOC_ADD_USER_DEVS*</title>
<updated>2024-05-22T13:22:26Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-05-20T14:18:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=18f80d6d463495703f9eb2ccfd92bae93c7889a3'/>
<id>urn:sha1:18f80d6d463495703f9eb2ccfd92bae93c7889a3</id>
<content type='text'>
SNDSTIOC_ADD_USER_DEVS* expects a user-supplied sndstioc_nv_arg-&gt;nbytes,
however we currently do not check whether this size is actually valid,
which results in a panic when SNDSTIOC_ADD_USER_DEVS* is called with an
invalid size. sndstat_add_user_devs() calls
sndstat_unpack_user_nvlbuf(), which then calls malloc() with that size.

PR:		266142
Sponsored by:	The FreeBSD Foundation
MFC after:	1 day
Reviewed by:	brooks
Differential Revision:	https://reviews.freebsd.org/D45236

(cherry picked from commit 074d337ad618f9cc2a1d5ab18b484928e57bd72b)
(cherry picked from commit 5830a00c2c5485ec17900558e4f29c459c6a1f3e)

Approved by:	re (cperciva)
</content>
</entry>
<entry>
<title>snd_hda: Rename LENOVO_I* to LENOVO_IDEAPAD*</title>
<updated>2024-05-22T13:22:10Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-05-14T13:42:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5a9a2f5eed47f76e953b546a38d5f368eaee4828'/>
<id>urn:sha1:5a9a2f5eed47f76e953b546a38d5f368eaee4828</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D45105

(cherry picked from commit 278953360e0e6187c3f7c688cb49254df1567f0b)
(cherry picked from commit 7814ed2bd321dff2bbec8408c5b64cb7f4f2dfc5)

Approved by:	re (cperciva)
</content>
</entry>
<entry>
<title>snd_hda: Add patch for Lenovo Ideapad 3</title>
<updated>2024-05-22T13:21:56Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-05-14T13:42:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb23e0eebfe21d64c2a478bdd4ebfa56d31a37e4'/>
<id>urn:sha1:cb23e0eebfe21d64c2a478bdd4ebfa56d31a37e4</id>
<content type='text'>
Reported by:	bsd-lists@bsdforge.com
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D45100

(cherry picked from commit 54cc353f505dbc5f19168b6b1417b6736433d9ae)
(cherry picked from commit 9a620018afb2da062fce11e866a2154765886983)

Approved by:	re (cperciva)
</content>
</entry>
<entry>
<title>sound: Fix oss_sysinfo-&gt;numcards</title>
<updated>2024-05-22T13:21:36Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-05-09T19:08:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a0ff4e0f3e02d31e01844295f216ec87826130de'/>
<id>urn:sha1:a0ff4e0f3e02d31e01844295f216ec87826130de</id>
<content type='text'>
According to the OSS manual, oss_sysinfo-&gt;numcards holds the number of
detected audio devices in the system, while the current ncards variable,
whose value is assigned to oss_sysinfo-&gt;numcards, holds the number of
currently registered devices only.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	dev_submerge.ch, emaste
Differential Revision:	https://reviews.freebsd.org/D45136

(cherry picked from commit 59d98edae3e1a6fffd292e4393c49862d624f25f)
(cherry picked from commit 2b3698288771f6d236212f80b1a259aa86e09fa8)

Approved by:	re (cperciva)
</content>
</entry>
<entry>
<title>sound: Remove nmix variable from mixer_oss_mixerinfo()</title>
<updated>2024-05-22T13:20:42Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-05-09T19:07:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a4a473104ec4a42c66f1b9a09736954ebad43e7e'/>
<id>urn:sha1:a4a473104ec4a42c66f1b9a09736954ebad43e7e</id>
<content type='text'>
nmix is used to compare against oss_mixerinfo-&gt;dev, which is a
user-supplied value to select the mixer device (if not -1, in which case
we'll select the default one) we want to fetch the information of. It is
also used to set oss_mixerinfo-&gt;dev in case it is -1.

However, nmix is at best redundant, since we have the loop counter
already (i), and confusing at worst.

For example, suppose a system with 3 mixer devices. We call
SNDCTL_MIXERINFO with oss_mixerinfo-&gt;dev=1, meaning we want to get
information for /dev/mixer1. Suppose /dev/mixer0 detaches while inside
the loop, so we'll hit the loop's "continue" case, and nmix won't get
incremented (i.e will stay 0 for now). At this point nmix counts 1
device less, so when it reaches 1, we'll be fetching /dev/mixer2's
information instead of /dev/mixer1's.

This is also true in case the mixer device disappears prior to the call
to mixer_oss_mixerinfo().

Simply remove nmix and use the loop counter to both set
oss_mixerinfo-&gt;dev and check against it in case a non -1 value is
supplied.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D45135

(cherry picked from commit 2f31a5eb75f1e47b5c49f574e8ce48d2c863e9d3)
(cherry picked from commit 8b4e2ba31d1b171f688cb630f1827ec397ecaacb)

Approved by:	re (cperciva)
</content>
</entry>
<entry>
<title>sys/dev/irdma/irdma_cm: fix compile without INET</title>
<updated>2024-05-21T20:08:35Z</updated>
<author>
<name>Lexi Winter</name>
<email>lexi@le-Fay.ORG</email>
</author>
<published>2024-04-12T16:47:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=78ccc5af3d23fe6c7d87c5f40cf6ab2b1d9d6fb2'/>
<id>urn:sha1:78ccc5af3d23fe6c7d87c5f40cf6ab2b1d9d6fb2</id>
<content type='text'>
irdma_get_vlan_ipv4() calls ip_ifp_find() even if INET isn't defined, in
which case this function isn't available.

Stub this out for the non-INET case to return an error (0xffff) instead.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1156

(cherry picked from commit 0478a0356272ab3907af9d97711f0bb8b14bf38b)
(cherry picked from commit 7aba922879474189e5694ffb92a51ab387ad3dd6)
Approved-by: re (cperciva)
</content>
</entry>
<entry>
<title>wg: uma_zcreate() does not fail</title>
<updated>2024-05-02T13:25:08Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-04-23T16:19:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bff26fe7aa07173729bff549a00cc355bc977baf'/>
<id>urn:sha1:bff26fe7aa07173729bff549a00cc355bc977baf</id>
<content type='text'>
No functional change intended.

MFC after:	1 week

(cherry picked from commit b6a0ed7c78dd45937e404706620467bef61c308d)
</content>
</entry>
<entry>
<title>dpaa: uma_zcreate() does not fail</title>
<updated>2024-05-02T13:25:08Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-04-23T16:18:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4ee7b8e1ef3c5f8ee0b2853fc719f9bf186577ee'/>
<id>urn:sha1:4ee7b8e1ef3c5f8ee0b2853fc719f9bf186577ee</id>
<content type='text'>
No functional change intended.

MFC after:	1 week

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