ufrisk / pcileech

Direct Memory Access (DMA) Attack Software
GNU Affero General Public License v3.0
4.87k stars 718 forks source link

[USB3380] First bytes in dump are garbage #39

Closed dev-zzo closed 6 years ago

dev-zzo commented 6 years ago

I have bumped in another interesting issue for which I have no fix currently.

In each memory dump, the first... about 0x200 bytes are garbage, different each time I execute dumping. From the "feel" of the data, these seem to be leftovers from a previous DMA operation being continued, at least it looks similar to what data is at the end of the previously taken dump.

I think I described something similar in another USB3380 related issue.

dev-zzo commented 6 years ago

As far as I can tell, this garbage is prepended -- all the data is shifted by that much, e.g. blocks of useful page data start at e.g. XXXXXXX1C0.

dev-zzo commented 6 years ago

Resetting the FIFOs did the trick! Fixes will be integrated into the final PR for USB3380.