Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1447847ybe; Wed, 11 Sep 2019 15:23:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzufgNMyj62bdxKDCVJ4OwCSvCAUX8ZTS8aWPB+0ONQfSplJTeHnCsQRKBM33Uo9QeTFEwY X-Received: by 2002:aa7:ce89:: with SMTP id y9mr38044221edv.255.1568240587895; Wed, 11 Sep 2019 15:23:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568240587; cv=none; d=google.com; s=arc-20160816; b=KF5DlsPzjWEhu3sBtRPD8SosU3dlzbBR16tX46rQUjDaj5Q2p49yvRnlpM7uQoSYSq FIxs/kpIaYBVbygvCXyjpVpeL1mjVWtKZ4Sm9BeN2Q91YZdmTRfqU85pZmFPzwOHViCf QosHje0yU8RRXXvsAa/TZ42MYCk2xLksxjWE5gvpZaUkzMPd5vcdmg8bCj1tTsJUEja8 ynAIaQ+5DCimeuhQW8vX0l+BPVz5PTtLW0b9OVMmHgOBZSY5uuENv+i5nV9IdZoH2L0c TTIR1LQpyrNB+EviiZOI9INKQl5vQ7SiGgpbY1861GWLpIQBbf2stVumP7biCj1bf/L2 Poog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6aj6OZHmhtmfeDXqEhT7lE+fvKRIjOFyppLzs2dDxAE=; b=OjF19qcsUwB9lVly3XYGGBL/kAiFozMnaPJz4QjTtEc1pgI9tGww7n5sKd+/h90JWG YpZ4Oo5RMGeMesRguP7gZLsAv1jfXC2iCIz8Jm+/u5xA14LgMnnRDSRHDI88uXW9IEs8 ptX9NizgEnWyRYtlPg9jPiHsfRf3YnTJkEV8l5oIlQbTX/o3vOGXi2Ivkz7Is29/wtBv FYMp47W9CuFJyia8VJsU2EjXa5vhU+hTcju9wTTuVtYSMjtpHaJgQ0YOyyo2YQudQcpN +3Ur5see7tTkOdO9hTTor6dJUiumCa5SRQ5AN0DElhhLaZPucPVQ8266L3FNeIJtWdz1 ZVNA== 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 x62si12097424ede.352.2019.09.11.15.22.44; Wed, 11 Sep 2019 15:23:07 -0700 (PDT) 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 S1728930AbfIKUIz (ORCPT + 99 others); Wed, 11 Sep 2019 16:08:55 -0400 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:48018 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728808AbfIKUIz (ORCPT ); Wed, 11 Sep 2019 16:08:55 -0400 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1i88uY-0003DM-00; Wed, 11 Sep 2019 20:08:18 +0000 Date: Wed, 11 Sep 2019 16:08:18 -0400 From: Rich Felker To: Florian Weimer Cc: Carlos O'Donell , Mathieu Desnoyers , Joseph Myers , Szabolcs Nagy , libc-alpha@sourceware.org, Thomas Gleixner , Ben Maurer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Will Deacon , Dave Watson , Paul Turner , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH glibc 2.31 1/5] glibc: Perform rseq(2) registration at C startup and thread creation (v12) Message-ID: <20190911200818.GB9017@brightrain.aerifal.cx> References: <20190807142726.2579-1-mathieu.desnoyers@efficios.com> <20190807142726.2579-2-mathieu.desnoyers@efficios.com> <8736h2sn8y.fsf@oldenburg2.str.redhat.com> <7db64714-3dc5-b322-1edc-736b08ee7d63@redhat.com> <87ef0mr6qj.fsf@oldenburg2.str.redhat.com> <4a6f6326-ea82-e031-0fe0-7263ed97e797@redhat.com> <877e6er4ls.fsf@oldenburg2.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <877e6er4ls.fsf@oldenburg2.str.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 11, 2019 at 09:54:23PM +0200, Florian Weimer wrote: > * Carlos O'Donell: > > > On 9/11/19 3:08 PM, Florian Weimer wrote: > >> * Carlos O'Donell: > >> > >>> It would be easier to merge the patch set if it were just an unconditional > >>> registration like we do for set_robust_list(). > >> > >> Note that this depends on the in-tree system call numbers list, which I > >> still need to finish according to Joseph's specifications. > > > > Which work is this? Do you have a URL reference to WIP? > > > > > I think realistically this is needed for the Y2038 work as well if we > want to support building glibc with older kernel headers. “glibc 2..31 > will have Y2038 support and rseq support, but only if it runs on a > current and it happens to have been built against sufficiently recent > kernel headers” is a bit difficult to explain. The current kernel part > is easy enough to understand, but the impact of the kernel headers on > the feature set has always been tough to explain. Especially if you > factor in vendor kernels with system call backports. I'm in favor of in-tree syscall numbers list. If you don't want O(n) per-arch work, though, you could just define the 'base number' for each arch and use the fact that all the new syscalls share a common numbering (i.e. base + constant depending only on syscall). I think including the list with glibc is more robust though, and would eliminate the need to check for definitions of older (pre-unification) syscalls glibc wants to use. Rich