1. 26 7月, 2016 2 次提交
  2. 14 7月, 2016 1 次提交
    • M
      selftests/powerpc: Add a test for PROT_SAO · 24af8c5a
      Michael Ellerman 提交于
      PROT_SAO is a powerpc-specific flag to mmap(), and we rely on arch
      specific logic to allow it to be passed to mmap().
      
      Add a small test to ensure mmap() accepts PROT_SAO. We don't have a good
      way to test that it actually causes the mapping to be created with the
      right flags, so for now we just touch the mapping so it's faulted in. In
      future we might be able to do something better.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      24af8c5a
  3. 08 7月, 2016 1 次提交
    • D
      selftests/x86: Add vDSO mremap() test · f80fd3a5
      Dmitry Safonov 提交于
      Should print this on vDSO remapping success (on new kernels):
      
       [root@localhost ~]# ./test_mremap_vdso_32
      	AT_SYSINFO_EHDR is 0xf773f000
       [NOTE]	Moving vDSO: [f773f000, f7740000] -> [a000000, a001000]
       [OK]
      
      Or print that mremap() for vDSOs is unsupported:
      
       [root@localhost ~]# ./test_mremap_vdso_32
      	AT_SYSINFO_EHDR is 0xf773c000
       [NOTE]	Moving vDSO: [0xf773c000, 0xf773d000] -> [0xf7737000, 0xf7738000]
       [FAIL]	mremap() of the vDSO does not work on this kernel!
      Suggested-by: NAndy Lutomirski <luto@kernel.org>
      Signed-off-by: NDmitry Safonov <dsafonov@virtuozzo.com>
      Acked-by: NAndy Lutomirski <luto@kernel.org>
      Cc: 0x7f454c46@gmail.com
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-kselftest@vger.kernel.org
      Cc: linux-mm@kvack.org
      Link: http://lkml.kernel.org/r/20160628113539.13606-3-dsafonov@virtuozzo.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      f80fd3a5
  4. 07 7月, 2016 1 次提交
  5. 05 7月, 2016 5 次提交
  6. 28 6月, 2016 7 次提交
  7. 25 6月, 2016 1 次提交
  8. 21 6月, 2016 1 次提交
  9. 20 6月, 2016 1 次提交
  10. 16 6月, 2016 1 次提交
  11. 15 6月, 2016 9 次提交
  12. 14 6月, 2016 1 次提交
    • D
      x86/mpx, selftests: Add MPX self test · e754aedc
      Dave Hansen 提交于
      I've had this code for a while, but never submitted it upstream.  Now
      that Skylake hardware is out in the wild, folks can actually run this
      for real.  It tests the following:
      
      	1. The MPX hardware is enabled by the kernel and doing what it
      	   is supposed to
      	2. The MPX management code is present and enabled in the kernel
      	3. MPX Signal handling
      	4. The MPX bounds table population code (on-demand population)
      	5. The MPX bounds table unmapping code (kernel-initiated freeing
      	   when unused)
      
      This has also caught bugs in the XSAVE code because MPX state is
      saved/restored with XSAVE.
      
      I'm submitting it now because it would have caught the recent issues
      with the compat_siginfo code not being properly augmented when new
      siginfo state is added.
      Signed-off-by: NDave Hansen <dave.hansen@linux.intel.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Dave Hansen <dave@sr71.net>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/20160608172535.5B40B0EE@viggo.jf.intel.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      e754aedc
  13. 07 6月, 2016 1 次提交
  14. 03 6月, 2016 1 次提交
    • J
      kselftests: timers: Add set-tz test case · 1a77e2bd
      John Stultz 提交于
      Mika Westerberg reported a erroneous change in the error
      checking of settimeofday, so I wanted to add a test to ensure
      we don't trip over this again.
      
      Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
      Cc: Baolin Wang <baolin.wang@linaro.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: Richard Cochran <richardcochran@gmail.com>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      1a77e2bd
  15. 23 5月, 2016 3 次提交
  16. 16 5月, 2016 3 次提交
  17. 13 5月, 2016 1 次提交
    • M
      selftests/seccomp: add MIPS self-test support · 0ce105bf
      Matt Redfearn 提交于
      This adds self-test support on MIPS, based on RFC patch from Kees Cook.
      Modifications from the RFC:
      - support the O32 syscall which passes the real syscall number in a0.
      - Use PTRACE_{GET,SET}REGS
      - Because SYSCALL_NUM and SYSCALL_RET are the same register, it is not
        possible to test modifying the syscall return value when skipping,
        since both would need to set the same register. Therefore modify that
        test case to just detect the skipped test.
      Tested on MIPS32r2 / MIPS64r2 with O32, N32 and N64 userlands.
      Signed-off-by: NMatt Redfearn <matt.redfearn@imgtec.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Cc: Will Drewry <wad@chromium.org>
      Cc: IMG-MIPSLinuxKerneldevelopers@imgtec.com
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-kselftest@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/12977/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      0ce105bf