linux/arch/um
Benjamin Berg 68b9883cc1 um: Discover host_task_size from envp
When loading the UML binary, the host kernel will place the stack at the
highest possible address. It will then map the program name and
environment variables onto the start of the stack.

As such, an easy way to figure out the host_task_size is to use the
highest pointer to an environment variable as a reference.

Ensure that this works by disabling address layout randomization and
re-executing UML in case it was enabled.

This increases the available TASK_SIZE for 64 bit UML considerably.

Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20240919124511.282088-9-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-10-10 13:37:22 +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: Discover host_task_size from envp 2024-10-10 13:37:22 +02:00
kernel um: Discover host_task_size from envp 2024-10-10 13:37:22 +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: remove dependency on undefined CC_CAN_LINK_STATIC_NO_RUNTIME_DEPS 2024-10-10 12:08:25 +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