mirror of https://gitee.com/openkylin/linux.git
9f0b4807a4
The userspace stacks mostly have a stack (and in the case of the syscall stub we can just set their stack pointer) that points to the location of the stub data page already. Rework the stubs to use the stack pointer to derive the start of the data page, rather than requiring it to be hard-coded. In the clone stub, also integrate the int3 into the stack remap, since we really must not use the stack while we remap it. This prepares for putting the stub at a variable location that's not part of the normal address space of the userspace processes running inside the UML machine. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at> |
||
---|---|---|
.. | ||
archsetjmp.h | ||
archsetjmp_32.h | ||
archsetjmp_64.h | ||
faultinfo.h | ||
faultinfo_32.h | ||
faultinfo_64.h | ||
kernel-offsets.h | ||
mcontext.h | ||
ptrace.h | ||
ptrace_32.h | ||
ptrace_64.h | ||
ptrace_user.h | ||
stub.h | ||
stub_32.h | ||
stub_64.h | ||
syscalls.h | ||
syscalls_32.h | ||
syscalls_64.h | ||
tls.h |