kernel - Fix ESTALE handling in stat() and access()
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Nov 2013 18:42:08 +0000 (10:42 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 18 Nov 2013 18:42:08 +0000 (10:42 -0800)
commit27e6b4d549ed101d9d209f003041b80053969e8a
treee998341ffc909ff2f0884d283dee0fb1182a55de
parent3f9f5f9aaf14daa1f014ab9c4780f90b4c17bd6d
kernel - Fix ESTALE handling in stat() and access()

* ESTALE could cause a panic due to shared namecache lock.  Relock
  the ncp exclusively when forcing re-resolution of the ncp due to
  ESTALE.

  ESTALE can occur on NFS mounts.

Reported-by: thesjg
sys/kern/vfs_syscalls.c