HomeFreeBSD

The name caching changes of r230394 exposed an intermittent bug

Description

The name caching changes of r230394 exposed an intermittent bug
in the new NFS server for NFSv4, where it would report ENOENT
when the file actually existed on the server. This turned out
to be caused by not initializing ni_topdir before calling lookup()
and there was a rare case where the value on the stack location
assigned to ni_topdir happened to be a pointer to a ".." entry,
such that "dp == ndp->ni_topdir" succeeded in lookup().
This patch initializes ni_topdir to fix the problem.

MFC after: 5 days

Details

Provenance
rmacklemAuthored on Mar 3 2012, 4:13 PM
Parents
rG2561992179f8: Direct users to swapinfo and pstat from df
Branches
Unknown
Tags
Unknown

Event Timeline