Public bug reported:

The kernel configuration option CONFIG_X86_X32_ABI is outcommented for
kernel 5.17 and higher (amd64). x32 binaries are now reporting:

cannot execute binary file: Exec format error

The x32-ABI has its proven merits in some HPC tasks (e.g. link and GC
intensive tasks) because it saves CPU time and critical resources like
energy.

So, the following approach (e.g. Debian) looks more appropriate:

1. Include the x32-relevant code, but disable its use on standard boots:

CONFIG_X86_X32=y
CONFIG_X86_X32_DISABLED=y

2. Users that must run x32 binaries can easily add the GRUB cmdline
option

syscall.x32=y

to enable x32 binaries.

This could be a good compromise between kernel complexity and resource
efficiency.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete


** Tags: kinetic x32 x32-abi

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1994516

Title:
  Kernels after 5.16 cannot execute x32-ABI binaries

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  The kernel configuration option CONFIG_X86_X32_ABI is outcommented for
  kernel 5.17 and higher (amd64). x32 binaries are now reporting:

  cannot execute binary file: Exec format error

  The x32-ABI has its proven merits in some HPC tasks (e.g. link and GC
  intensive tasks) because it saves CPU time and critical resources like
  energy.

  So, the following approach (e.g. Debian) looks more appropriate:

  1. Include the x32-relevant code, but disable its use on standard
  boots:

  CONFIG_X86_X32=y
  CONFIG_X86_X32_DISABLED=y

  2. Users that must run x32 binaries can easily add the GRUB cmdline
  option

  syscall.x32=y

  to enable x32 binaries.

  This could be a good compromise between kernel complexity and resource
  efficiency.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1994516/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to