<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/usb, branch release/12.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-11-03T17:39:23Z</updated>
<entry>
<title>usb(4): Fix for use after free in combination with EVDEV_SUPPORT.</title>
<updated>2021-11-03T17:39:23Z</updated>
<author>
<name>Hans Petter Selasky</name>
<email>hselasky@FreeBSD.org</email>
</author>
<published>2021-10-24T11:38:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=791f88fff31d8067ffbfc4f0670aff84f094549d'/>
<id>urn:sha1:791f88fff31d8067ffbfc4f0670aff84f094549d</id>
<content type='text'>
When EVDEV_SUPPORT was introduced, the USB transfers may be running
after the main FIFO is closed. In connection to this a race may appear
which can lead to use-after-free scenarios. Fix this for all FIFO
consumers by initializing and resetting the FIFO queues under the
lock used by the client. Then the client driver will see an empty
queue in all cases a race may appear.

Approved by:	re@ (gjb)
Found by:	pho@
Sponsored by:	NVIDIA Networking

(cherry picked from commit aad0c65d6b37364d8ba92ecb8c85e004398a5194)
(cherry picked from commit bb9bee1ffbb27f903bfd2c11d681d331bea727ea)
</content>
</entry>
<entry>
<title>Fix busdma resource leak on usb device detach.</title>
<updated>2021-10-06T16:08:34Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2021-09-28T19:29:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6fea4b82e7b86ac680d5615f8361863353737325'/>
<id>urn:sha1:6fea4b82e7b86ac680d5615f8361863353737325</id>
<content type='text'>
When a usb device is detached, usb_pc_dmamap_destroy() called
bus_dmamap_destroy() while the map was still loaded. That's harmless on x86
architectures, but on all other platforms it causes bus_dmamap_destroy() to
return EBUSY and leak away any memory resources (including bounce buffers)
associated with the mapping, as well as any allocated map structure itself.

This change introduces a new is_loaded flag to the usb_page_cache struct to
track whether a map is loaded or not. If the map is loaded,
bus_dmamap_unload() is called before bus_dmamap_destroy() to avoid leaking
away resources.

Differential Revision:	https://reviews.freebsd.org/D32208

(cherry picked from commit dc91a9715f8fda4b3633388830a28a99f73cbe59)
</content>
</entry>
<entry>
<title>Fix a common typo in man pages and src comments</title>
<updated>2021-09-02T06:15:44Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2021-08-28T17:24:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e99900847a5ceb7235878f40fba599e0538f7ec1'/>
<id>urn:sha1:e99900847a5ceb7235878f40fba599e0538f7ec1</id>
<content type='text'>
- s/desciptor/descriptor/

(cherry picked from commit b1603638e38b3d8c23da6599e389db9a9218c240)
</content>
</entry>
<entry>
<title>Fix a common typo in source code comments</title>
<updated>2021-08-19T07:36:32Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2021-08-14T12:17:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=535182ea0f95b944f7e5d2337373b2a22ae3b2b1'/>
<id>urn:sha1:535182ea0f95b944f7e5d2337373b2a22ae3b2b1</id>
<content type='text'>
- s/aligment/alignment/

(cherry picked from commit a1581cd73594bbbde638859c31226c2c21be1ab3)
</content>
</entry>
<entry>
<title>ums(4): Do not stop USB xfers on FIFO close when evdev is still active</title>
<updated>2021-06-13T22:05:25Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2021-05-23T22:38:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8696dd92ffb776263226114f23715746a9abc296'/>
<id>urn:sha1:8696dd92ffb776263226114f23715746a9abc296</id>
<content type='text'>
This fixes lose of evdev events after moused has been killed.

While here use bitwise operations for UMS_EVDEV_OPENED flag.

Reviewed by:	hselasky
Differential revision:	https://reviews.freebsd.org/D30342

(cherry picked from commit 05ab03a31798d4cc96c22a8f30b1d9a0d7a3dd35)
</content>
</entry>
<entry>
<title>ums(4): Start USB xfers on opening of evdev node unconditionally.</title>
<updated>2021-06-13T22:05:21Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2021-05-23T22:41:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7c55c8c7ff7259bc40d2df7b07865bb800aba49f'/>
<id>urn:sha1:7c55c8c7ff7259bc40d2df7b07865bb800aba49f</id>
<content type='text'>
This fixes inability to start USB xfers in a case when FIFO has been
already open()-ed but no read() or poll() calls has been issued yet.

Differential revision:	https://reviews.freebsd.org/D30343

(cherry picked from commit 47791339f0cfe3282a6f64b5607047f7bca968ad)
</content>
</entry>
<entry>
<title>rtwn_usb(4): Add a USB ID for the TP-Link Archer T2U v3.</title>
<updated>2021-06-10T06:13:04Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2021-05-27T18:52:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e34c3d0721bc52b4130489170e509266ce4e4b96'/>
<id>urn:sha1:e34c3d0721bc52b4130489170e509266ce4e4b96</id>
<content type='text'>
PR:		256203
Submitted by:	Steve Kargl sgk at troutmask.apl.washington.edu

(cherry picked from commit 434c46c00602e16115cfb19344e4c45135b68b09)
</content>
</entry>
<entry>
<title>run(4): add support for DLINK DWA-130 rev F1 wireless adaptor.</title>
<updated>2021-06-06T11:21:10Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2021-05-23T18:31:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b86230e64a837edbc07b033197365fab92bce9a0'/>
<id>urn:sha1:b86230e64a837edbc07b033197365fab92bce9a0</id>
<content type='text'>
PR:		256092
Submitted by:	Francois Briere &lt;purplefiasco at gmail.com&gt;

(cherry picked from commit 8746bc91873430d977b09bcc3fbd4d1b417a5a57)
</content>
</entry>
<entry>
<title>run(4): add support for ASUS USB-N14 wireless adaptor.</title>
<updated>2021-06-01T10:03:56Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2021-05-22T10:52:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6c423a0fbc2ead8489c12c4c09d67cb7c09d7afe'/>
<id>urn:sha1:6c423a0fbc2ead8489c12c4c09d67cb7c09d7afe</id>
<content type='text'>
PR:		255759
Submitted by:	john.lmurdoch at gmail.com

(cherry picked from commit d6fd321ef60d43dce9f437187c94a7de2b91ab69)
</content>
</entry>
<entry>
<title>Refactor CTL datamove KPI.</title>
<updated>2021-03-15T02:45:05Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2021-02-21T21:45:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c4a81e647599fa8acc5ba1b4dbe34f357d8219bc'/>
<id>urn:sha1:c4a81e647599fa8acc5ba1b4dbe34f357d8219bc</id>
<content type='text'>
 - Make frontends call unified CTL core method ctl_datamove_done()
to report move completion.  It allows to reduce code duplication
in differerent backends by accounting DMA time in common code.
 - Add to ctl_datamove_done() and be_move_done() callback samethr
argument, reporting whether the callback is called in the same
context as ctl_datamove().  It allows for some cases like iSCSI
write with immediate data or camsim frontend write save one context
switch, since we know that the context is sleepable.
 - Remove data_move_done() methods from struct ctl_backend_driver,
unused since forever.

MFC after:	 1 month

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