Date: Tue, 14 Nov 2000 12:00:20 -0800 (PST) From: Daniel Eischen <deischen@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_init.c uthread_kern.c uthread_sig.c Message-ID: <200011142000.MAA03599@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
deischen 2000/11/14 12:00:20 PST
Modified files:
lib/libc_r/uthread pthread_private.h uthread_init.c
uthread_kern.c uthread_sig.c
Log:
When entering the scheduler from the signal handler, tell
the kernel to (re)use the alternate signal stack. In this
case, we don't return normally from the signal handler,
so the kernel still thinks we are using the signal stack.
The fixes a nasty bug where the signal handler can start
fiddling with the stack of a thread while the handler is
actually running on the same stack.
MFC candidate
Revision Changes Path
1.48 +5 -2 src/lib/libc_r/uthread/pthread_private.h
1.27 +10 -7 src/lib/libc_r/uthread/uthread_init.c
1.34 +25 -12 src/lib/libc_r/uthread/uthread_kern.c
1.31 +2 -2 src/lib/libc_r/uthread/uthread_sig.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011142000.MAA03599>
