1. 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
  2. 07 6月, 2016 1 次提交
  3. 23 5月, 2016 3 次提交
  4. 21 5月, 2016 22 次提交
  5. 16 5月, 2016 3 次提交
  6. 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
  7. 11 5月, 2016 7 次提交
  8. 10 5月, 2016 2 次提交
反馈
建议
客服 返回
顶部