lkml.org 
[lkml]   [2026]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH v2] x86: Start removing X86_X32_ABI
The x32 ABI was introduced in v3.4 to leverage the additional registers
which were available on x86_64 but not on i386 while keeping the smaller
32bit pointers.

This did not take off. The memory usage usually knows no limit and the
better performance did not reach a point where certain workloads widely
move to x32 and use it exclusively. In the meantime Debian introduced a
patch to disable x32 by default (so it has to be enabled at boot time on
the command line) because they are afraid of the increased attack
surface. Fedora as far as I tell has X32 disabled (looking at 7.0-rc5
rpm in rawhide).

The syscall range >512 used by x32 can not be reused because on earlier
kernels (before v5.4 with x32 enabled, see commit 6365b842aae4
("x86/syscalls: Split the x32 syscalls into their own table") it is not
obvious if the syscall is for x86-64 and not implemented or meant for
x32.
What can be removed are the special compat cases due to different
alignment.

Since there is practically no real use for x32, start removing it by
removing the symbol first, not allowing to enable it. Should nothing
happening by the end of the year, it will removed after the last LTS
kernel this year.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---

v1…v2: https://lore.kernel.org/r/20260523093734.A3AR7reJ@linutronix.de
- reword commit description, don't claim the syscall range can be
used.

arch/x86/Kconfig | 14 --------------
1 file changed, 14 deletions(-)

diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index bdad90f210e4b..f6fe55fdc928a 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -3097,20 +3097,6 @@ config IA32_EMULATION_DEFAULT_DISABLED
processes and access to 32-bit syscalls. If unsure, leave it to its
default value.

-config X86_X32_ABI
- bool "x32 ABI for 64-bit mode"
- depends on X86_64
- # llvm-objcopy does not convert x86_64 .note.gnu.property or
- # compressed debug sections to x86_x32 properly:
- # https://github.com/ClangBuiltLinux/linux/issues/514
- # https://github.com/ClangBuiltLinux/linux/issues/1141
- depends on $(success,$(OBJCOPY) --version | head -n1 | grep -qv llvm)
- help
- Include code to run binaries for the x32 native 32-bit ABI
- for 64-bit processors. An x32 process gets access to the
- full 64-bit register file and wide data path while leaving
- pointers at 32 bits for smaller memory footprint.
-
config COMPAT_32
def_bool y
depends on IA32_EMULATION || X86_32
--
2.53.0

\
 
 \ /
  Last update: 2026-07-07 23:24    [W:0.117 / U:1.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog