Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2874242imu; Sun, 11 Nov 2018 02:55:01 -0800 (PST) X-Google-Smtp-Source: AJdET5fx8Ml08DF012ZeD/HJiJQVE6E+cEQHckJj1CtHHhnPKDiLaltTn3q+NsYanZd7toYZawuj X-Received: by 2002:a65:50c1:: with SMTP id s1mr3457550pgp.350.1541933701515; Sun, 11 Nov 2018 02:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541933701; cv=none; d=google.com; s=arc-20160816; b=wyYVHzO53cA9SZwkXKl0N6sHeaeEEoCfpH729skZHyjlVNdZPDAJyu66A7jhYA+RN0 qPBTnz+aDGIEVsy1sXY3Z/MC0UrRg1nZl2QZKS2SXxXXEQhc5OSHGrj85Jh1323WOpSY NPeid37+vIemnG2uGEEvvvKJNmgMiPw32RlfUAMJKSln/zTxWFdcEwaRQzjYoLTC+hpq Tg81nXA8Zzq7yge17T8tNIY5+BT44MsebtaohUzbIP/9QxxuzeJfDmLsuE3BZOCuMIOZ TW7GWiSjjM/667hWX0gEoNczNWPkZjyhgZcevXeWZe5Ws3zrKU+rIUx60CdjhLYIK8wf TJCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc:dkim-signature; bh=HWUNH/MqxAP5HbUo/QpN1R6G6mfVls8zZ2HHTBQLKYI=; b=o3Ckw9LKf/NNboy/OtDfV5fnp5bQb0xHj37U2KGzeCYh3qXqeOw5mCEW8x9faFcDqj VloA+LuY14jqnEW1/xV2awhRY95h3hBVymuqFE5E02SjhyR8EqftccJ9pFIPwSN9R64s +uBQ9zTlC5o0Ww5m0/8pV79AxHuzAvOef/cljK1zKxcgL8yK6U0RDEwOGhprb355QR91 vcbwzYzdS0BPrtJPfQ5R2Yo8W5biZiBW6nYrpem6m9ygzEHY9r1PMAnT90FvBPJVTdJd iILAVPrUP3LqCX/V+RuM+e1W022enSs41C0PzuD1wqSvPiiJ6iDqGptEXJqK4fB3pEcm 4GKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KRYwZKUL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z70-v6si14748202pfi.165.2018.11.11.02.54.30; Sun, 11 Nov 2018 02:55:01 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=KRYwZKUL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbeKKUmN (ORCPT + 99 others); Sun, 11 Nov 2018 15:42:13 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:32870 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727344AbeKKUmN (ORCPT ); Sun, 11 Nov 2018 15:42:13 -0500 Received: by mail-wm1-f66.google.com with SMTP id f19-v6so6811991wmb.0; Sun, 11 Nov 2018 02:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=cc:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HWUNH/MqxAP5HbUo/QpN1R6G6mfVls8zZ2HHTBQLKYI=; b=KRYwZKULaOgjJeo9lg926+pfbqdCydm3Vn+OXNs1a0ekEx5bAhmpiZnXoJXU6kk6O6 lvMULzynscFJgPq2RyfRys8PnRsFUENLWFJUhc0TnvH+qKCdbvD61QGhRoLHocOL0PhD 2H4AjvaWEJamavyjzauf64RNnTQwWZZY53cfumzE9oIQTC2Ekvleh9/D7LRg8Mk/h5zY jL4jBQLahGU028qIogtBAe2VI0AM7JKvMBVvJ8GfkOI1Xo8QBHUMn7PpC0HNAAfCKG/g k3jTMbvUQGEQTKikiI7n0AyajeHne5wFH417gGL1otHP0f2qTbNULLJGTrSqHo8Rqbmk x6iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:cc:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HWUNH/MqxAP5HbUo/QpN1R6G6mfVls8zZ2HHTBQLKYI=; b=O/ILsF64r0GXc9gFqwKZGW1Xe1m0bZVipLYOaSgCPU6AlmOdYOJqCucLcQqi8Jdpua Yt1Z9gD77bWvjBL0eIN5iQJ8JEmunxLw5luv/J3S9UpkIVyQINwOdlgiY/NED/vCcKoO NEXcZH28FVldSOmPn0b043Zk1wmWL4PPcEc+LvGNzp8/qOGGIqLVeeggOdTpAMAA+vYj Eorky0tjjAtc774JrbbcZDm6K8RneYCDsCOG4ny1+RX0nzSPIS9NxZKribNKGwrWR/Ea 25OZUy5OyQmHew5nMEMLrjvXqUqSvzjuvH2+/Yv2lLMgeMzt0G8NH1zMifWkOfoLGv/4 Vp5g== X-Gm-Message-State: AGRZ1gLt0xI3Fa/MHNMONUGJR2GcRafQrlbHB3WUA2YkvCYznLE5KZw3 Lv4rW7Xi09Ese2PNdGwsFYk= X-Received: by 2002:a1c:f614:: with SMTP id w20-v6mr1740997wmc.136.1541933636760; Sun, 11 Nov 2018 02:53:56 -0800 (PST) Received: from [10.0.20.223] (mail.jambit.com. [95.157.63.22]) by smtp.gmail.com with ESMTPSA id x142-v6sm20542710wmd.20.2018.11.11.02.53.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Nov 2018 02:53:56 -0800 (PST) Cc: mtk.manpages@gmail.com, Daniel Colascione , linux-kernel , Joel Fernandes , Linux API , Vlastimil Babka , Florian Weimer , Carlos O'Donell , "libc-alpha@sourceware.org" Subject: Re: Official Linux system wrapper library? To: Willy Tarreau References: <20181111081725.GA30248@1wt.eu> From: "Michael Kerrisk (man-pages)" Message-ID: <3664a508-ca74-4ff0-39a6-34543194a24e@gmail.com> Date: Sun, 11 Nov 2018 11:53:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181111081725.GA30248@1wt.eu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/11/18 9:17 AM, Willy Tarreau wrote: > On Sun, Nov 11, 2018 at 07:55:30AM +0100, Michael Kerrisk (man-pages) wrote: >> [1] https://sourceware.org/bugzilla/show_bug.cgi?id=6399 is a >> longstanding example. > > This one was a sad read and shows that applications will continue to > suffer from glibc's prehistorical view on operating systems and will > continue to have to define their own syscall wrappers to exploit the > full potential of the modern operating systems they execute on. This > reminds me when one had to write their own spinlocks and atomics many > years ago. Seeing comments suggesting an application should open > /proc/$PID makes me really wonder if people actually want to use slow > and insecure applications designed this way. Bah, after all, this > wipes quite a bit of the shame I feel every time I do something to > bypass it :-/ > > The sad thing is that the energy wasted arguing in the bug above could > have been better spent designing and implementing a generic solution > to expose syscalls without depending on glibc's politics anymore. I'm not sure I'd view the glibc position quite so harshly (although it is disappointing to me that bug 6399 remains open). I think they are simply short of people to work on this task. There was a lengthy period where no syscall wrappers were being added (pretty much from 2.16 to 2.24, as far as I can tell), but that has changed. And there is an expectation in some cases from the kernel side that glibc will provide wrappers that build on (rather than just wrap) some syscalls. And sometimes those wrappers are non-trivial. A converse question that one could ask is: why did a culture evolve whereby kernel developers don't take responsibility for working with the major libc to ensure that wrappers are added as part of the job of adding each new system call? Yes, I know, there are some historical reasons (and even today, IMO, they do themselves no favors by requiring a CLA), but glibc really is a different place today, compared to where it was a few years ago. Cheers, Micahel -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/