x86/elf: Make loading of 32bit processes depend on ia32_enabled()
authorNikolay Borisov <nik.borisov@suse.com>
Fri, 23 Jun 2023 11:14:07 +0000 (14:14 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 14 Sep 2023 11:19:53 +0000 (13:19 +0200)
commit5ae2702d7c482edbf002499e23a2e22ac4047af1
tree76fbe12e5aa3598b2097b0fbe64af430553e7cd6
parent370dcd58548a360bbf8a65b89b410d09f56bf0c6
x86/elf: Make loading of 32bit processes depend on ia32_enabled()

Major aspect of ia32 emulation is the ability to load 32bit processes.
That's currently decided (among others) by compat_elf_check_arch().

Make the macro use ia32_enabled() to decide if IA32 compat is
enabled before loading a 32bit process.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230623111409.3047467-5-nik.borisov@suse.com
arch/x86/include/asm/elf.h