linux-next/arch/um
Johannes Berg 14d4a7b516 um: make stub_exe _start() pure inline asm
Since __attribute__((naked)) cannot be used with functions
containing C statements, just generate the few instructions
it needs in assembly directly.

While at it, fix the stack usage ("1 + 2*x - 1" is odd) and
document what it must do, and why it must adjust the stack.

Fixes: 8508a5e0e9 ("um: Fix misaligned stack in stub_exe")
Link: https://lore.kernel.org/linux-um/CABVgOSntH-uoOFMP5HwMXjx_f1osMnVdhgKRKm4uz6DFm2Lb8Q@mail.gmail.com/
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-10-23 09:04:59 +02:00
..
configs um: Remove 3-level page table support on i386 2024-10-10 12:06:43 +02:00
drivers um: Set parent death signal for winch thread/process 2024-10-10 13:37:21 +02:00
include um: Switch to 4 level page tables on 64 bit 2024-10-10 13:37:22 +02:00
kernel um: make stub_exe _start() pure inline asm 2024-10-23 09:04:59 +02:00
os-Linux um: Discover host_task_size from envp 2024-10-10 13:37:22 +02:00
scripts um: prevent user code in modules 2023-04-20 23:06:38 +02:00
.gitignore um: gitignore: Add kernel/capflags.c 2021-12-21 21:22:43 +01:00
Kbuild um: use obj-y to descend into arch/um/*/ 2023-08-26 22:41:34 +02:00
Kconfig um: Switch to 4 level page tables on 64 bit 2024-10-10 13:37:22 +02:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-04-15 23:10:33 +02:00
Makefile um: use execveat to create userspace MMs 2024-10-10 13:37:16 +02:00
Makefile-os-Linux x86, um: get rid of arch/um/os symlink 2008-10-22 22:55:22 -07:00
Makefile-skas arch: um: Add Clang coverage support 2024-01-05 00:30:35 +01:00