From owner-cvs-all Tue Nov 14 12: 0:23 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CE48137B479; Tue, 14 Nov 2000 12:00:20 -0800 (PST) Received: (from deischen@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA03599; Tue, 14 Nov 2000 12:00:20 -0800 (PST) (envelope-from deischen@FreeBSD.org) Message-Id: <200011142000.MAA03599@freefall.freebsd.org> From: Daniel Eischen Date: Tue, 14 Nov 2000 12:00:20 -0800 (PST) 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 X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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