]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
amd64: clear PSL.AC in the right frame
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 22 May 2021 19:48:36 +0000 (22:48 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 25 May 2021 15:20:46 +0000 (18:20 +0300)
commit91aae953cb807d6fb7a70782b323bf9beb60d7c9
tree2c226ff4d8d583389c700a4e421d962a8683af76
parent1f348be6f243da1a474c5cf119aa874308f2146f
amd64: clear PSL.AC in the right frame

If copyin family of routines fault, kernel does clear PSL.AC on the
fault entry, but the AC flag of the faulted frame is kept intact.  Since
onfault handler is effectively jump, AC survives until syscall exit.

Reported by: m00nbsd, via Sony
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
admbugs: 975
sys/amd64/amd64/support.S
sys/amd64/linux/linux_support.s
sys/amd64/linux32/linux32_support.s