cvs commit: src/sys/fs/pseudofs pseudofs_vnops.c
Robert Watson
rwatson at FreeBSD.org
Fri Aug 13 13:27:57 PDT 2004
rwatson 2004-08-13 20:27:56 UTC
FreeBSD src repository
Modified files:
sys/fs/pseudofs pseudofs_vnops.c
Log:
Commit a work-around for a more general bug involving process state:
check whether p_ucred is NULL or not in pfs_getattr() before
dereferencing the credential, and return ENOENT if there wasn't one.
This is a symptom of a larger problem, wherein pfind() can return
references to incompletely initialized processes, and we instead ought
to not return them, or check the process state before acting on the
process.
Reported by: kris
Discussed with: tjr, others
Revision Changes Path
1.45 +11 -0 src/sys/fs/pseudofs/pseudofs_vnops.c
More information about the cvs-src
mailing list