git: kernel - Hold required token when accessing p_flags, adjust

看板DFBSD_commit作者時間14年前 (2011/11/10 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 616516c8288329f72f40dd9143c9ea79b23e65fd Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Thu Nov 3 10:49:16 2011 -0700 kernel - Hold required token when accessing p_flags, adjust kmem access * Numerous adjustments to p->p_flag were not being done with p->p_token held. In particular uiomove(). * Replace P_DEADLKTREAT with LWP_DEADLKTREAT in several places where it had not been previously converted. * Allow DMAP access in is_globaldata_space() for x86-64 Summary of changes: sys/kern/kern_clock.c | 2 ++ sys/kern/kern_descrip.c | 12 ++++++++++-- sys/kern/kern_exit.c | 2 ++ sys/kern/kern_jail.c | 2 ++ sys/kern/kern_proc.c | 4 +++- sys/kern/kern_prot.c | 2 ++ sys/kern/kern_sig.c | 2 ++ sys/kern/kern_subr.c | 16 +++++++++------- sys/kern/subr_prof.c | 9 ++++++--- sys/kern/tty.c | 26 ++++++++++++++++++++++++++ sys/kern/tty_tty.c | 6 ++++++ sys/kern/usched_dummy.c | 2 +- sys/platform/pc32/i386/machdep.c | 5 ++++- sys/platform/pc32/i386/trap.c | 6 ++++-- sys/platform/pc64/x86_64/machdep.c | 7 ++++++- sys/platform/pc64/x86_64/trap.c | 6 ++++-- sys/platform/vkernel/i386/cpu_regs.c | 5 ++++- sys/platform/vkernel/i386/trap.c | 6 ++++-- sys/platform/vkernel64/x86_64/cpu_regs.c | 5 ++++- sys/platform/vkernel64/x86_64/trap.c | 6 ++++-- sys/sys/proc.h | 4 ++-- sys/vm/vm_vmspace.c | 2 ++ 22 files changed, 109 insertions(+), 28 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/616516c8288329f72f40dd9143c9ea79b23e65fd -- DragonFly BSD source repository
文章代碼(AID): #1EkpVQol (DFBSD_commit)