Date: Thu, 4 Jan 2007 22:32:03 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 112499 for review Message-ID: <200701042232.l04MW3xX045559@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=112499 Change 112499 by rdivacky@rdivacky_witten on 2007/01/04 22:31:44 Protect em->shared in a case of CLONE_THREAD. Affected files ... .. //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#19 edit Differences ... ==== //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#19 (text+ko) ==== @@ -119,10 +119,12 @@ if (child != 0) { if (flags & CLONE_THREAD) { /* lookup the parent */ + EMUL_SHARED_WLOCK(&emul_shared_lock); p_em = em_find(td->td_proc, EMUL_DONTLOCK); KASSERT(p_em != NULL, ("proc_init: parent emuldata not found for CLONE_THREAD\n")); em->shared = p_em->shared; em->shared->refs++; + EMUL_SHARED_WUNLOCK(&emul_shared_lock); } else { /* * handled earlier to avoid malloc(M_WAITOK) with
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701042232.l04MW3xX045559>