]> www.infradead.org Git - users/dwmw2/linux.git/commit
um: Create signal stack memory assignment in stub_data
authorBenjamin Berg <benjamin@sipsolutions.net>
Wed, 3 Jul 2024 13:45:26 +0000 (15:45 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 15:09:48 +0000 (17:09 +0200)
commitdc26184a9d4acde988e996a437b0301b81c1ae2d
treef5cf8f56284356306f06b968d512b3a5153bc9bf
parentd1d3a2e69b2419d77f8f99315ac931c5ba3cb475
um: Create signal stack memory assignment in stub_data

When we switch to use seccomp, we need both the signal stack and other
data (i.e. syscall information) to co-exist in the stub data. To
facilitate this, start by defining separate memory areas for the stack
and syscall data.

This moves the signal stack onto a new page as the memory area is not
sufficient to hold both signal stack and syscall information.

Only change the signal stack setup for now, as the syscall code will be
reworked later.

Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Link: https://patch.msgid.link/20240703134536.1161108-3-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/as-layout.h
arch/um/include/shared/skas/stub-data.h
arch/um/kernel/skas/clone.c
arch/um/kernel/skas/mmu.c
arch/um/os-Linux/skas/process.c