From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5078 invoked by alias); 18 Jun 2012 14:21:16 -0000 Received: (qmail 5066 invoked by uid 22791); 18 Jun 2012 14:21:15 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_NX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jun 2012 14:20:59 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5IEKxsE006406 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Jun 2012 10:20:59 -0400 Received: from host2.jankratochvil.net (ovpn-116-33.ams2.redhat.com [10.36.116.33]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q5IEKtIf011364 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 18 Jun 2012 10:20:58 -0400 Date: Mon, 18 Jun 2012 14:21:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: Re: Possible future NX ON_STACk regression Re: [patch 3/3] Use ON_STACK for i386/amd64 (gdb2495.exp regression) Message-ID: <20120618142055.GA8597@host2.jankratochvil.net> References: <20120613155103.GC26214@host2.jankratochvil.net> <20120618080907.GA24971@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120618080907.GA24971@host2.jankratochvil.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00578.txt.bz2 On Mon, 18 Jun 2012 10:09:07 +0200, Jan Kratochvil wrote: > In https://bugzilla.redhat.com/show_bug.cgi?id=832534 Nathan Sidwell reports > that inferior calls segfault with inferior non-executable stack and Fedora GDB > already containing this patch. I have heuristically found the problem affects only one Fedora kernel version/arch: https://bugzilla.redhat.com/show_bug.cgi?id=832534#c9 So the GDB patch should be compatible with Linux kernels in general I hope. Feel free to run the testcase on your kernel/CPU: http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/tests/ptrace-tests/tests/ret-to-nxpage.c?cvsroot=systemtap gcc -o ret-to-nxpage ret-to-nxpage.c -Wall -g; ./ret-to-nxpage; echo $? 0 == PASS Regards, Jan