git: DragonFly_RELEASE_6_0 kernel - Fix kernel crash in sysctl path

Matthew Dillon dillon at
Wed May 19 11:20:49 PDT 2021

commit 46818d5717f913af34cdcc5aa49126937b2cdbc9
Author: Matthew Dillon <dillon at>
Date:   Wed May 19 11:05:20 2021 -0700

    kernel - Fix kernel crash in sysctl path
    * Fix a kernel crash which can occur in a particular sysctl due to some
      processes not having a p_textnch path.  The sysctl code was assuming that
      p->p_textnch would always be valid.  procfs already has the added check.
    * Fix a race against exit, requiring the proc->p_token to be held.
    Reported-by: htop devs, BenBE, cgzones

Summary of changes:
 sys/kern/kern_proc.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list