From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id 7E76B388F05D for ; Mon, 11 May 2020 19:22:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7E76B388F05D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fw@deneb.enyo.de Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1jYE0W-0001Y7-5D; Mon, 11 May 2020 19:22:32 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1jYE0W-0001Qe-2Y; Mon, 11 May 2020 21:22:32 +0200 From: Florian Weimer To: Szabolcs Nagy Cc: libc-alpha@sourceware.org, Sudakshina Das Subject: Re: [PATCH 11/12] aarch64: redefine RETURN_ADDRESS to strip PAC References: <20200430173458.GV29015@arm.com> <20200430174518.GG29015@arm.com> Date: Mon, 11 May 2020 21:22:32 +0200 In-Reply-To: <20200430174518.GG29015@arm.com> (Szabolcs Nagy's message of "Thu, 30 Apr 2020 18:45:18 +0100") Message-ID: <87y2py46pz.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2020 19:22:34 -0000 * Szabolcs Nagy: > +/* This is needed when glibc is built with -mbranch-protection=pac-ret. */ > +#undef RETURN_ADDRESS > +#define RETURN_ADDRESS(n) XPAC(__builtin_return_address(n)) This looks suspicious. Is __builtin_return_address ever useful without the decoding? If not, why doesn't GCC emit the PAC removal itself?