Assert that system calls do not leak a pinned thread (via sched_pin()) to
userland.
This commit is contained in:
parent
dda66918e6
commit
7e690c1f79
@ -188,6 +188,9 @@ syscallret(struct thread *td, int error, struct syscall_args *sa __unused)
|
|||||||
KASSERT((td->td_pflags & TDP_NOSLEEPING) == 0,
|
KASSERT((td->td_pflags & TDP_NOSLEEPING) == 0,
|
||||||
("System call %s returning with sleep disabled",
|
("System call %s returning with sleep disabled",
|
||||||
syscallname(p, sa->code)));
|
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
|
* Handle reschedule and other end-of-syscall issues
|
||||||
|
Loading…
x
Reference in New Issue
Block a user