git: kernel - Fix ptrace signal races between child and parent

看板DFBSD_commit作者時間14年前 (2011/10/22 18:02), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 8c986a8224d4539e4ee66a3992966c7e2257a311 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sat Aug 27 12:57:53 2011 -0700 kernel - Fix ptrace signal races between child and parent * Fix several ptrace signal races which could cause the parent's wait() function to block forever (or until the parent is killed). Generally speaking we have to use the process token to interlock the wakeup()/tsleep() sequence used by the ptrace code. * Fix a MP race in the wait code, we must hold the child process's token when manipulating its p_flag field. Reported-by: corecode, tuxillo Summary of changes: sys/kern/kern_exit.c | 15 +++++++++++++-- sys/kern/kern_sig.c | 31 ++++++++++++++++++++++++++----- sys/kern/kern_synch.c | 13 +++++++++++-- 3 files changed, 50 insertions(+), 9 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8c986a8224d4539e4ee66a3992966c7e2257a311 -- DragonFly BSD source repository
文章代碼(AID): #1EefI-XG (DFBSD_commit)