Konstantin Belousov ea6020830c amd64: Add a knob to flush RSB on context switches if machine has SMEP.
The flush is needed to prevent cross-process ret2spec, which is not handled
on kernel entry if IBPB is enabled but SMEP is present.
While there, add i386 RSB flush.

Reported by:	Anthony Steinhauser <asteinhauser@google.com>
Reviewed by:	markj, Anthony Steinhauser
Discussed with:	philip
admbugs:	961
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2020-05-20 22:00:31 +00:00
..
2018-11-26 19:39:49 +00:00
2018-11-26 19:39:49 +00:00
2018-11-26 19:39:49 +00:00
2018-11-26 19:39:49 +00:00
2020-03-22 21:41:32 +00:00
2020-05-07 12:43:28 +00:00
2020-05-20 20:24:37 +00:00