diff options
author | mjg <mjg@FreeBSD.org> | 2015-06-10 15:34:43 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-06-10 15:34:43 +0000 |
commit | e196159c32af10b73074dc10646e502ea68f4415 (patch) | |
tree | 0b329c0cf4ca27c2a28ba8660bc491ea8a3c7c41 /sys/compat/linux/linux_fork.c | |
parent | b06e460d39b9533634a1ad4d4f2382323b19fda0 (diff) | |
download | FreeBSD-src-e196159c32af10b73074dc10646e502ea68f4415.zip FreeBSD-src-e196159c32af10b73074dc10646e502ea68f4415.tar.gz |
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>
Diffstat (limited to 'sys/compat/linux/linux_fork.c')
-rw-r--r-- | sys/compat/linux/linux_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_fork.c b/sys/compat/linux/linux_fork.c index 0fd47fd..394c26f 100644 --- a/sys/compat/linux/linux_fork.c +++ b/sys/compat/linux/linux_fork.c @@ -298,7 +298,7 @@ linux_clone_thread(struct thread *td, struct linux_clone_args *args) __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); |