From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 172D81F5AE for ; Fri, 31 Jul 2020 13:22:49 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5F8813851C35; Fri, 31 Jul 2020 13:22:46 +0000 (GMT) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40086.outbound.protection.outlook.com [40.107.4.86]) by sourceware.org (Postfix) with ESMTPS id A303E3858D35 for ; Fri, 31 Jul 2020 13:22:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A303E3858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Szabolcs.Nagy@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qqDaHFIUJIpE93u4VGkgCZEt0pq+GtQZN8tameG4aUg=; b=YKhm0qTVBRAueRfqH5YXKxj+3EeKvlJPVvrgxMuoN7lmF7C2ITEhnaBWQ7oFdfYV1+E5V8c9w+J0Qw++9zUh/Od7pf8kFbY4oo9/yBcGOBo+7PCGwr9E7TaMfE7uV8DNfEVO5bJO1zj4O2g0sy82qiaeCY9PTc9ODBXqIXjhbDA= Received: from DB6PR07CA0052.eurprd07.prod.outlook.com (2603:10a6:6:2a::14) by AM4PR08MB2883.eurprd08.prod.outlook.com (2603:10a6:205:9::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.20; Fri, 31 Jul 2020 13:22:41 +0000 Received: from DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2a:cafe::44) by DB6PR07CA0052.outlook.office365.com (2603:10a6:6:2a::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.9 via Frontend Transport; Fri, 31 Jul 2020 13:22:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; sourceware.org; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT038.mail.protection.outlook.com (10.152.21.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.20 via Frontend Transport; Fri, 31 Jul 2020 13:22:40 +0000 Received: ("Tessian outbound 1c27ecaec3d6:v62"); Fri, 31 Jul 2020 13:22:40 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 2d592b92e00a6573 X-CR-MTA-TID: 64aa7808 Received: from 8e3dc8438273.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id FBD6180E-440A-4704-B6A4-6D6D03D22616.1; Fri, 31 Jul 2020 13:22:35 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 8e3dc8438273.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 31 Jul 2020 13:22:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f9bQ3zS+haQKbFxOSUKvYVd82shoUKRSdNcQovguABUhgFlQYa+mnBozQy5HONnPEYbwgb69iq/45DUXd6RC2ZkxXwZwFbkM/5DA5dLm9AAoPyeQvPOnB12dgy5qEgapBtiD4EH395YPs4G4jmkJIDcVvMqFF1NQiZwCDUcXGEmAF6FXpOPhUPV5rpgUFxFtk8HNRastedSJi0sZ4qso88j3U+fTS+uZR+MQd6wBHX1jPPB4X7jDCGOEcQwVXhvzpw1h6uFFR6Aq/NDzxaPzv/QmVrEXeUZuMJfhsJNvTyNOn2mmqeYtiPvU2sgAHCllwZwj4peKHQ3aXClGvR2Q5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qqDaHFIUJIpE93u4VGkgCZEt0pq+GtQZN8tameG4aUg=; b=DmcZst6mYGBlJo8MRkFlfmBK8wRfW5YNR78mNI5eZY3L5AU4m+Dt8IhTg9/U/7DlqqVmMVVsrZdvxNcnHzWLfo0BcHVq8oEJ7bPVifXiJtYQnrV8h95/4rsaB2Fmd1BoEmB2XUyvFgYYME+cgA5jPvNyCrx2a7fUqVxunupsOgJWOQv6AY7bZ7k2VT+cIfTSHTNitfz28nCBGRECWENjVO2CxLfmE1iKgC1rfEVB5GAGEKm/3TYLLop0plUOJEpGWYUuMTndXI3+dXClrvk98V78fECzW5PC+FjVa6iOt0Kbs+eFuNGfb9hLuqJAPwely7M0SZbDXg3JZp1/tVRzww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qqDaHFIUJIpE93u4VGkgCZEt0pq+GtQZN8tameG4aUg=; b=YKhm0qTVBRAueRfqH5YXKxj+3EeKvlJPVvrgxMuoN7lmF7C2ITEhnaBWQ7oFdfYV1+E5V8c9w+J0Qw++9zUh/Od7pf8kFbY4oo9/yBcGOBo+7PCGwr9E7TaMfE7uV8DNfEVO5bJO1zj4O2g0sy82qiaeCY9PTc9ODBXqIXjhbDA= Authentication-Results-Original: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; Received: from AM6PR08MB3047.eurprd08.prod.outlook.com (2603:10a6:209:4c::23) by AM6PR08MB4086.eurprd08.prod.outlook.com (2603:10a6:20b:a8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.18; Fri, 31 Jul 2020 13:22:33 +0000 Received: from AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::2404:de9f:78c0:313c]) by AM6PR08MB3047.eurprd08.prod.outlook.com ([fe80::2404:de9f:78c0:313c%6]) with mapi id 15.20.3239.020; Fri, 31 Jul 2020 13:22:33 +0000 Date: Fri, 31 Jul 2020 14:22:26 +0100 From: Szabolcs Nagy To: Florian Weimer , Carlos O'Donell Subject: Re: [PATCH] aarch64: update NEWS about branch protection Message-ID: <20200731132226.GB5387@arm.com> References: <20200729080850.26078-1-szabolcs.nagy@arm.com> <87bljyspte.fsf@oldenburg2.str.redhat.com> <20200729084930.GS7127@arm.com> <87lfj2r8z4.fsf@oldenburg2.str.redhat.com> <20200729091734.GT7127@arm.com> <20200731065856.GG24636@arm.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200731065856.GG24636@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: DM6PR13CA0001.namprd13.prod.outlook.com (2603:10b6:5:bc::14) To AM6PR08MB3047.eurprd08.prod.outlook.com (2603:10a6:209:4c::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from arm.com (217.140.106.55) by DM6PR13CA0001.namprd13.prod.outlook.com (2603:10b6:5:bc::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.9 via Frontend Transport; Fri, 31 Jul 2020 13:22:31 +0000 X-Originating-IP: [217.140.106.55] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 33083262-dd24-471e-2ff0-08d83554cd3a X-MS-TrafficTypeDiagnostic: AM6PR08MB4086:|AM4PR08MB2883: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: rxYyZ4qIFKiacPPA6nHZsNCndSwFjxn4Sio8q/N92Z0hBuK2eYJj6hp9UqoD0ugDKp4YovaZVTmBx+SBGIiX9fgxE3pZ1AjL6MwRnjhb10lwEdEc2qLlFjo1xkRChpSZyPCpD5Altz2GOLFp05BK8a8GpRlwCh9olBjXcrRelfprcsJd9c16tUyIBPZqFanB4Ez5tc9AxEjOsKmDK+ha6mtZxrB3uNt+v9wP0uNfhcY2x/QEOH8vG3ClSvQw38HlUMQRclqXq0d9hrfGTfriw2rCL3X3N9eCiz1UqscXF5xOnpbBQ9ipBa09sjYBUdq42OL/aIBUoGHFILzXuwEYqg== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR08MB3047.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(346002)(376002)(366004)(136003)(39860400002)(5660300002)(83380400001)(16526019)(8936002)(956004)(15650500001)(7696005)(2616005)(44832011)(36756003)(8676002)(4326008)(52116002)(6666004)(86362001)(26005)(110136005)(66556008)(66946007)(186003)(1076003)(478600001)(316002)(55016002)(66476007)(33656002)(2906002)(8886007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XlJTSc0J32NPYkwCgRHH+2IEp2PNLCbo0lYl9tlyC1Mn2WMQMsO1RKENWh2uMBc67wrgRP9xTVRA8Dt12izz1sONIomrNJoykvExuGT1ry7CnbyJj65/ZuIt1oWjHApFprebqnHI21cfAsEEbRYSp633jEGuA7KnEW9bRDj1TLZ2tqW/eHRB8HBGnVgMMFw7rkOBCVehM6f5aMAEW3bBlNOI3K1YHX8qe8kyfpSQFCRZuQNwXVqVe7VFuzTJ+dapnAPDsYUoP8onkkNFriSZFT/9Tz7hLs07WbQzYMflRry5Poee4YbBwwrZ3F2sfoKtTDUE2KF+/iXwkvHvu7NCtGAA+JN0aCe8Q/8lMZoHglynmMHj/NnEnhCj4RiKGdQDiyMhxbWoPKodnIkc17fwWjIcdoV1T6znP8/W40jd+FOe28MtfAqSFzGDKnLr7ZtpN497qbLf1VvLILomy7SMFv6X6nxDoNgCwh6yiVTAHMCBotzIL+jlmrvPagumdohOHlooebnO9xVsZxgc2YLW1oOQutG+Zuno9DRpVnI6nNgfEdpo+ECHvmI2f97wYY7xOzgRHQ6l1mQ5Ef34upWjVl/hpDKb8ifpkkZfJ4KtBbQf7MpNSHwiEYRjACBFear00Jb/bhdIYDZUKHZjLzfzdA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4086 Original-Authentication-Results: redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 0f136c5e-feac-4435-6729-08d83554c892 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: m10UF6RfvOODDEru7gKI6WVnvphtfKDpcD2WsblcLbHU+bPpJ6KSZHkoIFV+zTslVTL6jBaIhONehkikc8c5HjStVgnOY0cWTojOcD7YNbmOQwYItjVjhWmg+pebwFMBHZ/WP+Bsg4g5q6EuRzuVzQP3aA+aa5FoofjahWPv1dXQzNvYkm5QHA/BgA3vS5KLnuaGFRdLXYHNNuuBGgsh+1u96ENJDC9f6GGAM6RchOn0C908MJUanrThoh+uJkWhl6OK1eRB4rMpuoQo3BmcbaBOIefRZ8WrhfoJfTXcln/SGTapl0FTYjoEvLI4X8ZWLOPCkZwUDNVfpVNZiSlJ5gYe5+G0DX0tgCAAhADh2gqtR+/jSWsAOc/LB/KNoCCkvqPiYV3lU9E+VBHZjt0LMQ== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFTY:; SFS:(4636009)(396003)(136003)(39860400002)(346002)(376002)(46966005)(70206006)(70586007)(82740400003)(4326008)(8886007)(7696005)(44832011)(55016002)(36756003)(47076004)(81166007)(110136005)(2616005)(33656002)(336012)(316002)(16526019)(956004)(186003)(26005)(82310400002)(1076003)(478600001)(6666004)(2906002)(8676002)(83380400001)(5660300002)(15650500001)(86362001)(356005)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2020 13:22:40.9522 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 33083262-dd24-471e-2ff0-08d83554cd3a X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT038.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB2883 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: , Cc: Jakub Jelinek , libc-alpha@sourceware.org, jeremy.linton@arm.com Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" The 07/31/2020 07:58, Szabolcs Nagy wrote: > The 07/29/2020 10:17, Szabolcs Nagy wrote: > > The 07/29/2020 11:01, Florian Weimer wrote: > > > * Szabolcs Nagy: > > > > The 07/29/2020 10:11, Florian Weimer wrote: > > > >> * Szabolcs Nagy: > > > >> > diff --git a/NEWS b/NEWS > > > >> > index 1ef4a0a7a4..0e6ad5edc4 100644 > > > >> > --- a/NEWS > > > >> > +++ b/NEWS > > > >> > @@ -70,7 +70,9 @@ Major new features: > > > >> > > > > >> > * AArch64 now supports standard branch protection security hardening > > > >> > in glibc when it is built with a GCC that is configured with > > > >> > - --enable-standard-branch-protection. This includes branch target > > > >> > + --enable-standard-branch-protection (or if -mbranch-protection=standard > > > >> > + flag is passed when building both GCC target libraries and glibc, > > > >> > + in either case a custom GCC is needed). This includes branch target > > > >> > identification (BTI) and pointer authentication for return addresses > > > >> > (PAC-RET). They require armv8.5-a and armv8.3-a architecture > > > >> > extensions respectively for the protection to be effective, Carlos, i think this NEWS update would be a useful clarification, is there some concern about it? > > > >> > > > >> Please clarify if you need to pass the flags in CFLAGS or CC for glibc. > > > >> Thanks. > > > > > > > > cflags is enough, but it is hard to tell what > > > > the glibc build system does with the various > > > > cflags. > > > > > > > > if i simply override CFLAGS i get > > > > # error "glibc cannot be compiled without optimization" > > > > > > Okay, I trust you that CFLAGS is enough. > ... > > > My RM delegation has already expired, so I cannot approve your patch. > > > > ok. > > ping. > --