Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2000 23:28:02 -0800
From:      Marcel Moolenaar <marcel@cup.hp.com>
To:        arch@FreeBSD.org
Subject:   RQ review: sigaltstack changes
Message-ID:  <3A1E1882.38BB37FA@cup.hp.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3A1E1882.38BB37FA>