Date: Tue, 3 Nov 2015 08:33:24 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r290325 - stable/10/sys/kern Message-ID: <201511030833.tA38XOjI060640@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511030833.tA38XOjI060640>