1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Add back Giant locks around kmem_free() call from user_ldt cleanup path

during exit.  Apparently it isn't safe after all.  See uma_large_free().

Pointed out by:  alc
This commit is contained in:
Peter Wemm 2004-03-08 01:55:34 +00:00
parent a69d88af52
commit ec4a10ee26
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126738

View File

@ -320,8 +320,10 @@ cpu_thread_clean(struct thread *td)
* XXX do we need to move the TSS off the allocated pages
* before freeing them? (not done here)
*/
mtx_lock(&Giant);
kmem_free(kernel_map, (vm_offset_t)pcb->pcb_ext,
ctob(IOPAGES + 1));
mtx_unlock(&Giant);
pcb->pcb_ext = 0;
}
}