git: kernel - Fix VTEXT/open race

Matthew Dillon dillon at
Mon Jan 30 09:50:54 PST 2017

commit 864231c19af309bbba217b50313058ab63eb1531
Author: Matthew Dillon <dillon at>
Date:   Mon Jan 30 09:39:51 2017 -0800

    kernel - Fix VTEXT/open race
    * For now add O_RDWR to the list of flags that must use an exclusive
      namecache lock when executing open().  This fixes a VTEXT/open race.
    * This is not perfect w/regards to performance, so further enhancement may
      be forthcoming.
    Reported-by: mjg_ (Mateusz Guzik)

Summary of changes:
 sys/kern/vfs_syscalls.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list