mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user