summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-02-10 21:45:16 +0000
committerrwatson <rwatson@FreeBSD.org>2002-02-10 21:45:16 +0000
commit5e6a46b8e5d6bf17199cb1ff37f986c9f15d2e4b (patch)
treeee3a3b4f240fe56cc4ff19c9bea2107b0c4f4df8 /sys/kern/kern_sig.c
parent2bbae54d18d15c9c93f9567d79fe63538dd04bfd (diff)
downloadFreeBSD-src-5e6a46b8e5d6bf17199cb1ff37f986c9f15d2e4b.zip
FreeBSD-src-5e6a46b8e5d6bf17199cb1ff37f986c9f15d2e4b.tar.gz
Add a comment indicating that VOP_GETATTR() is called without appropriate
locking in the core dump code. This should be fixed.
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r--sys/kern/kern_sig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index c667d8f..2d56a10 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1932,6 +1932,8 @@ const char *name; uid_t uid; pid_t pid; {
* then it passes on a vnode and a size limit to the process-specific
* coredump routine if there is one; if there _is not_ one, it returns
* ENOSYS; otherwise it returns the error from the process-specific routine.
+ *
+ * XXX: VOP_GETATTR() here requires holding the vnode lock.
*/
static int
OpenPOWER on IntegriCloud