1. 27 10月, 2014 1 次提交
    • H
      s390/vdso: fix stack corruption · 9b2efe03
      Heiko Carstens 提交于
      The kernel provided vdso functions do not get a stack frame from the
      calling function and therefore may not change the stack contents, unless
      they allocate space on their own.
      
      This problem was exposed with 070b7be6 "s390/vdso: replace stck with
      stcke" which writes 16 bytes instead of 8 bytes into the stack frame. These
      additional 8 bytes however were indeed used by the caller (glibc) to save
      data and therefore this data was corrupted by the vdso code.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      9b2efe03
  2. 09 9月, 2014 2 次提交
  3. 01 9月, 2014 1 次提交
  4. 03 12月, 2013 1 次提交
  5. 02 12月, 2013 1 次提交
  6. 25 11月, 2013 1 次提交
  7. 29 10月, 2010 1 次提交
    • H
      [S390] vdso: get rid of redefinition warnings · b3423982
      Heiko Carstens 提交于
      The CLOCK_* defines in asm-offsets.c are only used for the vdso code
      however in the meantime they cause other trouble.
      Just rename them to get permanently rid of this:
      
      In file included from /home2/heicarst/linux-2.6/arch/s390/include/asm/asm-offsets.h:1:0,
                       from arch/s390/mm/fault.c:33:
      include/generated/asm-offsets.h:53:0: warning: "CLOCK_REALTIME" redefined
      include/linux/time.h:286:0: note: this is the location of the previous definition
      include/generated/asm-offsets.h:54:0: warning: "CLOCK_MONOTONIC" redefined
      include/linux/time.h:287:0: note: this is the location of the previous definition
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      b3423982
  8. 22 4月, 2010 1 次提交
  9. 24 7月, 2009 1 次提交
    • M
      [S390] vdso: clock_gettime of CLOCK_THREAD_CPUTIME_ID with noexec=on · 1277580f
      Martin Schwidefsky 提交于
      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: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      1277580f
  10. 31 12月, 2008 1 次提交
  11. 25 12月, 2008 1 次提交