Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1964469imu; Fri, 14 Dec 2018 03:43:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+EP8Gjrx0gadbh81bRcSrafAB3WphbVdYa8OhQu5aHr0H18zXL8eEW2smNDlbJLIKsBgA X-Received: by 2002:a17:902:9345:: with SMTP id g5mr2507369plp.148.1544787833146; Fri, 14 Dec 2018 03:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544787833; cv=none; d=google.com; s=arc-20160816; b=L/NoZoKiN02mBDo/b7aRc38z6IrO/sM4Yft67pdbnZaeaiobIi2FqCJQF31+knTV0i W9HRXXPcDUI+bOs761qPymoyXpA45LS0P3jojzo+KVSPzIDt6IhQRnl8NCqrz8hBgSWx YJK+h9ZgB/sFw5uj1pn5A+X57IvnfxAYMf8+XK1YyzwS7JLmDDbrrYDsSqx0U4vkOQ0f /gEaEsD2pau9xf7zyhSGTkpsE0kufwHHT+rxGaxYqqoOvFwgC3x0LWcNllIfpdet7syZ iw7x+ZlEOXgk0JDY7kYSJ2G3RXWC4DTUZNKNiXAInFCUw7MOMPtpxSXjyOBb/83bN4jl cIwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=wjX4mvU61PQRQveyAlFiXjU872czrFiFNBge0qti7UU=; b=p6dLlznIABJGDIOu63SZ9vsQzKXy4WEat0p4rgJCDOFNcIO/InD1ttOvCZ4KSn7dgB jxQp2FYlOcKMnB1Z/AFWtdAzesyxCficR0++uWG+y6moVKrZ+zRrCUDzR+6GPwOsDlFF zB8wwAG5FbZA8UpyMM78y9KvDL+MI2Fx3Zq4l0xCeaXhMjtjZ+GjJBIwDtR3oJmfoYyM eUp06zCoy48e0C8Zpyw60d8DEQpr/iXlPRoDHXOKY4UuviGYzUWq7OnjIeFDIas6rVHn Yb2nlxUxUYndIbTB7Qqlj6jMOxfp89FvoTiLcUUG1S3BH3XDIPILasRnmwSpDB0fkQPM sWbw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si3918237pgr.396.2018.12.14.03.43.36; Fri, 14 Dec 2018 03:43:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729129AbeLNLmm (ORCPT + 99 others); Fri, 14 Dec 2018 06:42:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55070 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbeLNLml (ORCPT ); Fri, 14 Dec 2018 06:42:41 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 251BB300207A; Fri, 14 Dec 2018 11:42:41 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-225.ams2.redhat.com [10.36.116.225]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9C4C2261A3; Fri, 14 Dec 2018 11:42:36 +0000 (UTC) From: Florian Weimer To: Rich Felker Cc: Catalin Marinas , Andy Lutomirski , tg@mirbsd.de, Linus Torvalds , 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 Subject: Re: Can we drop upstream Linux x32 support? References: <20181212165237.GT23599@brightrain.aerifal.cx> <20181213124025.bczxzj6ez34joo6v@localhost> <20181213155744.GU23599@brightrain.aerifal.cx> <87o99pl8es.fsf@oldenburg2.str.redhat.com> <20181213162828.GW23599@brightrain.aerifal.cx> Date: Fri, 14 Dec 2018 12:42:34 +0100 In-Reply-To: <20181213162828.GW23599@brightrain.aerifal.cx> (Rich Felker's message of "Thu, 13 Dec 2018 11:28:28 -0500") Message-ID: <875zvwibbp.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Fri, 14 Dec 2018 11:42:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rich Felker: > On Thu, Dec 13, 2018 at 05:04:59PM +0100, Florian Weimer wrote: >> * Rich Felker: >> >> >> If the compiler can handle the zeroing, that would be great, though not >> >> sure how (some __attribute__((zero)) which generates a type constructor >> >> for such structure; it kind of departs from what the C language offers). >> > >> > The compiler fundamentally can't. At the very least it would require >> > effective type tracking, which requires shadow memory and is even more >> > controversial than -fstrict-aliasing (because in a sense it's a >> > stronger version thereof). >> >> It's possible to do it with the right types. See _Bool on 32-bit Darwin >> PowerPC for an example, which is four bytes instead of the usual one. >> >> Similarly, we could have integer types with trap representations. >> Whether it is a good idea is a different matter, but the amount of >> compiler magic required is actually limited. > > If you do this you just have LP64 with value range restricted to > 32-bit. You have to a type different from long int for the relevant struct fields. This type would have zero padding. Florian