Skip to contentSkip to conversation

x86/entry changes for v6.7

GIT PULL Merged Ingo Molnar 2 participants 2 messages Oct 28, 2023 – Oct 31, 2023

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest x86/entry git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-entry-2023-10-28

# HEAD: 1a09a27153f91cd7676b2d4ca574577572a8c999 x86/entry/32: Clean up syscall fast exit tests

Changes to the x86 entry code in v6.7:

- Make IA32_EMULATION boot time configurable with the new ia32_emulation=<bool> boot option.

- Clean up fast syscall return validation code: convert it to C and refactor the code.

- As part of this, optimize the canonical RIP test code.

Thanks,

Ingo

------------------>
Brian Gerst (7):
x86/entry/64: Remove obsolete comment on tracing vs. SYSRET x86/entry/compat: Combine return value test from syscall handler x86/entry/32: Convert do_fast_syscall_32() to bool return type x86/entry/32: Remove SEP test for SYSEXIT x86/entry/64: Convert SYSRET validation tests to C x86/entry/64: Use TASK_SIZE_MAX for canonical RIP test x86/entry/32: Clean up syscall fast exit tests

Nikolay Borisov (6):
x86: Introduce ia32_enabled()
x86/entry: Rename ignore_sysret()
x86/entry: Compile entry_SYSCALL32_ignore() unconditionally x86/elf: Make loading of 32bit processes depend on ia32_enabled() x86/entry: Make IA32 syscalls' availability depend on ia32_enabled()
x86: Make IA32_EMULATION boot time configurable

 Documentation/admin-guide/kernel-parameters.txt |   6 ++
 arch/x86/Kconfig                                |   9 ++
 arch/x86/entry/common.c                         | 113 +++++++++++++++++-------
 arch/x86/entry/entry_32.S                       |   2 +-
 arch/x86/entry/entry_64.S                       |  72 +--------------
 arch/x86/entry/entry_64_compat.S                |  11 ++-
 arch/x86/include/asm/elf.h                      |   3 +-
 arch/x86/include/asm/ia32.h                     |  16 +++-
 arch/x86/include/asm/processor.h                |   2 +-
 arch/x86/include/asm/proto.h                    |   3 +
 arch/x86/include/asm/syscall.h                  |   6 +-
 arch/x86/kernel/cpu/common.c                    |  37 ++++----
 arch/x86/kernel/idt.c                           |   7 ++
 13 files changed, 155 insertions(+), 132 deletions(-)