diff options
author | mini <mini@FreeBSD.org> | 2002-07-11 02:18:33 +0000 |
---|---|---|
committer | mini <mini@FreeBSD.org> | 2002-07-11 02:18:33 +0000 |
commit | b244d01c4d1f0d892a66a78485850cf28a6db242 (patch) | |
tree | 998c964f1dba7a37a9c8f3efc2c0d6275c26d219 /sys/kern/subr_trap.c | |
parent | 88b937fe29c8492a2cb68b853f5aef5cbdb23c1f (diff) | |
download | FreeBSD-src-b244d01c4d1f0d892a66a78485850cf28a6db242.zip FreeBSD-src-b244d01c4d1f0d892a66a78485850cf28a6db242.tar.gz |
Revert removal of cred_free_thread(): It is used to ensure that a thread's
credentials are not improperly borrowed when the thread is not current in
the kernel.
Requested by: jhb, alfred
Diffstat (limited to 'sys/kern/subr_trap.c')
-rw-r--r-- | sys/kern/subr_trap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/subr_trap.c b/sys/kern/subr_trap.c index 85edeed..951283a 100644 --- a/sys/kern/subr_trap.c +++ b/sys/kern/subr_trap.c @@ -236,5 +236,8 @@ ast(struct trapframe *framep) } userret(td, framep, sticks); +#ifdef DIAGNOSTIC + cred_free_thread(td); +#endif mtx_assert(&Giant, MA_NOTOWNED); } |