Bug 114451 - [nfs] [patch] prevent NFS server possible crash
Summary: [nfs] [patch] prevent NFS server possible crash
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2007-07-09 18:00 UTC by Rick Macklem
Modified: 2017-08-26 03:50 UTC (History)
1 user (show)

See Also:

file.txt (1.23 KB, text/plain)
2007-07-09 18:00 UTC, Rick Macklem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.