git: kernel - Fix missing lock in devfs

Matthew Dillon dillon at
Fri Jan 24 14:04:12 PST 2020

commit d1a689c1175e69ab603ad94e704bb8e9778c410e
Author: Matthew Dillon <dillon at>
Date:   Fri Jan 24 14:02:30 2020 -0800

    kernel - Fix missing lock in devfs
    * The master devfs lock must be held across a devfs_reference_ops()
    * Should fix races and panics related to fast device creation and
      deletion (typically only triggered by dsynth's use of pty's).
    Reported-by: zrj, multiple

Summary of changes:
 sys/vfs/devfs/devfs_core.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list