Disallow changing CS which contains CPL

This commit is contained in:
jD91mZM2
2019-08-03 14:18:07 +02:00
parent 6160de495f
commit 2544feb33f
2 changed files with 17 additions and 15 deletions
+3 -1
View File
@@ -281,7 +281,9 @@ impl InterruptStack {
self.scratch.rcx = all.rcx;
self.scratch.rax = all.rax;
self.iret.rip = all.rip;
self.iret.cs = all.cs;
// These should probably be restricted
// self.iret.cs = all.cs;
// self.iret.rflags = all.eflags;
}
/// Enables the "Trap Flag" in the FLAGS register, causing the CPU