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

During file transfer, canceling the transfer in pc will cause a kernel crash #96

Open
guoweilkd opened this issue Nov 20, 2023 · 4 comments

Comments

@guoweilkd
Copy link

Operation steps:

  1. run umtprd-ffs.sh
  2. Wait for Explorer to pop up in Windows 10
  3. copy file from board to win10
  4. Click Cancel to close the copy dialog box during the copy process in Windows 10
  5. kernel crash
    crash
    Below is the packet captured by wireshark
    wireshark_usb_cap.zip
@jfdelnero
Copy link
Member

The kernel crash because the umtprd is blocked into a read function while the kernel is killing the link. i think that this will need a major rewrite of the low level layer to fix this. it appears that async api seems the way to go.

@guoweilkd
Copy link
Author

Is this a known bug? Does your 'low level layer' refer to the UDC layer? Are there any examples that have been implemented? thanks

@guoweilkd
Copy link
Author

It seems to be a bug caused by UDC driver. It works normally after modification.

@jfdelnero
Copy link
Member

Which modification ? @guoweilkd

@jfdelnero jfdelnero reopened this Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants