1. 24 10月, 2016 1 次提交
  2. 11 10月, 2016 1 次提交
  3. 08 10月, 2016 4 次提交
  4. 06 10月, 2016 2 次提交
  5. 04 10月, 2016 11 次提交
  6. 23 9月, 2016 2 次提交
  7. 20 9月, 2016 9 次提交
  8. 14 9月, 2016 1 次提交
  9. 09 9月, 2016 1 次提交
    • D
      x86/pkeys: Add self-tests · 5f23f6d0
      Dave Hansen 提交于
      This code should be a good demonstration of how to use the new
      system calls as well as how to use protection keys in general.
      
      This code shows how to:
      1. Manipulate the Protection Keys Rights User (PKRU) register
      2. Set a protection key on memory
      3. Fetch and/or modify PKRU from the signal XSAVE state
      4. Read the kernel-provided protection key in the siginfo
      5. Set up an execute-only mapping
      
      There are currently 13 tests:
      
        test_read_of_write_disabled_region
        test_read_of_access_disabled_region
        test_write_of_write_disabled_region
        test_write_of_access_disabled_region
        test_kernel_write_of_access_disabled_region
        test_kernel_write_of_write_disabled_region
        test_kernel_gup_of_access_disabled_region
        test_kernel_gup_write_to_write_disabled_region
        test_executing_on_unreadable_memory
        test_ptrace_of_child
        test_pkey_syscalls_on_non_allocated_pkey
        test_pkey_syscalls_bad_args
        test_pkey_alloc_exhaust
      
      Each of the tests is run with plain memory (via mmap(MAP_ANON)),
      transparent huge pages, and hugetlb.
      Signed-off-by: NDave Hansen <dave.hansen@linux.intel.com>
      Cc: linux-arch@vger.kernel.org
      Cc: Dave Hansen <dave@sr71.net>
      Cc: mgorman@techsingularity.net
      Cc: arnd@arndb.de
      Cc: linux-api@vger.kernel.org
      Cc: shuahkh@osg.samsung.com
      Cc: linux-mm@kvack.org
      Cc: luto@kernel.org
      Cc: akpm@linux-foundation.org
      Cc: torvalds@linux-foundation.org
      Link: http://lkml.kernel.org/r/20160729163024.FC5A0C2D@viggo.jf.intel.comSigned-off-by: NThomas Gleixner <tglx@linutronix.de>
      5f23f6d0
  10. 08 9月, 2016 1 次提交
  11. 10 8月, 2016 1 次提交
  12. 05 8月, 2016 1 次提交
    • L
      ntb_test: Add a selftest script for the NTB subsystem · a9c59ef7
      Logan Gunthorpe 提交于
      This script automates testing doorbells, scratchpads and memory windows
      for an NTB device. It can be run locally, with the NTB looped
      back to the same host or use SSH to remotely control the second host.
      
      In the single host case, the script just needs to be passed two
      arguments: a PCI ID for each side of the link. In the two host case
      the -r option must be used to specify the remote hostname (which must
      be SSH accessible and should probably have ssh-keys exchanged).
      
      A sample run looks like this:
      
      $ sudo ./ntb_test.sh 0000:03:00.1 0000:83:00.1 -p 29
      Starting ntb_tool tests...
      Running link tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running link tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running db tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running db tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running spad tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running spad tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running mw0 tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running mw0 tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      Running mw1 tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      Running mw1 tests on: 0000:83:00.1 / 0000:03:00.1
        Passed
      
      Starting ntb_pingpong tests...
      Running ping pong tests on: 0000:03:00.1 / 0000:83:00.1
        Passed
      
      Starting ntb_perf tests...
      Running local perf test without DMA
        0: copied 536870912 bytes in 164453 usecs, 3264 MBytes/s
        Passed
      Running remote perf test without DMA
        0: copied 536870912 bytes in 164453 usecs, 3264 MBytes/s
        Passed
      Signed-off-by: NLogan Gunthorpe <logang@deltatee.com>
      Acked-by: NShuah Khan <shuahkh@osg.samsung.com>
      Acked-by: NAllen Hubbe <Allen.Hubbe@emc.com>
      Signed-off-by: NJon Mason <jdmason@kudzu.us>
      a9c59ef7
  13. 26 7月, 2016 2 次提交
  14. 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
  15. 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
  16. 07 7月, 2016 1 次提交