aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/x86/index.rst
diff options
context:
space:
mode:
authorChang S. Bae <chang.seok.bae@intel.com>2021-05-18 13:03:17 -0700
committerBorislav Petkov <bp@suse.de>2021-05-19 12:18:45 +0200
commit1c33bb0507508af24fd754dd7123bd8e997fab2f (patch)
tree0a245b44e47ae22c57669af809f34ff1d9549314 /Documentation/x86/index.rst
parentx86/signal: Introduce helpers to get the maximum signal frame size (diff)
downloadlinux-dev-1c33bb0507508af24fd754dd7123bd8e997fab2f.tar.xz
linux-dev-1c33bb0507508af24fd754dd7123bd8e997fab2f.zip
x86/elf: Support a new ELF aux vector AT_MINSIGSTKSZ
Historically, signal.h defines MINSIGSTKSZ (2KB) and SIGSTKSZ (8KB), for use by all architectures with sigaltstack(2). Over time, the hardware state size grew, but these constants did not evolve. Today, literal use of these constants on several architectures may result in signal stack overflow, and thus user data corruption. A few years ago, the ARM team addressed this issue by establishing getauxval(AT_MINSIGSTKSZ). This enables the kernel to supply a value at runtime that is an appropriate replacement on current and future hardware. Add getauxval(AT_MINSIGSTKSZ) support to x86, analogous to the support added for ARM in 94b07c1f8c39 ("arm64: signal: Report signal frame size to userspace via auxv"). Also, include a documentation to describe x86-specific auxiliary vectors. Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Len Brown <len.brown@intel.com> Acked-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lkml.kernel.org/r/20210518200320.17239-4-chang.seok.bae@intel.com
Diffstat (limited to 'Documentation/x86/index.rst')
-rw-r--r--Documentation/x86/index.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/x86/index.rst b/Documentation/x86/index.rst
index 4693e192b447..d58614d5cde6 100644
--- a/Documentation/x86/index.rst
+++ b/Documentation/x86/index.rst
@@ -35,3 +35,4 @@ x86-specific Documentation
sva
sgx
features
+ elf_auxvec