Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2445846imu; Fri, 14 Dec 2018 11:07:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+xNQ3FQr8BR23ucDYUI9j1icscGl1gfU4IFAfEjzcYftZXMm22y63p1bDIVFQmtbjDdOE X-Received: by 2002:a63:5a57:: with SMTP id k23mr3717164pgm.5.1544814444732; Fri, 14 Dec 2018 11:07:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544814444; cv=none; d=google.com; s=arc-20160816; b=oStW98fzFAWnw1Z8a5BLXzzk1dB9ukj0TVZHxzE9j72fF1dOm18GD3cDJ2LQ3JsVDF dIV9GLRHSHG4vvVa70G8+R77bb5rp7Jr/zeXAuy9Ud69pFhijSEuhHmOppp2sCuB7ENt w/IIHUBT+64v+f5G5C/h2/NSJy1Ouw9LWGmuXZ7fW1T+ZeNA98N1hSjwsKgYoBslgqwi x6I5MOxsNKLGgg3c2iiUt8Ei4xLjvgsrJfN/YN9buDGmGu9KOrmbbBlix/FgLnP8hMD0 WplCuupWV2YWlD1s+9/5aGGjA5hohBmH4oxkdxzB1I3Gi/agd5qa2VO5TuaNpUmMlKg+ MzCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=HFArEsQ2wlNMkLl7FTUDdsS9lVVr/sQTHQJLquuhJvY=; b=Ypez61DRz4ekfJKdEwJoeLhO8q5jHoRsStQ1RhRi69sB6stkTzJDnRfdkG516ksjEs Icwv75mdggozJaszjp89qr71D58YPkuu/gdSjMAP/V9PWFNuZjoofhSEFXb3V/2O3zki xLupT2kSbcqMETXskV996dPQifj/I5QWi7iMHoGaC2oT9Nu5dL6WZc5DDK6eloPNgAaz qGzW3pTKQOJtb0yKGjHzEx0TMCBulk+szDRYSmB/V+wgzQ8lwQvFNkDXPJgD3A2yflqC uS0iz4W4CSIkQlv3IxO4NR25GRb98Xd1X8NUClOYSaax8sdlRUfjn6obzqv5dgNq7vwP UCkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=vpoEVzHj; 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 q16si4473078pgh.185.2018.12.14.11.07.09; Fri, 14 Dec 2018 11:07:24 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=vpoEVzHj; 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 S1730608AbeLNTFH (ORCPT + 99 others); Fri, 14 Dec 2018 14:05:07 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39797 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730460AbeLNTFG (ORCPT ); Fri, 14 Dec 2018 14:05:06 -0500 Received: by mail-pg1-f196.google.com with SMTP id w6so3098605pgl.6 for ; Fri, 14 Dec 2018 11:05:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HFArEsQ2wlNMkLl7FTUDdsS9lVVr/sQTHQJLquuhJvY=; b=vpoEVzHjXHvBKzsS9jtjtYLnnVL+eyVhHI+0fFNuEcqkgb70CYHN+rwkfuhHyJ6Vos onJNTJYI/nC8EOOW1PWp5VmwvIEATvDZW+8qzhnWa4oESE6+UFIX8JYYFf67PRlkFmUh tltUtWuJhcN8Edzgr2xVsvo9Z4w+JdE/Ml0P/GaAz0aZoVyNLFv4yJ6MvuTMXXHt320u otxVHGcLYaOi83gcrEE1DR/ybvI7FC6ElP3LUMPb9Kjhm0JoSRgAP5rcpa/WqhvVNBKa j9F1MFwFw3aYyjwUCOcTq1O4TTdjA+YFPJSLmP9TG11WIuUw2IDk5mToL09NCrtboqtW bLIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HFArEsQ2wlNMkLl7FTUDdsS9lVVr/sQTHQJLquuhJvY=; b=aYYruvfKYs9byf0tkjyGwvLrG0/VYl7gwxaGez6nEC1PQRnrROhlUf4bYPiCpRhT87 ZrPTFsozLnQSwY75q6QWWYX7TmGnyh8Msx/sK8OYGdqnrvVUmf9sm6aTEG15zioPXRTm qP1OEoFSanFBeCwqan/+ay1Ayhx/eBrFq4AUi2OBk26uhcGEOm4wCqOZm7QLmb9Ph17O yqvbmD4L5gBZNZeXi1CYQT9JzGrFz/wsQOOXDQLX5X0uWvRFQgajSh4SFB6D7bHH1Lwk U/UEfgV55lgpu6f75jB5kL+zsoABQEE+4QYJYUdVN5cowEIL5H/FsYN+Z4HBdZA/ggt3 Azgg== X-Gm-Message-State: AA+aEWYmuMZbJsmSi0FCs6ca0wKLi2k8basrnrVmDGIVDfg2TK2N80iL R2AbdDaymEaKzRJs+KjpakKRwQ== X-Received: by 2002:a63:6cc:: with SMTP id 195mr3706718pgg.401.1544813887394; Fri, 14 Dec 2018 10:58:07 -0800 (PST) Received: from ?IPv6:2600:1010:b040:6acb:bdde:f4f9:c60e:340a? ([2600:1010:b040:6acb:bdde:f4f9:c60e:340a]) by smtp.gmail.com with ESMTPSA id x2sm7742349pfx.78.2018.12.14.10.58.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Dec 2018 10:58:05 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Can we drop upstream Linux x32 support? From: Andy Lutomirski X-Mailer: iPhone Mail (16B92) In-Reply-To: <20181214165535.GZ23599@brightrain.aerifal.cx> Date: Fri, 14 Dec 2018 10:58:04 -0800 Cc: Florian Weimer , Bernd Petrovitsch , John Paul Adrian Glaubitz , Andy Lutomirski , X86 ML , LKML , Linux API , "H. Peter Anvin" , Peter Zijlstra , Borislav Petkov , Mike Frysinger , "H. J. Lu" , x32@buildd.debian.org, Arnd Bergmann , Will Deacon , Catalin Marinas , Linus Torvalds Content-Transfer-Encoding: quoted-printable Message-Id: References: <70bb54b2-8ed3-b5ee-c02d-6ef66c4f27eb@physik.fu-berlin.de> <20181213160242.GV23599@brightrain.aerifal.cx> <20181214161732.GY23599@brightrain.aerifal.cx> <87mup8gj1y.fsf@oldenburg2.str.redhat.com> <20181214165535.GZ23599@brightrain.aerifal.cx> To: Rich Felker Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Dec 14, 2018, at 8:55 AM, Rich Felker wrote: >=20 >> On Fri, Dec 14, 2018 at 05:38:33PM +0100, Florian Weimer wrote: >> * Rich Felker: >>=20 >>> This is all useless (and wrong since tv_nsec is required to have type >>> long as part of C and POSIX, regardless of ILP32-vs-LP64; that's a bug >>> in glibc's x32). >>=20 >> We should be able to fix standards if they prove unworkable in practice. >> In my opinion, if standards require complex solutions where an obvious >> and simple solution exists, then standards are wrong. >=20 > The requirement doesn't mandate complex solutions. There's nothing > complex about tv_nsec being long. long is the smallest type that C > guarantees to be large enough to store the range of values, which is > forever fixed and can't grow (because the definition of "nano" prefix > is fixed :). The type has been long ever since the structure was > introduced, and its being long means that there's lots of (correct!) > code using %ld (e.g. ".%.9ld" to format results as a decimal without > using floating point approximations) to print it. There might also be > code taking pointers to it to pass to functions, etc. >=20 > The only reason a "complex" need arises is that Linux did something > horribly wrong here, ignoring the specified type, when introducing an > obscure subarch that almost nobody uses. This kind of mistake is > becoming a theme in Linux (see also: msghdr). Application authors > should not have to pay the price for fixing this by retrofitting yet > another silly type like "snseconds_t" or something into programs to > accommodate the mistakes of x32. >=20 >=20 Does anyone know *why* Linux=E2=80=99s x32 has __kernel_long_t defined as lo= ng long? I assume that this is where this bug, and most of the other bugs, c= ame from. This may be silly, but the kernel could plausibly add a x32v2 where long is g= enuinely 32-bit, and then maybe we could drop the old x32 at some point. =46rom= all the discussion so far, it seems like there really is some demand for IL= P32, but it=E2=80=99s still not really clear that preserving compatibility w= ith existing x32 binaries in the long run is critical.=