소스 검색

sh: Make sure AT_SYSINFO_EHDR is exposed to userspace in asm/auxvec.h.

Presently this is protected by a CONFIG_VSYSCALL ifdef so we don't
inadvertently trigger the creation of the gate VMA on CPUs where we don't
enable the vDSO, which is obviously not visible to userspace. Fix this up
by adding in an ifndef __KERNEL__ check at the same time.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 17 년 전
부모
커밋
c170f86e31
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/sh/include/asm/auxvec.h

+ 1 - 1
arch/sh/include/asm/auxvec.h

@@ -12,7 +12,7 @@
  */
 #define AT_FPUCW		18	/* Used FPU control word.  */
 
-#ifdef CONFIG_VSYSCALL
+#if defined(CONFIG_VSYSCALL) || !defined(__KERNEL__)
 /*
  * Only define this in the vsyscall case, the entry point to
  * the vsyscall page gets placed here. The kernel will attempt