<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget, branch v2023.01</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2023.01</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget?h=v2023.01'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2022-12-08T13:30:39Z</updated>
<entry>
<title>usb: gadget: rndis: Prevent InformationBufferOffset manipulation</title>
<updated>2022-12-08T13:30:39Z</updated>
<author>
<name>Szymon Heidrich</name>
<email>szymon.heidrich@gmail.com</email>
</author>
<published>2022-12-05T09:28:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=51a0e215ec8ce9cc88f928373e9ce8303db1829b'/>
<id>urn:sha1:51a0e215ec8ce9cc88f928373e9ce8303db1829b</id>
<content type='text'>
Prevent access to arbitrary memory locations in gen_ndis_set_resp
via manipulation of buf-&gt;InformationBufferOffset. Original
implementation permits manipulation of InformationBufferOffset to
exploit OID_GEN_CURRENT_PACKET_FILTER to set arbitrary memory contents
within a 32byte offset as the devices packet filter. The packet filter
value may be next retrieved using gen_ndis_query_resp so it is possible
to extract specific memory regions two bytes a time.

The rndis_query_response was not modified as neither the buffer offset
nor length passed to gen_ndis_query_resp is used.

Signed-off-by: Szymon Heidrich &lt;szymon.heidrich@gmail.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: dfu: Fix check of transfer direction</title>
<updated>2022-12-08T13:30:39Z</updated>
<author>
<name>Hugo SIMELIERE</name>
<email>hsimeliere.opensource@witekio.com</email>
</author>
<published>2022-11-30T08:29:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=14dc0ab138988a8e45ffa086444ec8db48b3f103'/>
<id>urn:sha1:14dc0ab138988a8e45ffa086444ec8db48b3f103</id>
<content type='text'>
Commit fbce985e28eaca3af82afecc11961aadaf971a7e to fix CVE-2022-2347
blocks DFU usb requests.
The verification of the transfer direction was done by an equality
but it is a bit mask.

Signed-off-by: Hugo SIMELIERE &lt;hsimeliere.opensource@witekio.com&gt;
Reviewed-by: Fabio Estevam &lt;festevam@denx.de&gt;
Reviewed-by: Sultan Qasim Khan &lt;sultan.qasimkhan@nccgroup.com&gt;
Reviewed-by: Marek Vasut &lt;marex@denx.de&gt;
Tested-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>usb: gadget: dfu: Fix the unchecked length field</title>
<updated>2022-11-21T14:23:00Z</updated>
<author>
<name>Venkatesh Yadav Abbarapu</name>
<email>venkatesh.abbarapu@amd.com</email>
</author>
<published>2022-11-03T04:07:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=fbce985e28eaca3af82afecc11961aadaf971a7e'/>
<id>urn:sha1:fbce985e28eaca3af82afecc11961aadaf971a7e</id>
<content type='text'>
DFU implementation does not bound the length field in USB
DFU download setup packets, and it does not verify that
the transfer direction. Fixing the length and transfer
direction.

CVE-2022-2347

Signed-off-by: Venkatesh Yadav Abbarapu &lt;venkatesh.abbarapu@amd.com&gt;
Reviewed-by: Marek Vasut &lt;marex@denx.de&gt;
</content>
</entry>
<entry>
<title>usb: ether: Fix error handling in usb_ether_init</title>
<updated>2022-10-18T03:17:12Z</updated>
<author>
<name>Michal Suchanek</name>
<email>msuchanek@suse.de</email>
</author>
<published>2022-10-12T19:57:54Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2cb43ef1c22302820061d4d11ddce85872e993e1'/>
<id>urn:sha1:2cb43ef1c22302820061d4d11ddce85872e993e1</id>
<content type='text'>
The code checks the return value from uclass_first_device as well as
that the device exists but it passes on the return value which may be
zero if there are no gadget devices. Just check that a device was
returned and return -ENODEV otherwise.

Also remove the dev variable which is not really used for anything.

Signed-off-by: Michal Suchanek &lt;msuchanek@suse.de&gt;
Reviewed-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>Fix typo in CONFIG_USBNET_DEVADDR</title>
<updated>2022-10-12T15:11:19Z</updated>
<author>
<name>Ignacio Zamora</name>
<email>nachopitt@gmail.com</email>
</author>
<published>2022-10-08T14:50:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=34803205ebb4a049fd8c3e3f885ba440a9fb585e'/>
<id>urn:sha1:34803205ebb4a049fd8c3e3f885ba440a9fb585e</id>
<content type='text'>
Fix typo that was caused by the same feature being split in to 2 different
configuration options. Replace CONFIG_USBNET_DEVADDR with
CONFIG_USBNET_DEV_ADDR

Signed-off-by: Ignacio Zamora &lt;nachopitt@gmail.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: fastboot: detach usb on reboot commands</title>
<updated>2022-10-10T16:08:18Z</updated>
<author>
<name>Mattijs Korpershoek</name>
<email>mkorpershoek@baylibre.com</email>
</author>
<published>2022-10-07T09:38:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5f7e01e9d5d8005e9a8fbbdf8a05dfd63a5e5f04'/>
<id>urn:sha1:5f7e01e9d5d8005e9a8fbbdf8a05dfd63a5e5f04</id>
<content type='text'>
When host issues "fastboot reboot fastboot", it's expected that the
board drops the USB connection before resetting.

On some boards, such as Khadas VIM3L and SEI610, this is not the case.

We observe the following error:
$ fastboot reboot fastboot
Rebooting into fastboot                            OKAY [  0.004s]
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.

This does not happen when we use the RST button on the board.
It can be reproduced in linux with:
  # echo b &gt; /proc/sysrq-trigger

In this case, we hit a undefined hardware behavior, where D+ and D-
are in an unknown state. Therefore the host can't detect usb
disconnection.

Make sure we always call usb_gadget_release() when a "fastboot reboot"
command is issued.

Note: usb_gadget_release() should be called before g_dnl_unregister()
because g_dnl_unregister() triggers a complete() call on each
endpoint (thus calling do_reset()).

Signed-off-by: Mattijs Korpershoek &lt;mkorpershoek@baylibre.com&gt;
</content>
</entry>
<entry>
<title>usb: gadget: Clean up Makefile ifdeffery</title>
<updated>2022-10-10T16:08:18Z</updated>
<author>
<name>Marek Vasut</name>
<email>marex@denx.de</email>
</author>
<published>2022-08-23T17:06:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7cc1af902dfad290ab39b0ee52128b18d83a151a'/>
<id>urn:sha1:7cc1af902dfad290ab39b0ee52128b18d83a151a</id>
<content type='text'>
Take the USB_ETHER ifdef block apart and make use of obj-$(VAR) instead
to include the source files in build. The duplicate CI_UDC entry is now
removed, the USB_DEVICE ifdef is now reduced to core.o ep.o addition,
the ether.o can be conditionally compiled in using USB_ETHER.

No functional change.

Signed-off-by: Marek Vasut &lt;marex@denx.de&gt;
Reviewed-by: Patrice Chotard &lt;patrice.chotard@foss.st.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'next'</title>
<updated>2022-10-03T19:39:46Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2022-10-03T19:39:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=2d4591353452638132d711551fec3495b7644731'/>
<id>urn:sha1:2d4591353452638132d711551fec3495b7644731</id>
<content type='text'>
</content>
</entry>
<entry>
<title>treewide: Drop image_header_t typedef</title>
<updated>2022-09-29T20:07:57Z</updated>
<author>
<name>Simon Glass</name>
<email>sjg@chromium.org</email>
</author>
<published>2022-09-07T02:26:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=f3543e69442ca393e52df253d9c5d45bc189d471'/>
<id>urn:sha1:f3543e69442ca393e52df253d9c5d45bc189d471</id>
<content type='text'>
This is not needed and we should avoid typedefs. Use the struct instead
and rename it to indicate that it really is a legacy struct.

Signed-off-by: Simon Glass &lt;sjg@chromium.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-riscv into next</title>
<updated>2022-09-26T15:27:30Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2022-09-26T15:27:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ffa2c88bcf8618b6d6fb71f5263beede9a179b20'/>
<id>urn:sha1:ffa2c88bcf8618b6d6fb71f5263beede9a179b20</id>
<content type='text'>
</content>
</entry>
</feed>
