Date: Sat, 16 Nov 2019 11:00:22 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r354769 - stable/11/sys/amd64/amd64 Message-ID: <201911161100.xAGB0M8i071130@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Nov 16 11:00:22 2019 New Revision: 354769 URL: https://svnweb.freebsd.org/changeset/base/354769 Log: MFC r354696: amd64: only set PCB_FULL_IRET pcb flag when #gp or similar exception comes from usermode. Modified: stable/11/sys/amd64/amd64/exception.S Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/amd64/amd64/exception.S ============================================================================== --- stable/11/sys/amd64/amd64/exception.S Sat Nov 16 10:50:10 2019 (r354768) +++ stable/11/sys/amd64/amd64/exception.S Sat Nov 16 11:00:22 2019 (r354769) @@ -492,8 +492,8 @@ prot_addrf: 3: cmpw $KUG32SEL,TF_GS(%rsp) jne 4f movq %rdx,PCB_GSBASE(%rdi) + orl $PCB_FULL_IRET,PCB_FLAGS(%rdi) /* full iret from user #gp */ 4: call handle_ibrs_entry - orl $PCB_FULL_IRET,PCB_FLAGS(%rdi) /* always full iret from GPF */ movw %es,TF_ES(%rsp) movw %ds,TF_DS(%rsp) testl $PSL_I,TF_RFLAGS(%rsp)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911161100.xAGB0M8i071130>