From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2762 invoked by alias); 14 Jan 2019 20:30:22 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 2726 invoked by uid 89); 14 Jan 2019 20:30:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:209.85.222.194, H*RU:209.85.222.194, Hx-languages-length:889, fair X-HELO: mail-qk1-f194.google.com Return-Path: Subject: Re: Fwd: What can a signal handler do with SIGSTKSZ? To: Joseph Myers Cc: Florian Weimer , Szabolcs Nagy , Zack Weinberg , Christian Brauner , nd , GNU C Library References: <874lafezhe.fsf@oldenburg2.str.redhat.com> <87sgxzdjl4.fsf@oldenburg2.str.redhat.com> <61925098-4669-b478-9baf-644818d26a44@arm.com> <87d0ozb4c8.fsf@oldenburg2.str.redhat.com> <0a995c61-62d6-7b09-8b5d-1d77b33a242d@redhat.com> From: Carlos O'Donell Openpgp: preference=signencrypt Message-ID: Date: Mon, 14 Jan 2019 20:30:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-01/txt/msg00307.txt.bz2 On 1/14/19 1:19 PM, Joseph Myers wrote: > On Mon, 14 Jan 2019, Carlos O'Donell wrote: > >> If *I* were a developer I might expect as Zach pointed out, that I can call >> every function on the list of callable AS-safe functions, at least once, >> without recursion, and expect them to operate correctly. >> >> A test case for this would therefore be a main, that register a handler >> that exercises *all* functions in the AS-safe list, and then looks for >> stack corruption at each execution. > > The POSIX AS-safe list, or the functions that are currently documented as > AS-safe in glibc (an observed property, not necessarily a commitment to an > API)? (strtold uses a fair amount of stack, for example, and is listed as > AS-safe in glibc.) In the comment above I was only considering the POSIX AS-safe list. -- Cheers, Carlos.