set_user_ldt_rv() should check same proc not thread,
this commit fixes an user LDT smp rendezvous bug.
This commit is contained in:
parent
a40248455d
commit
d8c586e73a
@ -282,7 +282,7 @@ static void
|
||||
set_user_ldt_rv(struct thread *td)
|
||||
{
|
||||
|
||||
if (td != PCPU_GET(curthread))
|
||||
if (td->td_proc != curthread->td_proc)
|
||||
return;
|
||||
|
||||
mtx_lock_spin(&sched_lock);
|
||||
|
@ -282,7 +282,7 @@ static void
|
||||
set_user_ldt_rv(struct thread *td)
|
||||
{
|
||||
|
||||
if (td != PCPU_GET(curthread))
|
||||
if (td->td_proc != curthread->td_proc)
|
||||
return;
|
||||
|
||||
mtx_lock_spin(&sched_lock);
|
||||
|
Loading…
x
Reference in New Issue
Block a user