Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7854818imu; Thu, 15 Nov 2018 02:35:50 -0800 (PST) X-Google-Smtp-Source: AJdET5f1mzpZAknO3U+BA33GGwlKzAF1ffe2jdA8BXhvMHT5pF9fRvZDuAXWNBm9GQML3tEcp4L/ X-Received: by 2002:a17:902:7848:: with SMTP id e8mr5858442pln.100.1542278150673; Thu, 15 Nov 2018 02:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542278150; cv=none; d=google.com; s=arc-20160816; b=BIylpJCziT0TPW7kAovp1movABvzObjXWIhF53L6PAjhC0TEeoj7YE7z9DAvICv30F 2lu6hf+rktcsfu0B4WL6/hqcvGr4n3WhKfh+4NQmDL67dMDjDUl+RO+Ju+U4qymHyrjA kqOGJ8QTJXUjLVWEMC2vBSsdjiwM1kqGEEmQluunJR8ypFTRZnMSX/Qyh/qHnYrm7BHM Ek1BqOw62Lgfu5py428F8k/Y1u8QISbazCfpShCJgpXhhzMym9mD0+jH9vwq+F5DiYZ+ ahnQeKLJ2O+oebxGIAehoiaMAC6HZZ6pHBuvzBczJXN4dWfKujsAF9z/v6GeSH9UBO5a zBfw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dXY7acC3UoS6iUZn6QvMiCHeoGojn0HtSgOmGDVqzRc=; b=eX8VKRm91rfBmC7xFkre5Ws9CId1J1pUQ9X/ER0RKN9stBVqXSWe1sArIdSo/NoM3K rIL1jwXuiDCksRQ90CQ8EqwADnB/1bLx/rguhWbDHppkF6jc9qNUyMh1RJa/S03tt7i+ wSCWyjXX1PR3kE3tivBlKcEGJbGqZgHFtXmd23hUE0tJBtWP+tvV99r7nVK1lHpF3Oi0 I486dorKMMZ/DwETxGExVW1FchKPNXerMYdcXToRIFr21KvEnHU4b+RmUXjvuz76oQX+ Fg+CTi0cLD/eU/WQL/WpNc2ub6c48cVg7kNHysPKSGNwOzOA+9rpHrdYCNYcnCysxmBy MrNw== 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 a3-v6si25717372pgg.413.2018.11.15.02.35.35; Thu, 15 Nov 2018 02:35:50 -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 S2387780AbeKOUlS (ORCPT + 99 others); Thu, 15 Nov 2018 15:41:18 -0500 Received: from foss.arm.com ([217.140.101.70]:59708 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732655AbeKOUlR (ORCPT ); Thu, 15 Nov 2018 15:41:17 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 26D64A78; Thu, 15 Nov 2018 02:34:02 -0800 (PST) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2CD9F3F718; Thu, 15 Nov 2018 02:34:00 -0800 (PST) Date: Thu, 15 Nov 2018 10:33:57 +0000 From: Dave Martin To: Florian Weimer Cc: Andy Lutomirski , Daniel Colascione , "Michael Kerrisk (man-pages)" , linux-kernel , Joel Fernandes , Linux API , Willy Tarreau , Vlastimil Babka , Carlos O'Donell , "libc-alpha@sourceware.org" Subject: Re: Official Linux system wrapper library? Message-ID: <20181115103357.GM3505@e103592.cambridge.arm.com> References: <877ehjx447.fsf@oldenburg.str.redhat.com> <875zx2vhpd.fsf@oldenburg.str.redhat.com> <20181113193859.GJ3505@e103592.cambridge.arm.com> <69B07026-5E8B-47FC-9313-E51E899FAFB0@amacapital.net> <20181114105449.GK3505@e103592.cambridge.arm.com> <877ehfdgzn.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877ehfdgzn.fsf@oldenburg.str.redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2018 at 12:40:44PM +0100, Florian Weimer wrote: > * Dave Martin: > > > Fair points, though this is rather what I meant by "sane essentials". > > Because there are strict limits on what can be done in the vDSO, it may > > be more bloat-resistant and more conservatively maintained. > > > > This might provide a way to push some dumb compatibility kludge code > > that receives little ongoing maintenance outside the privilege wall, > > whereas it has to sit in the kernel proper today. > > > > In theory we could opt to advertise new syscalls only via vDSO entry > > points, and not maintain __NR_xxx values for them (which may or may > > not upset ptrace users.) Anyway, I digress... > > Is the vDSO available across all architectures? (I don't think we use > it on all architectures in glibc.) It's probably not available on all arches. > If not, a vDSO-based approach would merely lead to even more variance > between architectures, which can't be a good thing. That's a fair concern. Channeling syscalls through the vDSO could allow for a uniform syscall interface at the ELF linkage level, but only those arches that have a vDSO. There may be other issues too. Also, I don't say that we should definitely do this, just that it's a possibility. Cheers ---Dave