Date: Sat, 28 Mar 2015 09:02:20 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r280780 - head/sys/amd64/amd64 Message-ID: <201503280902.t2S92K0p013242@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Mar 28 09:02:19 2015 New Revision: 280780 URL: https://svnweb.freebsd.org/changeset/base/280780 Log: The #ss fault handler erronously does not check for the fault originated from the return to usermode. #ss must be handled same as #np. Reported by: Andrew Lutomirski through secteam Sponsored by: The FreeBSD Foundation MFC after: 3 days Modified: head/sys/amd64/amd64/trap.c Modified: head/sys/amd64/amd64/trap.c ============================================================================== --- head/sys/amd64/amd64/trap.c Sat Mar 28 06:54:18 2015 (r280779) +++ head/sys/amd64/amd64/trap.c Sat Mar 28 09:02:19 2015 (r280780) @@ -443,8 +443,6 @@ trap(struct trapframe *frame) goto out; case T_STKFLT: /* stack fault */ - break; - case T_PROTFLT: /* general protection fault */ case T_SEGNPFLT: /* segment not present fault */ if (td->td_intr_nesting_level != 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503280902.t2S92K0p013242>