hisi_acc_vfio_pci: fix XQE dma address error
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hisi_acc_vfio_pci: fix XQE dma address error
The dma addresses of EQE and AEQE are wrong after migration and results in guest kernel-mode encryption services failure. Comparing the definition of hardware registers, we found that there was an error when the data read from the register was combined into an address. Therefore, the address combination sequence needs to be corrected.
Even after fixing the above problem, we still have an issue where the Guest from an old kernel can get migrated to new kernel and may result in wrong data.
In order to ensure that the address is correct after migration, if an old magic number is detected, the dma address needs to be updated.
From the CVE record · Linux
Incorrect EQE and AEQE DMA addresses after migration can cause guest kernel-mode encryption services to fail. Migration of a guest from an old kernel to a new kernel may also produce wrong data; the input does not describe an attacker, authentication requirements, or user interaction.
Operators of Linux kernel guests using hisi_acc_vfio_pci and migrating them between hosts should check their systems; affected versions are not specified.