Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1370071imu; Tue, 11 Dec 2018 18:40:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/WyLWBne3Cg8JHCNxJ+VMDmv7CmKNCvBY6HJ1AvIMURI7TWi8xBvtnIAtmSJpkXhhFe1quU X-Received: by 2002:a63:ef04:: with SMTP id u4mr17053010pgh.197.1544582407775; Tue, 11 Dec 2018 18:40:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544582407; cv=none; d=google.com; s=arc-20160816; b=zw1ozGdlrp5j0jX6jhI+nBVgmLgP3UTouk6C1qTbYDr8PNl5IQ1Rs5nnbTeGET1CMU MrDZirSeN957XhtHv+SV8yNcs+q3d1J353+Lxl4vDPv5nVwGnmEhAKxyMsF8DHYXiO3D w5MEIvKa9MhfZXtRhq6GY1RlHIQ9USVDQLUDOEbMnbo++OLjfP0HTBcZnrXNbrUUMzOw BBbks4V882VTUJWaJOOAVuml2OpZSQaTt2xeQXk/35fJ4/EPQ3q5GWAQrasGrSdFcpdL RxGK2eLsayMyQbnDZBE17r81EaEG2xnUw5npZppdtdn/VNL9UDbQYTymJ3t2KlioUe0D luGA== 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 :content-language:references:message-id:in-reply-to:subject:cc:to :from:date; bh=HraUQdBzH60mrUSGdUA2kXJf8q94CTq55hZDkau9HM0=; b=f5XKOfGBqFg9gRfoF/sm8V1P5nrIMuc8A3zybzeL7cK5/n6GOrwyxXAjYsheC+LRPZ ZlZcHFvntTPUeFwV5H94SiKz7V4K2KPYq2SccXWQ6LmFpxj1XxmujB6gCbP3amV4i3HZ mM7Efts/QTk3dFm0j9PLFj10Lqz+rVKvR+toX5kBjdakeZtvzm1Im8QeVJ1hmKW3kusX gomaIWZEPb6BkLNPzR346RWcoknch3ufwSYWo5eNt2YmkL3MWnrtZTdnUX/A7AWF58mc cFqVwbNFhZX4Pb3D8MoidMSL/yOYtqN154WFcFdtSAmOe2Cn92oXIXmFKQ98+EP3OdM7 Y6xg== 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 m7si17231989pfc.118.2018.12.11.18.39.52; Tue, 11 Dec 2018 18:40:07 -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 S1726256AbeLLCjB convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 Dec 2018 21:39:01 -0500 Received: from static-87-79-237-121.netcologne.de ([87.79.237.121]:48017 "EHLO herc.mirbsd.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbeLLCjB (ORCPT ); Tue, 11 Dec 2018 21:39:01 -0500 Received: from herc.mirbsd.org (tg@herc.mirbsd.org [192.168.0.82]) by herc.mirbsd.org (8.14.9/8.14.5) with ESMTP id wBC2XuIu018245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Dec 2018 02:33:57 GMT Date: Wed, 12 Dec 2018 02:33:56 +0000 (UTC) From: Thorsten Glaser X-X-Sender: tg@herc.mirbsd.org To: Andy Lutomirski cc: Linus Torvalds , X86 ML , LKML , Linux API , "H. Peter Anvin" , Peter Zijlstra , Borislav Petkov , Florian Weimer , Mike Frysinger , "H. J. Lu" , Rich Felker , x32@buildd.debian.org, Arnd Bergmann , Will Deacon , Catalin Marinas Subject: Re: Can we drop upstream Linux x32 support? In-Reply-To: Message-ID: References: Content-Language: de-DE-1901, en-GB X-Message-Flag: Your mailer is broken. Get an update at http://www.washington.edu/pine/getpine/pcpine.html for free. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski dixit: >That’s the thing, though: the whole generic kernel compat >infrastructure assumes there are at most two ABIs: native and, if >enabled and relevant, compat. x32 breaks this entirely. MIPS had o32, n32, n64 since like forever. ARM has old ABI, EABI and now 64-bit. Other architectures are yet to come. >IMO the real right solution would be to push the whole problem to >userspace: get an ILP32 system working with almost or entirely LP64 Is this a reflex of Linux kernel developers? ;-) I doubt that userspace is the right place for this, remember the recent glibc vs. syscalls debate. It would also need to multiply across various libcs. >How hard would it be to have __attribute__((ilp64)), with an optional >warning if any embedded structs are not ilp64? This plus a wrapper to You mean LP64. Impossible, because LP64 vs. ILP32 is not the only difference between amd64 and x32. bye, //mirabilos -- I believe no one can invent an algorithm. One just happens to hit upon it when God enlightens him. Or only God invents algorithms, we merely copy them. If you don't believe in God, just consider God as Nature if you won't deny existence. -- Coywolf Qi Hunt