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
[tone] [kagura] MTP: Crashes when transferring files with Windows #432
Comments
a bit impractical not having a call trace don't you think? :) |
Could it be, that the MTP overall is a bit whacky? |
applying the linked patch works around the issue by limiting the mtp request length |
Limit MTP_RX_BUFFER_INIT_SIZE and MTP_TX_BUFFER_INIT_SIZE from 1048576 to 16384 Should fix swiotlb running OOM with large file transfers. See sonyxperiadev/bug_tracker#432 (comment) Needs accompanying sepolicy.
vendor init needs to write usb_f_mtp params to sysfs. See sonyxperiadev/device-sony-tone#184 See sonyxperiadev/bug_tracker#432 (comment)
Limit MTP_RX_BUFFER_INIT_SIZE and MTP_TX_BUFFER_INIT_SIZE from 1048576 to 16384 Should fix swiotlb running OOM with large file transfers. See sonyxperiadev/bug_tracker#432 (comment) Needs accompanying sepolicy.
This is issue on ganges as well and on Linux host too. |
@ix5 I will limit rx/tx on my build on ganges and if it fixes the issue as well could you make PR with the changes ? Thank you |
@Haxk20 please test with this PR sonyxperiadev/kernel@aa5ff38 |
I have made a new build. Cant test at this point due to laptop fastboot issues. Will do once i get on PC |
Don't test it, we will fix this in userspace |
Yes i read the PR. I mean i will test the userspace fix (limiting rx/tx) |
Platform: Tone
Device: Kagura
Kernel version: 4.9.182
Android version: 9.0 Pie
Description
Device crashes when attempting to transfer files via MTP from a Windows host.
Possibly related:
[loire] mtp is broken for large files [2/2]
[loire] mtp is broken for large files [1/2]
Discovery: copying files using MTP or PTP reboots phone #273
Symptoms
Hard crash from kernel panic
How to reproduce
Attempt to transfer files from a Windows host via MTP. You will have to transfer a large amount of files, crashes seem to happen with large files as well.
Unrelated: We might need to investigate our
init.rc
files for adb/functionfs stuff, maybe some wrong attrs/ids?The text was updated successfully, but these errors were encountered: