git: kernel - Fix MP refcount race in struct pargs

看板DFBSD_commit作者時間15年前 (2011/02/16 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 19bfc8aba97a2cdc7b0d822266cdb5ae5d2e9a80 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Feb 15 21:53:05 2011 -0800 kernel - Fix MP refcount race in struct pargs * Protect p->p_args with p->p_token. * Protect pargs refcounts with sys/refcount.h. * This fixes at least one memory corruption bug during heavy fork/exec/exit testing with fastbulk. Testing-by: dillon, tuxillo Summary of changes: sys/kern/kern_exec.c | 33 +++++++++++++++++++++++---------- sys/kern/kern_fork.c | 3 ++- sys/kern/kern_proc.c | 43 ++++++++++++++++++++++--------------------- 3 files changed, 47 insertions(+), 32 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/19bfc8aba97a2cdc7b0d822266cdb5ae5d2e9a80 -- DragonFly BSD source repository
文章代碼(AID): #1DMuH2um (DFBSD_commit)