OpenCloudOS-Kernel/Documentation/x86
Breno Leitao d810600a01 x86/elf: Support a new ELF aux vector AT_MINSIGSTKSZ
commit 1c33bb0507 upstream.

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

commit 94b07c1f8c ("arm64: signal: Report signal frame size to userspace via auxv").

Also, include a documentation to describe x86-specific auxiliary vectors.

CVE-2022-25265
[tapd]
https://tapd.woa.com/tapd_fe/10024061/story/detail/1010024061119571307
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
Signed-off-by: Aurelianliu <aurelianliu@tencent.com>
Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
2024-11-28 21:43:48 +08:00
..
i386 Documentation: x86: convert i386/IO-APIC.txt to reST 2019-05-08 14:34:11 -06:00
x86_64 ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
amd-memory-encryption.rst Documentation: x86: convert amd-memory-encryption.txt to reST 2019-05-08 14:34:10 -06:00
boot.rst Documentation: x86: convert boot.txt to reST 2019-05-08 14:34:09 -06:00
earlyprintk.rst Documentation: x86: convert earlyprintk.txt to reST 2019-05-08 14:34:10 -06:00
elf_auxvec.rst x86/elf: Support a new ELF aux vector AT_MINSIGSTKSZ 2024-11-28 21:43:48 +08:00
entry_64.rst Documentation: x86: convert entry_64.txt to reST 2019-05-08 14:34:09 -06:00
exception-tables.rst Documentation/x86: Fix path to entry_32.S 2019-05-24 08:52:54 +02:00
index.rst x86/elf: Support a new ELF aux vector AT_MINSIGSTKSZ 2024-11-28 21:43:48 +08:00
intel-iommu.rst docs: x86: move two x86-specific files to x86 arch dir 2019-07-15 11:03:01 -03:00
intel_mpx.rst Documentation: x86: convert intel_mpx.txt to reST 2019-05-08 14:34:10 -06:00
intel_txt.rst docs: x86: move two x86-specific files to x86 arch dir 2019-07-15 11:03:01 -03:00
kernel-stacks.rst Some late arriving documentation changes. In particular, this contains the 2019-05-10 13:24:53 -04:00
mds.rst x86/speculation/mds: Improve CPU buffer clear documentation 2019-05-16 09:05:12 +02:00
microcode.rst x86/microcode/hygon: Add microcode loading support for Hygon processors 2024-11-14 17:48:28 +08:00
mtrr.rst Documentation: x86: convert mtrr.txt to reST 2019-05-08 14:34:10 -06:00
orc-unwinder.rst Documentation: x86: convert orc-unwinder.txt to reST 2019-05-08 14:34:11 -06:00
pat.rst Documentation: x86: convert pat.txt to reST 2019-05-08 14:34:10 -06:00
pti.rst Documentation: x86: convert pti.txt to reST 2019-05-08 14:34:10 -06:00
resctrl_ui.rst Documentation: x86: fix some typos 2019-06-20 14:16:12 -06:00
sgx.rst ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tlb.rst Documentation: x86: convert tlb.txt to reST 2019-05-08 14:34:10 -06:00
topology.rst ock: sync codes to ock 5.4.119-20.0009.21 2024-06-11 20:27:38 +08:00
tsx_async_abort.rst x86/speculation/taa: Add documentation for TSX Async Abort 2019-10-28 08:37:00 +01:00
usb-legacy-support.rst Documentation: x86: convert usb-legacy-support.txt to reST 2019-05-08 14:34:11 -06:00
zero-page.rst Documentation: x86: convert zero-page.txt to reST 2019-05-08 14:34:10 -06:00