From owner-freebsd-arch Thu Nov 23 23:28: 5 2000 Delivered-To: freebsd-arch@freebsd.org Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (Postfix) with ESMTP id 28D3337B4C5 for ; Thu, 23 Nov 2000 23:28:04 -0800 (PST) Received: from adlmail.cup.hp.com (adlmail.cup.hp.com [15.0.100.30]) by palrel1.hp.com (Postfix) with ESMTP id 3D7B8C7B for ; Thu, 23 Nov 2000 23:28:03 -0800 (PST) Received: from cup.hp.com (p1000180.nsr.hp.com [15.109.0.180]) by adlmail.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id XAA24707 for ; Thu, 23 Nov 2000 23:28:02 -0800 (PST) Message-ID: <3A1E1882.38BB37FA@cup.hp.com> Date: Thu, 23 Nov 2000 23:28:02 -0800 From: Marcel Moolenaar Organization: Hewlett-Packard X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: arch@FreeBSD.org Subject: RQ review: sigaltstack changes Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Problem description: The kernel maintains state about whether the process is on the alternate stack or not. This state information is invalidated when the process switches from the alternate stack by means other than a sigreturn. Solution: The kernel determines whether the process is on the alternate stack or not by testing if the stack pointer is within the range of the alternate stack if such is defined. The p_sigstk.ss_flags variable is only used for backward compatibility. Patch: ftp://ftp.cup.hp.com/dist/marcel/sig.diff PR: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22286 With the fix, the trigger case in the PR works without work-around. Your comments, -- Marcel Moolenaar mail: marcel@cup.hp.com / marcel@FreeBSD.org tel: (408) 447-4222 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message