Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5158402imu; Tue, 29 Jan 2019 13:56:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN6MDVIDfQtcPeIFy+Fm4aW1BtTnV3pobR0osvbL046mrp7QQsC4uM6/n+lYCIZkhtOj6XE8 X-Received: by 2002:a17:902:7848:: with SMTP id e8mr28386464pln.100.1548799019279; Tue, 29 Jan 2019 13:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548799019; cv=none; d=google.com; s=arc-20160816; b=iTpjU9dEM2aWsgRntnRYiKb4tiXw0Q+zw3reLX2hZC8jch7weBHApccszGTVWbd+qK QvjFrusuRXRS1jvVW6oLL/11jMpcCgzM8Wfto4XeKS9hA3JZCE1jdY68/cMuhxjimaeZ aiCVozcC29nOpsSj7P+a9Xgukx/zDZ3swRHcvhT7bfdAsa2KWDjFq6qWNvTGRqZPvCXW 0DgcgyxKjQMYtwx19zwKCQLTn9uukZCPuTEfri5FQ9S392TOIqqZzTlFx/pKl54d2TXV unTmcCS4fwy0l2JC8Bfj2eArUsFFehGTb6yqt8vmb6Hh0fM9v4h/vcv/k11Fo37Ur0S8 EIng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=tGD4o+ZuhrHqIpjbfJfcSZcJG5eiWeYE8QggyoIW71Q=; b=qtijt3U5tsSq/yulHUZDuk8FdmFb5+aWPCFhB3A0ociQzLuQ8neFSWLpvzYsoMod3s yIrtR+onqOroKo3sHvSzq7B8a0xQm6ECe6YAgYDs+ShtrkW5B3ZeEoFf0cysTSvzqGdw JD3VYlDu1XzN+8sy6C4AzPjYOt2hpCpeXh99FRiisQkki0Sfdkkbx0kweRFbUlEr29Iu o5to3sAvjvCmqDW8wyQfUKNMNp8ozJdpqWBrphep2uHfxMKpmn/uh/ZEZC6lLX7s+8bG cyr5StiNmSbsWakmlLR6aFLlUXaqgyw7LFgpJ8O8LxL59TujrMwFok6gS3nHmLwgp5kN RK/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p16si7149118pff.272.2019.01.29.13.56.43; Tue, 29 Jan 2019 13:56:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729556AbfA2V4d (ORCPT + 99 others); Tue, 29 Jan 2019 16:56:33 -0500 Received: from relay1.mentorg.com ([192.94.38.131]:65068 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727339AbfA2V4d (ORCPT ); Tue, 29 Jan 2019 16:56:33 -0500 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-01.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gobMk-0000De-NV from joseph_myers@mentor.com ; Tue, 29 Jan 2019 13:56:22 -0800 Received: from digraph.polyomino.org.uk (137.202.0.90) by svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 29 Jan 2019 21:56:19 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.90_1) (envelope-from ) id 1gobMg-0006bP-RG; Tue, 29 Jan 2019 21:56:18 +0000 Date: Tue, 29 Jan 2019 21:56:18 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Mathieu Desnoyers CC: carlos , Florian Weimer , Szabolcs Nagy , libc-alpha , Thomas Gleixner , Ben Maurer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Will Deacon , Dave Watson , Paul Turner , Rich Felker , linux-kernel , linux-api Subject: Re: [RFC PATCH glibc 1/4] glibc: Perform rseq(2) registration at C startup and thread creation (v6) In-Reply-To: <632671842.3079.1548781059601.JavaMail.zimbra@efficios.com> Message-ID: References: <20190121213530.23803-1-mathieu.desnoyers@efficios.com> <632671842.3079.1548781059601.JavaMail.zimbra@efficios.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Jan 2019, Mathieu Desnoyers wrote: > I recalled that aarch64 defines RSEQ_SIG to a different value which maps to > a valid trap instruction. So I plan to move the RSEQ_SIG define to per-arch > headers like this: > > sysdeps/unix/sysv/linux/aarch64/bits/rseq.h | 24 ++ > sysdeps/unix/sysv/linux/arm/bits/rseq.h | 24 ++ > sysdeps/unix/sysv/linux/bits/rseq.h | 23 ++ > sysdeps/unix/sysv/linux/mips/bits/rseq.h | 24 ++ > sysdeps/unix/sysv/linux/powerpc/bits/rseq.h | 24 ++ > sysdeps/unix/sysv/linux/s390/bits/rseq.h | 24 ++ > sysdeps/unix/sysv/linux/x86/bits/rseq.h | 24 ++ > > where "bits/rseq.h" contains a #error: > > # error "Architecture does not define RSEQ_SIG. > > sys/rseq.h will now include . We're trying to reduce the number of cases where most or all new glibc architecture ports need to provide a bits/ header, by making the generic headers handle the common case. So a generic header with a #error, and lots of architecture-specific headers mostly with the same value for RSEQ_SIG, seems unfortunate. I'd hope the generic header could use a generic value, with architecture-specific variants only for architectures with some reason for a different value. -- Joseph S. Myers joseph@codesourcery.com