Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2200809imu; Fri, 14 Dec 2018 07:19:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/UPn2pMUcWVJusiURhKRVhsrthgISUvVTt4dFyZho4+lTpra4uw7SKaReGPNqcQQkUssB2p X-Received: by 2002:a17:902:33c1:: with SMTP id b59mr3220234plc.220.1544800795454; Fri, 14 Dec 2018 07:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544800795; cv=none; d=google.com; s=arc-20160816; b=tUoRhkUDeAr7oSY+kWhNjbMiqRJGeG5X3g1S6Os+PfyFaCSuMKyzV+CfwitLleOsru 5tMFuKNjyiRDolIwdkwWY4lmiG9ycXGCyHPMtr3H/hPwowX7yM8mvnXjlbRUJMBfwvox Tpnl+sxNf3KEx1uqEIWog8gCLGxIehCTVArcYR2h1YENrpmUZukTbaL91xdMutOOO8yQ uO0UTr2hrudJgg9JVBA35VM/bk1ghMAdn1P2iCN8FmVflkpIO6fkkkRulsndGHW0PcbD jyMNMYp49PahYu/agzKZJ8/tT2okfg8JGy0eHx/pLg9aq9YkqVhNjjVHoZL6ccAMfkt2 VxmA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=pmQRde3qui9XZulBnc2dTI8GPz3IR+T9OTAfGIgrOMg=; b=vBATJo57NhKCGc6fluKSfIPqueaWlEP79nTLs+OvEw1IBtX9DIRnOKuvdVLtU3LAcp hBLyi2KSG/iu+Jk09M2TMrT9GU27LQACyOhf6ksUtvepA+Z6ACI5xtagJVY6cdgXhqXM afc5gy5WqJAgh1hyTOarBTpi59oY4YwlWzHBuUb8+OsuFRK5FTNKTIFzzFiJ1KQsXC6y coa2FfgVDUj83YI1ztjgKGJjaolNwn3HNsKtDRsurRpeq7GbPZtnlgZaudJu0XWr0V5l ZPdcBys9qXcH0SKLNloVFoeLApwZkqAEru5f8S6BenWI0D4VlvDypOKrsI4XFdy7zUj6 OuWg== 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 t3si2410553ply.126.2018.12.14.07.19.22; Fri, 14 Dec 2018 07:19:55 -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 S1730376AbeLNPSG (ORCPT + 99 others); Fri, 14 Dec 2018 10:18:06 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:54862 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730145AbeLNPSE (ORCPT ); Fri, 14 Dec 2018 10:18:04 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id E2D5D6083240; Fri, 14 Dec 2018 16:18:01 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1KDpv6F4BDFH; Fri, 14 Dec 2018 16:18:01 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 1C3C6608324E; Fri, 14 Dec 2018 16:18:01 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id urO14blIPsXz; Fri, 14 Dec 2018 16:18:01 +0100 (CET) Received: from blindfold.localnet (213-47-184-186.cable.dynamic.surfer.at [213.47.184.186]) by lithops.sigma-star.at (Postfix) with ESMTPSA id EF6236083240; Fri, 14 Dec 2018 16:17:59 +0100 (CET) From: Richard Weinberger To: David Laight Cc: 'Richard Weinberger' , "kevin@guarana.org" , "glaubitz@physik.fu-berlin.de" , Andy Lutomirski , "x86@kernel.org" , LKML , "open list:ABI/API" , "H. Peter Anvin" , Peter Zijlstra , Borislav Petkov , "fweimer@redhat.com" , Mike Frysinger , "H.J. Lu" , "dalias@libc.org" , "x32@buildd.debian.org" , Arnd Bergmann , Will Deacon , Catalin Marinas , Linus Torvalds Subject: Re: Can we drop upstream Linux x32 support? Date: Fri, 14 Dec 2018 16:17:59 +0100 Message-ID: <3143388.E8mgBzaflP@blindfold> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 14. Dezember 2018, 15:38:53 CET schrieb David Laight: > From: Richard Weinberger > > Sent: 13 December 2018 09:05 > > On Thu, Dec 13, 2018 at 6:03 AM Kevin Easton wrote: > > > > > > On Tue, Dec 11, 2018 at 11:29:14AM +0100, John Paul Adrian Glaubitz wrote: > > > ... > > > > I can't say anything about the syscall interface. However, what I do know > > > > is that the weird combination of a 32-bit userland with a 64-bit kernel > > > > interface is sometimes causing issues. For example, application code usually > > > > expects things like time_t to be 32-bit on a 32-bit system. However, this > > > > isn't the case for x32 which is why code fails to build. > > > > > > OpenBSD and NetBSD both have 64-bit time_t on 32-bit systems and have > > > had for four or five years at this point. > > > > They can also do flag-day changes and break existing applications, Linux not. > > Not true at all. > The binary compatibility in NetBSD is probably better than that in Linux > and goes back a long way. > > For the time_t changes new system calls numbers were assigned where needed. > The system headers and libc were updated so that recompiled code would > use the new system calls. > > The only real advantage that NetBSD has is that its libc (and standard > utilities) are released with the kernel making it much easier to get > applications to use the new features. > > This was also done a very long time ago when file offsets were extended > to 64 bits. > > Some of the system calls have quite a few 'compatibility' versions. > As well as the ones for emulations of other operating systems. > It has been possible to run copies of firefox compiled for Linux > under NetBSD. I stand corrected, I was under the impression that NetBSD went the same path as OpenBSD did. Thanks for pointing this out. Thanks, //richard