git: kernel - Fix SMP race in procfs

Matthew Dillon dillon at
Tue Nov 13 11:17:57 PST 2018

commit f21197177101972ecc2bb045a2c4bbf0ab7ee0b0
Author: Matthew Dillon <dillon at>
Date:   Tue Nov 13 11:10:47 2018 -0800

    kernel - Fix SMP race in procfs
    * procfs was not locking its pid hash table.  Implement a per-slot
      spinlock.  The hash is populated only for pid directories that are
      pushed into (e.g. ls /proc/<pid> vs ls /proc).
    * Fixes a fairly rare crash that can only occur when procfs is used

Summary of changes:
 sys/vfs/procfs/procfs_subr.c | 94 +++++++++++++++++++++++++++++---------------
 1 file changed, 62 insertions(+), 32 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list