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
This commit is contained in:
Konstantin Belousov 2015-03-28 09:02:19 +00:00
parent e6b369a09c
commit f024d1a3a3

View file

@ -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)