Bug 114451

Summary: [nfs] [patch] prevent NFS server possible crash
Product: Base System Reporter: Rick Macklem <rick>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Only Me CC: jpaetzel
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.txt none

Description Rick Macklem 2007-07-09 18:00:08 UTC
Looking at the code, it is pretty obvious that sys/nfsserver/nfs_serv.c would
crash in readdirplus if VFS_VGET() returns an error other than EOPNOTSUPP. See
the "patch" file.

Fix: See patch file. NB, I haven't actually tested this.

Patch attached with submission follows:
How-To-Repeat: Probably doesn't occur in practice, since VFS_VGET() would not normally
return such an error.