]> 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)
committerMark Johnston <markj@FreeBSD.org>
Wed, 26 May 2021 19:29:06 +0000 (15:29 -0400)
commit4590f0345956329d414611c6cee300f486732b53
treefb15e95b5f18792790954e6fb68aa77e407d6a78
parentfcb09b40339d10b06e11863096bcc6d2576e807f
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

(cherry picked from commit 91aae953cb807d6fb7a70782b323bf9beb60d7c9)
sys/amd64/amd64/support.S
sys/amd64/linux/linux_support.s
sys/amd64/linux32/linux32_support.s