From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Two issues with stack overflow protection Date: Wed, 29 Jul 2015 00:06:44 -0700 Organization: UCLA Computer Science Department Message-ID: <55B87B84.4000105@cs.ucla.edu> References: <838ua0xkln.fsf@gnu.org> <55B85E43.6050306@cs.ucla.edu> <55B86E65.6030000@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1438153625 7464 80.91.229.3 (29 Jul 2015 07:07:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2015 07:07:05 +0000 (UTC) To: Daniel Colascione , Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 29 09:06:56 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZKLS4-00085w-6L for ged-emacs-devel@m.gmane.org; Wed, 29 Jul 2015 09:06:56 +0200 Original-Received: from localhost ([::1]:33608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKLS3-0000y5-87 for ged-emacs-devel@m.gmane.org; Wed, 29 Jul 2015 03:06:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKLS0-0000x0-BL for emacs-devel@gnu.org; Wed, 29 Jul 2015 03:06:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKLRz-0001hG-LM for emacs-devel@gnu.org; Wed, 29 Jul 2015 03:06:52 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKLRu-0001fX-2y; Wed, 29 Jul 2015 03:06:46 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 32B63160728; Wed, 29 Jul 2015 00:06:45 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dA5otniRPHS7; Wed, 29 Jul 2015 00:06:44 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8801F160CB7; Wed, 29 Jul 2015 00:06:44 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id N45BnKvChMS1; Wed, 29 Jul 2015 00:06:44 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6A0B8160728; Wed, 29 Jul 2015 00:06:44 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 In-Reply-To: <55B86E65.6030000@dancol.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188160 Archived-At: Daniel Colascione wrote: > What's wrong with just mprotecting a guard page at the end of the stack, > and on overflow, giving that region normal protection, unwinding as > normal, then, at top level, restoring the guard page? Unwinding can grow the stack.