From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9949 invoked by alias); 18 Jun 2012 14:51:53 -0000 Received: (qmail 9763 invoked by uid 22791); 18 Jun 2012 14:51:50 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,TW_NX,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jun 2012 14:51:37 +0000 Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id q5IEpWOs023387; Mon, 18 Jun 2012 16:51:32 +0200 (CEST) Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id q5IEpUTo008021; Mon, 18 Jun 2012 16:51:30 +0200 (CEST) Date: Mon, 18 Jun 2012 14:51:00 -0000 Message-Id: <201206181451.q5IEpUTo008021@glazunov.sibelius.xs4all.nl> From: Mark Kettenis To: jan.kratochvil@redhat.com CC: gdb-patches@sourceware.org In-reply-to: <20120618142055.GA8597@host2.jankratochvil.net> (message from Jan Kratochvil on Mon, 18 Jun 2012 16:20:55 +0200) Subject: Re: Possible future NX ON_STACk regression Re: [patch 3/3] Use ON_STACK for i386/amd64 (gdb2495.exp regression) References: <20120613155103.GC26214@host2.jankratochvil.net> <20120618080907.GA24971@host2.jankratochvil.net> <20120618142055.GA8597@host2.jankratochvil.net> 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/msg00580.txt.bz2 > Date: Mon, 18 Jun 2012 16:20:55 +0200 > From: Jan Kratochvil > > 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 OK, go for it then.