svn commit: r284226 - head/sys/compat/linux

Mateusz Guzik mjg at FreeBSD.org
Wed Jun 10 15:34:43 UTC 2015


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);


More information about the svn-src-all mailing list