kernel - Fix VTEXT/open race
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 30 Jan 2017 17:39:51 +0000 (09:39 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 30 Jan 2017 17:50:19 +0000 (09:50 -0800)
commit864231c19af309bbba217b50313058ab63eb1531
tree4951a34535491490ed2426f483d60335e041c7b1
parente22f2acdde96b31c8a0c99a09f739a0fb7f3fa2a
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)
sys/kern/vfs_syscalls.c