00b55eaf45
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:
|
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
gen_vdso_offsets.sh | ||
getcpu.c | ||
note.S | ||
vdso.h | ||
vdso64.lds.S | ||
vdso64_generic.c | ||
vdso64_wrapper.S | ||
vdso_user_wrapper.S |