svn commit: r290325 - stable/10/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Tue Nov 3 08:33:26 UTC 2015
Author: kib
Date: Tue Nov 3 08:33:24 2015
New Revision: 290325
URL: https://svnweb.freebsd.org/changeset/base/290325
Log:
MFC r289661:
Mark struct thread zone as type-stable, to prevent dereference of the
freed memory in the locks spin loops.
Modified:
stable/10/sys/kern/kern_thread.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/kern/kern_thread.c
==============================================================================
--- stable/10/sys/kern/kern_thread.c Tue Nov 3 08:31:01 2015 (r290324)
+++ stable/10/sys/kern/kern_thread.c Tue Nov 3 08:33:24 2015 (r290325)
@@ -280,7 +280,7 @@ threadinit(void)
thread_zone = uma_zcreate("THREAD", sched_sizeof_thread(),
thread_ctor, thread_dtor, thread_init, thread_fini,
- 16 - 1, 0);
+ 16 - 1, UMA_ZONE_NOFREE);
tidhashtbl = hashinit(maxproc / 2, M_TIDHASH, &tidhash);
rw_init(&tidhash_lock, "tidhash");
}
More information about the svn-src-stable-10
mailing list