Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2015 15:34:43 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284226 - head/sys/compat/linux
Message-ID:  <201506101534.t5AFYhxX086467@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Wed Jun 10 15:34:43 2015
New Revision: 284226
URL: https://svnweb.freebsd.org/changeset/base/284226

Log:
  linux: make sure to grab all cow structs when creating a thread
  
  This is a fixup for r284214.
  
  Reported and tested by: Ivan Klymenko <fidaj ukr.net>

Modified:
  head/sys/compat/linux/linux_fork.c

Modified: head/sys/compat/linux/linux_fork.c
==============================================================================
--- head/sys/compat/linux/linux_fork.c	Wed Jun 10 15:07:13 2015	(r284225)
+++ head/sys/compat/linux/linux_fork.c	Wed Jun 10 15:34:43 2015	(r284226)
@@ -298,7 +298,7 @@ linux_clone_thread(struct thread *td, st
 	    __rangeof(struct thread, td_startcopy, td_endcopy));
 
 	newtd->td_proc = p;
-	newtd->td_ucred = crhold(td->td_ucred);
+	thread_cow_get(newtd, td);
 
 	/* create the emuldata */
 	linux_proc_init(td, newtd, args->flags);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506101534.t5AFYhxX086467>