NetBSD Problem Report #43581

From jruohone@gmail.com  Wed Jul  7 15:36:54 2010
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 69D4063BA43
	for <gnats-bugs@gnats.netbsd.org>; Wed,  7 Jul 2010 15:36:54 +0000 (UTC)
Message-Id: <20100707135827.53B18F890@marx.bitnet>
Date: Wed,  7 Jul 2010 16:58:27 +0300 (EEST)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: Support for pthread(3) red zones
X-Send-Pr-Version: 3.95

>Number:         43581
>Category:       lib
>Synopsis:       Support for pthread(3) red zones
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 07 15:40:00 +0000 2010
>Closed-Date:    Wed Jul 07 19:32:15 +0000 2010
>Last-Modified:  Fri Jul 09 17:05:02 +0000 2010
>Originator:     Jukka Ruohonen
>Release:        Irrelevant
>Organization:
-
>Environment:
>Description:

This is a support request for "red zones" or "guard pages" in the pthread(3)
implementation; see pthread_attr_getguardsize(3). To illustrate my (limited)
understanding of this:

		----------------
		| alignment... |
		----------------
		| thread attr  |
		----------------
		| thread stack |
		----------------
		| red zone     |
		----------------
		| alignment... |
		----------------

Note that this "red zone" should be a separate area at the end of the thread
stack. (I believe there was a bug in the Linux NPTL implementation where the
zone was reserved within stack size allocation.)

But the possible implementor likely knows what this is about.

>How-To-Repeat:

Code inspection.

>Fix:

Implementation.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: jruoho@NetBSD.org
State-Changed-When: Wed, 07 Jul 2010 19:32:15 +0000
State-Changed-Why:

It appears that this is already supported. I should have looked more
closely. Sorry for the noise.



From: Jukka Ruohonen <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43581 CVS commit: src/lib/libpthread
Date: Fri, 9 Jul 2010 17:03:05 +0000

 Module Name:	src
 Committed By:	jruoho
 Date:		Fri Jul  9 17:03:05 UTC 2010

 Modified Files:
 	src/lib/libpthread: TODO

 Log Message:
 As per (now closed) PR lib/43581, add a note about unsupported modifications
 to the red zone size.


 To generate a diff of this commit:
 cvs rdiff -u -r1.15 -r1.16 src/lib/libpthread/TODO

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.