From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29988 invoked by alias); 6 Feb 2014 16:54:59 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 29975 invoked by uid 89); 6 Feb 2014 16:54:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Feb 2014 16:54:58 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s16GsuKw001721 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 6 Feb 2014 11:54:56 -0500 Received: from [10.3.113.180] (ovpn-113-180.phx2.redhat.com [10.3.113.180]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s16Gst0h028510; Thu, 6 Feb 2014 11:54:55 -0500 Message-ID: <52F3BE5F.9050005@redhat.com> Date: Thu, 06 Feb 2014 16:54:00 -0000 From: "Carlos O'Donell" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Will Newton CC: "libc-ports@sourceware.org" , Patch Tracking Subject: Re: [PATCH v2] ARM: Add SystemTap probes to longjmp and setjmp. References: <1391594162-22269-1-git-send-email-will.newton@linaro.org> <52F3B7C0.8000207@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00010.txt.bz2 On 02/06/2014 11:48 AM, Will Newton wrote: > On 6 February 2014 16:26, Carlos O'Donell wrote: >> On 02/05/2014 04:56 AM, Will Newton wrote: >>> Now the ARM port implements pointer encryption for jmpbufs, gdb needs >>> a SystemTap probe point in longjmp to determine the target PC of >>> a call to longjmp. This patch implements the probe points in longjmp >>> and a similar probe point in setjmp. >>> >>> In order to have all the appropriate registers available to pass to the >>> probe this reorders the layout of jmpbuf, putting the sp and lr registers >>> at the start rather than the end. >>> >>> Tested on armv7, no new failures in the glibc testsuite and confirmed >>> that this fixes the gdb.base/longjmp.exp failures in the gdb testsuite. >> >> This looks good to me. >> >> If it's considered a bug, please check this in immediately and CC Allan >> to keep him in the loop for these last minute bug fixes. >> >> We are about to freeze so the 2.19 branch can be cut. If there is anything >> else like this please bring it to his attention immediately. > > Sorry I should have been clearer, I am proposing this patch for 2.20. > > It is a regression of functionality to add pointer encryption without > this patch as gdb now cannot deal with longjmp calls as well as it > could previously but I agree with Jospeh that it's not appropriate to > push a change of this nature so late in the freeze. As long as gdb isn't broken by not having the patch then you are correct that this is inappropriate for 2.19. Cheers, Carlos.