linux-kernel-test/arch/s390/kernel/vdso64
Martin Schwidefsky 1277580fe5 [S390] vdso: clock_gettime of CLOCK_THREAD_CPUTIME_ID with noexec=on
The combination of noexec=on and a clock_gettime call with clock id
CLOCK_THREAD_CPUTIME_ID is broken. The vdso code switches to the
access register mode to get access to the per-cpu data structure to
execute the magic ectg instruction. After the ectg instruction the
code always switches back to the primary mode but for noexec=on the
correct mode is the secondary mode. The effect of the bug is that the
user space program looses the access to all mappings without PROT_EXEC,
e.g. the stack. The problem is fixed by restoring the mode that has
been active before the switch to the access register mode.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-07-24 12:41:02 +02:00
..
clock_getres.S [PATCH] fast vdso implementation for CLOCK_THREAD_CPUTIME_ID 2008-12-31 15:11:49 +01:00
clock_gettime.S [S390] vdso: clock_gettime of CLOCK_THREAD_CPUTIME_ID with noexec=on 2009-07-24 12:41:02 +02:00
gettimeofday.S [S390] introduce vdso on s390 2008-12-25 13:38:55 +01:00
Makefile [S390] introduce vdso on s390 2008-12-25 13:38:55 +01:00
note.S [S390] introduce vdso on s390 2008-12-25 13:38:55 +01:00
vdso64_wrapper.S [S390] introduce vdso on s390 2008-12-25 13:38:55 +01:00
vdso64.lds.S [S390] introduce vdso on s390 2008-12-25 13:38:55 +01:00