linux/arch/s390/kernel/vdso64
Sven Schnelle 00b55eaf45 s390/vdso: filter out -mstack-guard and -mstack-size
When CONFIG_VMAP_STACK is disabled, the user can enable CONFIG_STACK_CHECK,
which adds a stack overflow check to each C function in the kernel. This is
also done for functions in the vdso page. These functions are run in user
context and user stack sizes are usually different to what the kernel uses.
This might trigger the stack check although the stack size is valid.
Therefore filter the -mstack-guard and -mstack-size flags when compiling
vdso C files.

Cc: stable@kernel.org # 5.10+
Fixes: 4bff8cb545 ("s390: convert to GENERIC_VDSO")
Reported-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2021-11-16 12:29:19 +01:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
gen_vdso_offsets.sh s390/vdso: add minimal compat vdso 2021-07-08 15:37:28 +02:00
getcpu.c s390/vdso: use union tod_clock 2021-02-13 17:17:54 +01:00
Makefile s390/vdso: filter out -mstack-guard and -mstack-size 2021-11-16 12:29:19 +01:00
note.S s390: add a few more SPDX identifiers 2017-12-05 07:51:09 +01:00
vdso64_generic.c s390/vdso: add missing prototypes for vdso functions 2020-11-30 14:10:50 +01:00
vdso64_wrapper.S
vdso64.lds.S s390/vdso: add .got.plt in vdso linker script 2021-07-30 17:08:21 +02:00
vdso_user_wrapper.S s390/vdso64: add sigreturn,rt_sigreturn and restart_syscall 2021-07-08 15:37:28 +02:00
vdso.h s390/vdso: add missing prototypes for vdso functions 2020-11-30 14:10:50 +01:00