Fix memory corruption (overwriting the kmalloc redzone) when saving the
SVE state while in SVE streaming mode. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE5RElWfyWxS+3PLO2a9axLQDIXvEFAmSgR1oACgkQa9axLQDI XvGL3g/+ITCIqJZWSFzuMVbQ6cfYX1P7MKyII3qE7DnSql7nz0Ebs0WcL1Edj73A 0t7bVhxfsLjXW1xE26jt+7LzD6F4u9OKWKlDr3fDbInpi1H0t7dvbLCxETZzcTl0 DiGdNfd4blExQ0ZSj8bA4diLEdjQyO/MoxOH6w0DIUsvDQ8irHN65IP1Xe2hXvzZ p0NFgYXt8n9XiAUVB0DOE92oM4562qmXn5AXHTvtcuZETp8WxntYYbuhqE0hN4hY 7C1SoHdZFErDecD9EyQTHqg/7DKTd2BkeX9GMSHvG33mtc55AYavO8i7ObFOEpiU b6eWyugWaDcpKiC4VBcc30/7U7km3P1CrX3yzcD38XVlHU/m4L9sVP5++U9ikHoY tUNQul/Bvo5hEgKrRoXqcHSlV+PjMehgM1B4ed79n6TzKiCOoKZi/PBjwGb0ss1U hQfN6w1nZCKoj9lI2m2hV/hYRj1mNra5xXh2FvMIIPXsrGVeQJDkGZwQyRu5Ynxm DC8Jw+TEYcp5D9W8W2zijeU4jPl+7jD424ElWR41qWn4Aet+rTa2bcFQ+bApK7Dn 3Msw5zLS8FFl68Ve+tlt/W3rYCMD3tNN0JHq2pM4Ue2RbzKUxHRHc2v5IYAKFjvN WHcQeAD0e9W1U96TxMlJA470XNPujpVFxuphThRQBHIg981HKmI= =4gCK -----END PGP SIGNATURE----- Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux Pull arm64 fix from Catalin Marinas: "Fix memory corruption (overwriting the kmalloc redzone) when saving the SVE state while in SVE streaming mode" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: arm64: sme: Use STR P to clear FFR context field in streaming SVE mode
This commit is contained in:
Коммит
e3c2b10d6f
|
@ -316,12 +316,12 @@
|
||||||
_for n, 0, 15, _sve_str_p \n, \nxbase, \n - 16
|
_for n, 0, 15, _sve_str_p \n, \nxbase, \n - 16
|
||||||
cbz \save_ffr, 921f
|
cbz \save_ffr, 921f
|
||||||
_sve_rdffr 0
|
_sve_rdffr 0
|
||||||
_sve_str_p 0, \nxbase
|
|
||||||
_sve_ldr_p 0, \nxbase, -16
|
|
||||||
b 922f
|
b 922f
|
||||||
921:
|
921:
|
||||||
str xzr, [x\nxbase] // Zero out FFR
|
_sve_pfalse 0 // Zero out FFR
|
||||||
922:
|
922:
|
||||||
|
_sve_str_p 0, \nxbase
|
||||||
|
_sve_ldr_p 0, \nxbase, -16
|
||||||
mrs x\nxtmp, fpsr
|
mrs x\nxtmp, fpsr
|
||||||
str w\nxtmp, [\xpfpsr]
|
str w\nxtmp, [\xpfpsr]
|
||||||
mrs x\nxtmp, fpcr
|
mrs x\nxtmp, fpcr
|
||||||
|
|
Загрузка…
Ссылка в новой задаче