From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15E0EE7719A for ; Mon, 13 Jan 2025 05:33:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 472BB6B0083; Mon, 13 Jan 2025 00:33:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 422196B0088; Mon, 13 Jan 2025 00:33:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2EA506B0089; Mon, 13 Jan 2025 00:33:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 130E86B0083 for ; Mon, 13 Jan 2025 00:33:44 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id A6AE8B041F for ; Mon, 13 Jan 2025 05:33:43 +0000 (UTC) X-FDA: 83001311526.28.B7F392E Received: from out01.mta.xmission.com (out01.mta.xmission.com [166.70.13.231]) by imf05.hostedemail.com (Postfix) with ESMTP id 41835100002 for ; Mon, 13 Jan 2025 05:33:41 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=xmission.com; spf=pass (imf05.hostedemail.com: domain of ebiederm@xmission.com designates 166.70.13.231 as permitted sender) smtp.mailfrom=ebiederm@xmission.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736746421; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=54CWiKwOfpx+VXp/flmGs8abGP5uDIQEd3hxvE/aoFw=; b=ThY7n9nVNiNeYuBn9l6pKSMP4lctG3qv7zmIAv1uWcLvjMBPxDHuA6UN/7YQvx/q8AYeds wFSd5lc0G/AHvBxvCC0B++x6Yg/py+iGYocSIrEoT7lmCkjhv8c8uHF7ERwqZ88uTqtbiy aY8b6wcFGBQh5JSCSqXHgUTi1RXfQFk= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736746421; a=rsa-sha256; cv=none; b=ciwTLw0i7bo6o9kKFRoRoDzYQDlst64rL29QD0ACQ0k6WiUsQbmdn2Wiz/3u4ZskDFxeAt ADGkWB1O7Cth1Jd0Vql3zUtdJ7blZv5STIXhcNYAKFOBSY0FpSOCHhzPrYG+7ovUYeHDX/ 9W++HOjcy3RdVngnRD2asj/W0zmTqxg= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=xmission.com; spf=pass (imf05.hostedemail.com: domain of ebiederm@xmission.com designates 166.70.13.231 as permitted sender) smtp.mailfrom=ebiederm@xmission.com Received: from in01.mta.xmission.com ([166.70.13.51]:43564) by out01.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1tXD4v-000YH6-OQ; Sun, 12 Jan 2025 22:33:33 -0700 Received: from ip72-198-198-28.om.om.cox.net ([72.198.198.28]:36184 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1tXD4u-00HTmM-DJ; Sun, 12 Jan 2025 22:33:33 -0700 From: "Eric W. Biederman" To: Ivan Kokshaysky Cc: John Paul Adrian Glaubitz , Arnd Bergmann , Richard Henderson , Matt Turner , Kees Cook , "Paul E. McKenney" , linux-alpha@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michael Cree , Sam James , "Maciej W. Rozycki" , Geert Uytterhoeven , Michael Karcher , Chris Hofstaedtler , util-linux@vger.kernel.org, linux-mips@vger.kernel.org, loongarch@lists.linux.dev References: <20250103140148.370368-1-glaubitz@physik.fu-berlin.de> <24f03227-1b55-4e50-b6e9-7ac74fda2602@app.fastmail.com> <678ee681-12c3-4e79-a04b-495daf343846@app.fastmail.com> <82d33a2d-dffe-4268-a175-4536b3f9c07f@app.fastmail.com> <87jzb2tdb7.fsf_-_@email.froward.int.ebiederm.org> Date: Sun, 12 Jan 2025 23:32:54 -0600 In-Reply-To: (Ivan Kokshaysky's message of "Sat, 11 Jan 2025 16:27:57 +0100") Message-ID: <875xmjth15.fsf@email.froward.int.ebiederm.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1tXD4u-00HTmM-DJ;;;mid=<875xmjth15.fsf@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=72.198.198.28;;;frm=ebiederm@xmission.com;;;spf=pass X-XM-AID: U2FsdGVkX19mzMcFcnq2MyXKMRJsTojlTxbl78vUQO0= Subject: Re: [PATCH] alpha/elf: Fix misc/setarch test of util-linux by removing 32bit support X-SA-Exim-Connect-IP: 166.70.13.51 X-SA-Exim-Rcpt-To: loongarch@lists.linux.dev, linux-mips@vger.kernel.org, util-linux@vger.kernel.org, zeha@debian.org, kernel@mkarcher.dialup.fu-berlin.de, geert@linux-m68k.org, macro@orcam.me.uk, sam@gentoo.org, mcree@orcon.net.nz, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-alpha@vger.kernel.org, paulmck@kernel.org, kees@kernel.org, mattst88@gmail.com, richard.henderson@linaro.org, arnd@arndb.de, glaubitz@physik.fu-berlin.de, ink@unseen.parts X-SA-Exim-Mail-From: ebiederm@xmission.com X-SA-Exim-Scanned: No (on out01.mta.xmission.com); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 41835100002 X-Rspam-User: X-Rspamd-Server: rspam07 X-Stat-Signature: nr48pcm5g8hujato1owhoariejq4f3ke X-HE-Tag: 1736746421-873127 X-HE-Meta: U2FsdGVkX19lThiC9n8RLPcFWq4uj/IA+yDdn+I/pqavlETz68Q9hjUOHXmPnFWDMCZ1LtkbxrRrq/oCFLXf61nYEEKxT7flMdKUD0O0wcbFagaGeUT2BKY6Mo+02FKqFyy1BoZMh8rtPoILfEfNzoWGsvn/r4ie7Nuf+K1tYsQHHBllyPgX5/rPRrOA6SrZFGPUxh/KpUGHEU+CcToqebVOUfQho0QrBX7AC6Waww27JGK9laUZqwmbKm/8EOWrIz0Bzb9YVaUH5Atnf49agRhy4TBmSHz3j7SHwoLJXeld9iCb7TQsuTXB9F5WVdzM4hpra75jLqtrYLNwjG5IPyf4OiLbDavS07Ski+8JvKQqW0AYFBjZaUHune64DGB2FL4DO79Rw/W41ohsDZzoRl2PHDB0LxZEUUkHJdWYg7yaoUNnJg/NY9ReI93iCsrmIaNC18O+KvJGVaLfJ9u2xw2QSOmqRt5Cjmc9Ld60DpBy04Pql/OytgUWKCga501famgwxItyeUFeFoYyYLHNiFITk5qKjqyPFJATlDv1BvzCwcSQ6g6nB65Whd92n+khkiCX0bymenmtcL/5nIbdoAttMR92wTuwjA9uEKzCITjBqEv0OC8FoQdmxOOcNVuuxD+LbpdNidPn/DCtNWdT2mKV7gdhGpzGf1GGb9OjjY60iRj2fDKqE3vWjPQsiuFnsp2hI+JerMz3VbvCpuQjnCZGouSArUFRzA4pg3RaL0VZ41fLpMjCg0aIMmRHpPmhJfAIv1ObWySeWzaIutjkkdaOzZiLqKdmhd8l8bGRKCfaMpgOj5UeUeetQ8JQ86lFBWjffH40R/v3UeWJLo8GGGq6KYTcv4340NxnBLD3lhmN8I5SozDMFIViMD845drC+En0Zu3FAy0tGru1SL0Znu2VH7bjHP54/rmGDpNKhoZR/wZJBwA1kK+sULVeR3/cx8OpuGmITRxxrbTU+pI lNtMX90j fh3A7+aSuT1LTvA4bmxf0zyGnvFOudn3IPxbP9x/raByHe5adSa+R/TFwk0B5b6dSyDL4rqLej5DcADjtzJaPkfOZ1Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Ivan Kokshaysky writes: > On Fri, Jan 10, 2025 at 06:16:28PM -0600, Eric W. Biederman wrote: >> >> Richard Henderson writes[1]: >> >> > There was a Spec benchmark (I forget which) which was memory bound and ran >> > twice as fast with 32-bit pointers. >> > >> > I copied the idea from DEC to the ELF abi, but never did all the other work >> > to allow the toolchain to take advantage. >> > >> > Amusingly, a later Spec changed the benchmark data sets to not fit into a >> > 32-bit address space, specifically because of this. >> > >> > I expect one could delete the ELF bit and personality and no one would >> > notice. Not even the 10 remaining Alpha users. >> >> In [2] it was pointed out that parts of setarch weren't working >> properly on alpha because it has it's own SET_PERSONALITY >> implementation. In the discussion that followed Richard Henderson >> pointed out that the 32bit pointer support for alpha was never >> completed. >> >> Fix this by removing alpha's 32bit pointer support. >> >> As a bit of paranoia refuse to execute any alpha binaries that hafe >> the EF_ALPHA_32BIT flag set. Just to fail explicitly in case someone >> somewhere has binaries that trying to use alpha's 32bit pointer >> support. > > In general I agree, but then someone ought to remove the "--taso" option > from GNU ld, which produces such binaries. Please feel free to write such a patch. I don't know the GNU ld process well enough to write that patch. It would be good to remove dead code and confusing code from GNU ld, as well as from the linux kernel. Eric