Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp995225imm; Wed, 19 Sep 2018 10:10:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbGs/CV0o+eexmtENaaaZlvvSo4Tyj5apmlUbPLeE2SvwgetwQ4T9IKfl/G3LC5iOyxznAP X-Received: by 2002:a63:f44d:: with SMTP id p13-v6mr34217624pgk.257.1537377057008; Wed, 19 Sep 2018 10:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537377056; cv=none; d=google.com; s=arc-20160816; b=oqrTX5BIrnCSKqg/P72GrPh4S6ru6lRaV7KLPGxJOtK2vVGcsEShozITOn80ZfjZny Fj25RQxP8pqlzqz/Eb7XBMSqr1/TDIiGjnI1T5UHJwfTCxuEry4v/BFeD5dbMkG6qgvu 8NST4HLHf4B9fc+AjfrTUV71a72zh4lKwg51TVRn6z3kWJFMhmQM9wvXInWHso9P+r7i FxQK0jDEeeEEiPPPO+XZMOw9WjWuvVR5N74azMHe2XCXYaCEml57jptqHzDBiaH79Ncr zg9B8+HjdlCgiqkhnopu8j/72Rky56M3FfVWOwc6eQcL/U6HITQR6XwkpgFLdCEJTzpc +UCA== 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=XKN8lN/ulu5k+nQr14StCfy7UxD3BYZN3gi7+ynZnwc=; b=WdQ/OzMf5AZ5PiLjn6Ab6WeCBcidY6e79t5ll+TPX/+Nx5mRz5CLHyseXYN0rkGqgN TODU1EpV8zA1pExJySAZXBCO3wsJmvWj17bVtZsKD0ootUVr6FA8e8tNt8bT5WLiTaSq 7cKzZ5F87cvHtRCD6Dk82jiv2uodK2VyKpVoGNpDbhDDH48GkAmlAjoYB/1rqDN3QQ2v drThMpRraurFOdk4mT4K9E0Omv1Ngnr2S6ORpJcAkPDm+IuCZKpV3UyjUB2jsJZlFH/l ciAKxCSy8Tkj+4kMJNGXVJBM9u2Js6g92xaE95KScf9IZCGkWkV6rj9DZ1SOWmYZJKOH wPGw== 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 16-v6si19255693pgy.641.2018.09.19.10.10.41; Wed, 19 Sep 2018 10:10:56 -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 S1732152AbeISWtE (ORCPT + 99 others); Wed, 19 Sep 2018 18:49:04 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:53322 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731247AbeISWtE (ORCPT ); Wed, 19 Sep 2018 18:49:04 -0400 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 1g2fzQ-00029t-E3 from joseph_myers@mentor.com ; Wed, 19 Sep 2018 10:10:12 -0700 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; Wed, 19 Sep 2018 18:10:08 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.90_1) (envelope-from ) id 1g2fzM-0008Kr-G0; Wed, 19 Sep 2018 17:10:08 +0000 Date: Wed, 19 Sep 2018 17:10:08 +0000 From: Joseph Myers X-X-Sender: jsm28@digraph.polyomino.org.uk To: Mathieu Desnoyers CC: carlos , Florian Weimer , Thomas Gleixner , Ben Maurer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Will Deacon , Dave Watson , Paul Turner , libc-alpha , linux-kernel , linux-api Subject: Re: [RFC PATCH] glibc: Perform rseq(2) registration at nptl init and thread creation In-Reply-To: <67473000.8399.1537375994645.JavaMail.zimbra@efficios.com> Message-ID: References: <20180919144438.1066-1-mathieu.desnoyers@efficios.com> <67473000.8399.1537375994645.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-07.mgc.mentorg.com (139.181.222.7) 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 Wed, 19 Sep 2018, Mathieu Desnoyers wrote: > > This looks like it's coming from the Linux kernel. Can't the relevant > > uapi header just be used directly without copying into glibc (with due > > care to ensure that glibc still builds if the kernel headers used for the > > build are too old - you need such conditionals anyway if they don't define > > the relevant syscall number)? > > This is indeed in the list of "things to consider" I've put in the patch > commit message. If the usual practice is to build against uapi kernel headers > outside of the glibc tree, I'm fine with that. We build with, currently, 3.2 or later headers (since 3.2 is EOL there's a case for updating the minimum in glibc for both compile time and runtime, but I haven't proposed that since there isn't much cleanup that would enable and there's the open question of Carlos's proposal to eliminate the runtime check on the kernel version and just let things try to run anyway even if it's older than the configured minimum). Functions depending on new syscalls may return ENOSYS errors if the headers used to build glibc were too old. Since this patch is providing a data interface rather than functions that can set errno to ENOSYS, presumably you have some other way of signalling unavailability which would apply both with a too-old kernel at runtime and too-old headers at compile time. -- Joseph S. Myers joseph@codesourcery.com