Repair of data corruption caused by Win 7 reading SD card

  

According to foreign media reports, Microsoft recently released an update for the latest generation of client operating system Windows7 to solve the security digital card running on Windows 7 ( Data corruption in SD).

At present, all consumers using Windows 7 can download this update through the Microsoft Download Center for all Windows 7 users.

According to Microsoft, in general, only users who use NTFS format SD card will be affected by data corruption.

As for the cause of this problem, Microsoft explained that when users use Advanced Direct Flash (ADMA) access to transfer data between the SD card and Windows 7, data corruption problems arise.

The Microsoft spokesperson pointed out that during the ADMA transfer, the secure digital bus driver (Sdbus.sys) converts the operating system's DMA data structure into an SD card's ADMA data structure. The DMA and ADMA data structures are also referred to as descriptor tables, which contain a data length value and the address of the buffer.

Generally speaking, the data length field is 16 bits and the maximum size is 64K (bytes). However, during the data conversion process, the Sdbus.sys driver does not check the size of the descriptor table buffer in the system. Therefore, the Sdbus.sys driver may incorrectly set the data length of the SD Descriptor Table. For example, the Sdbus.sys driver might set the value of the data length to be greater than 0xFFFF, followed by corrupted I/O, which can also result in data corruption.

Copyright © Windows knowledge All Rights Reserved