svn commit: r239587 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Wed Aug 22 20:02:43 UTC 2012
Author: jhb
Date: Wed Aug 22 20:02:42 2012
New Revision: 239587
URL: http://svn.freebsd.org/changeset/base/239587
Log:
Assert that system calls do not leak a pinned thread (via sched_pin()) to
userland.
Modified:
head/sys/kern/subr_syscall.c
Modified: head/sys/kern/subr_syscall.c
==============================================================================
--- head/sys/kern/subr_syscall.c Wed Aug 22 20:01:57 2012 (r239586)
+++ head/sys/kern/subr_syscall.c Wed Aug 22 20:02:42 2012 (r239587)
@@ -188,6 +188,9 @@ syscallret(struct thread *td, int error,
KASSERT((td->td_pflags & TDP_NOSLEEPING) == 0,
("System call %s returning with sleep disabled",
syscallname(p, sa->code)));
+ KASSERT(td->td_pinned == 0,
+ ("System call %s returning with pinned thread",
+ syscallname(p, sa->code)));
/*
* Handle reschedule and other end-of-syscall issues
More information about the svn-src-all
mailing list