From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79BCD3AE190 for ; Tue, 26 May 2026 20:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779828192; cv=none; b=dv8cfyO/RHzq0XWKBJ3ohkxeooEyWnJj0TRPNp1RBwrNoP7tKxKj75b/LwdBR7SVuNSvccDuvnlC80QCwWivGmCJQrIPT9wA2c5Tce6OR9zHIrIFs/1KZNw5SPhRJHp3p41XXxMkveROPXFcBuX89riuKPEL6sdl/tm6BGeaCB4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779828192; c=relaxed/simple; bh=ZixRiwPVfnkNttXEmJNmY/NRkWZBJ31mGvUE71Lp+GY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YtOlxsjn/6qSkVVfLqtjb6xRAmfDBcgXjEQ2KDnRSMryGst54gQppVQVFxxVGhZd/HrC2EGLyHHowp2bXnqcDQPcdY311UzgdxtIgs52lAjW8NKCXYoNvr9rHk7+9Nu/99CbPcWk0Ln1oYLouJken00kTr7sPjkSVxEkrUYiG5A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=RH41wKWo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=pOPdKxSn; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RH41wKWo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="pOPdKxSn" Date: Tue, 26 May 2026 22:43:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1779828187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H6QP2yw+PlikHApuSbaX3xfj3RGyGXnphrgK2WIie88=; b=RH41wKWojv+d+gqA5/TUcTCCYJapXa9lJ+6dkYY0kCJc/49X6ZRyFupX5bBFJlL7ravQu+ FIMDEy+/jkRmaxO56DTgSVK0EpTYkNPwdZn/ZyD8UHeLlRxWzryV4hKddrZePOvuveu+yt F8SdLxrdSAwd2WSavo/29/OolF0kGIj8AwCkrDWqur/qzQcw2Zr9pBdfux2N9qnRUswOjo JJTYxaw3jnuakm2gUDRTWbcPwyCQly6vAbaQDtbKXohi3U/h6yKXTHWmV95FX3yjyOLTm8 4p1bRPZU+B7NqURJXEBSbnaBlCsodJ5ml6YRSVbY3OPpKAbDUcTZHHXLK2K2zA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1779828187; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H6QP2yw+PlikHApuSbaX3xfj3RGyGXnphrgK2WIie88=; b=pOPdKxSnQq6IL3WL2A1xzA3ZsbUObO0U+P12UOHsFfMQieKvp91Z/Kcseer73bPhuS8qCH +ztGYf9zd0aCyWDw== From: Sebastian Andrzej Siewior To: "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Borislav Petkov , Dave Hansen , Ingo Molnar , Jonathan Corbet , Thomas Gleixner Subject: Re: [PATCH] x86: Start removing X86_X32_ABI Message-ID: <20260526204306.0YTo1ClU@linutronix.de> References: <20260523093734.A3AR7reJ@linutronix.de> <10BF3F18-4709-43D6-979C-49067707F1C1@zytor.com> <20260526104051.MmQQ03a8@linutronix.de> <5FC3AA08-47C8-46CE-9758-20ECDE6CE018@zytor.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5FC3AA08-47C8-46CE-9758-20ECDE6CE018@zytor.com> On 2026-05-26 08:54:56 [-0700], H. Peter Anvin wrote: > No, because you don't want the same system call number to have > different meaning on different kernels, potentially succeed with > totally the wrong meaning. My point is that if you rip out x32 entirely there is no point in reversing the syscall numbers since you can't use x32 anyway. > System call numbers or even mechanisms are in no wise tied to the ELF > type. An x86-64 binary can issue x86-64, x32 or i386 system calls, > even from 64-bit mode! Hmm. Judging from compat_elf_check_arch() it looks like it is restricted. But *why* have syscalls if nothing else works? It is not that you have a natural environment where these things work and in a later kernel they behave differently. It just not working. Sebastian