Allow user processes to completely empty out their LDT, now that user
processes run from segment selectors that live in the GDT. Doing this used to be equivalent to committing suicide, but now this is a NOP.
This commit is contained in:
parent
c050415d18
commit
4740f5439a
@ -529,7 +529,7 @@ i386_set_ldt(td, uap, descs)
|
||||
uap->start = NLDT;
|
||||
uap->num = MAX_LD - NLDT;
|
||||
}
|
||||
if (uap->start <= LUDATA_SEL || uap->num <= 0)
|
||||
if (uap->num <= 0)
|
||||
return (EINVAL);
|
||||
mtx_lock_spin(&sched_lock);
|
||||
pldt = mdp->md_ldt;
|
||||
|
Loading…
Reference in New Issue
Block a user