Date: Tue, 26 Apr 2016 07:40:56 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r298622 - stable/9/sys/amd64/amd64 Message-ID: <201604260740.u3Q7euFe099634@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Tue Apr 26 07:40:56 2016 New Revision: 298622 URL: https://svnweb.freebsd.org/changeset/base/298622 Log: MFC r297846: [amd64] dtrace_invop handler is to be called only for kernel exceptions Modified: stable/9/sys/amd64/amd64/exception.S Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/amd64/amd64/exception.S ============================================================================== --- stable/9/sys/amd64/amd64/exception.S Tue Apr 26 07:40:07 2016 (r298621) +++ stable/9/sys/amd64/amd64/exception.S Tue Apr 26 07:40:56 2016 (r298622) @@ -212,6 +212,8 @@ alltraps_pushregs_no_rdi: * interrupt. For all other trap types, just handle them in * the usual way. */ + testb $SEL_RPL_MASK,TF_CS(%rsp) /* Did we come from kernel? */ + jnz calltrap /* ignore userland traps */ cmpl $T_BPTFLT,TF_TRAPNO(%rsp) jne calltrap
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604260740.u3Q7euFe099634>