Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No checking on both IN and OUT pipe constructed #80

Closed
TheSilentDawn opened this issue Oct 14, 2020 · 5 comments
Closed

No checking on both IN and OUT pipe constructed #80

TheSilentDawn opened this issue Oct 14, 2020 · 5 comments
Assignees
Labels
internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system mw Middleware-related issue or pull-request. usb USB-related (host or device) issue or pull-request
Milestone

Comments

@TheSilentDawn
Copy link

Describe the set-up

  • Software:
    • STM32Cube MCU & MPU Packages
  • Version:
    • STM32Cube_FW_H7_V1.8.0
  • Verification Hardware Platform:
    • STM32H7B3

Describe the bug

How To Reproduce

  1. Running MSC_Standalone application on the STM32H7B3I platform

  2. Plug a USB disk

  3. Use the attached Bug6.txt to replace the USB device packet.
    Bug6.txt

Additional context

  • To patch it, the program should check both IN and OUT pipe is constructed.
@ALABSTM ALABSTM self-assigned this Nov 2, 2020
@ALABSTM ALABSTM added the mw Middleware-related issue or pull-request. label Nov 2, 2020
@ALABSTM
Copy link
Contributor

ALABSTM commented Nov 24, 2020

Hi @TheSilentDawn,

Thank you for this other report. To be sure I understood your point, please allow me these questions:

  • We are dealing with the case of a simultaneously IN and OUT endpoint? This is what I understood from the expression "the variable bEndpointAddress of endpoint descriptor are both masked as IN or OUT".
  • We are requesting from the software to check both? This is what I understood from the expression "the program should check both IN and OUT pipe is constructed"

Thank you in advance for your clarifications.

With regards,

@TheSilentDawn
Copy link
Author

TheSilentDawn commented Nov 25, 2020

Hi @ALABSTM,
Yes, the firmware should open an IN pipe and an OUT pipe to communicate with a device normally. However, as the report described, the driver codes do not check this. It will open two IN pipes or two OUT pipes unexpectedly which will block the communication in the subsequent execution of the firmware. If anything not clear, please let me know. Thanks for your help.^_^

@ALABSTM
Copy link
Contributor

ALABSTM commented Dec 2, 2020

Hi @TheSilentDawn,

Thank you for the clarification. Hence, the case you are describing is an interface exposing 2x IN endpoints or 2x OUT endpoints instead of 1x IN endpoint and 1x OUT endpoint (which is the normal case for a MSC).

I will forward your report to our development teams. I will get back to you as soon as they provide me with their feedback.

With regards,

@ALABSTM ALABSTM moved this from To do to Assigned in stm32cube-mcu-fw-dashboard Dec 2, 2020
@ALABSTM ALABSTM added the usb USB-related (host or device) issue or pull-request label Jan 18, 2021
@ALABSTM ALABSTM moved this from Assigned to In progress in stm32cube-mcu-fw-dashboard Jan 18, 2021
@ALABSTM ALABSTM added the internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system label Jan 18, 2021
@ALABSTM
Copy link
Contributor

ALABSTM commented Jan 18, 2021

ST Internal Reference: 99173

@ALABSTM
Copy link
Contributor

ALABSTM commented Mar 14, 2022

Hi @TheSilentDawn,

Hope you're fine. Just to inform you the fix has been published in the frame of v1.10.0 release.

With regards,

@ALABSTM ALABSTM closed this as completed Mar 14, 2022
stm32cube-mcu-fw-dashboard automation moved this from To release to Done Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal bug tracker Issue confirmed and reported into a ticket in the internal bug tracking system mw Middleware-related issue or pull-request. usb USB-related (host or device) issue or pull-request
Projects
Development

No branches or pull requests

2 participants