[PATCH 1/2] usb: ci_udc: Check ci_ep->desc before use

Petr Benes petr.benes at ysoft.com
Tue Nov 25 14:13:51 CET 2025



On 11/25/25 1:26 PM, Marek Vasut wrote:
> [EXTERNAL EMAIL]
>
> On 11/25/25 9:58 AM, Michal Vokáč wrote:
>> From: Petr Beneš <petr.benes at ysoft.com>
>>
>> There are two places where ci_ep->desc could be accessed despite it is
>> not valid at that moment. Either the endpoint has not been enabled yet
>> or it has been disabled meanwhile (The ethernet gadged behaves this way
>> at least.). That results in dereferencing a null pointer.
>
> Is there a test case which triggers this problem ?

e.g. repetitive use of tftp, the first works, second may hang, resets
the system, whatever

________________________________

CONFIDENTIALITY NOTICE
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information.
If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify us by email to info at ysoft.com with a copy of this message. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. Y Soft and any of its subsidiaries each reserves the right to monitor all e-mail communications through its networks.
Y Soft is neither liable for the proper, complete transmission of the information contained in this communication nor any delay in its receipt. This email was scanned for the presence of computer viruses. In the unfortunate event of infection Y Soft does not accept liability.
Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them.


More information about the U-Boot mailing list