1. 14 12月, 2015 1 次提交
  2. 10 12月, 2015 1 次提交
    • A
      powerpc: Fix DSCR inheritance over fork() · db1231dc
      Anton Blanchard 提交于
      Two DSCR tests have a hack in them:
      
      	/*
      	 * XXX: Force a context switch out so that DSCR
      	 * current value is copied into the thread struct
      	 * which is required for the child to inherit the
      	 * changed value.
      	 */
      	sleep(1);
      
      We should not be working around this in the testcase, it is a kernel bug.
      Fix it by copying the current DSCR to the child, instead of what we
      had in the thread struct at last context switch.
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      db1231dc
  3. 13 11月, 2015 1 次提交
  4. 11 11月, 2015 2 次提交
  5. 07 11月, 2015 1 次提交
  6. 06 11月, 2015 1 次提交
    • E
      selftests: vm: add tests for lock on fault · b3b0d09c
      Eric B Munson 提交于
      Test the mmap() flag, and the mlockall() flag.  These tests ensure that
      pages are not faulted in until they are accessed, that the pages are
      unevictable once faulted in, and that VMA splitting and merging works with
      the new VM flag.  The second test ensures that mlock limits are respected.
       Note that the limit test needs to be run a normal user.
      
      Also add tests to use the new mlock2 family of system calls.
      
      [treding@nvidia.com: : Fix mlock2-tests for 32-bit architectures]
      [treding@nvidia.com: ensure the mlock2 syscall number can be found]
      [treding@nvidia.com: use the right arguments for main()]
      Signed-off-by: NEric B Munson <emunson@akamai.com>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Cc: Michal Hocko <mhocko@suse.cz>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Cc: Jonathan Corbet <corbet@lwn.net>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Guenter Roeck <linux@roeck-us.net>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
      Cc: Michael Kerrisk <mtk.manpages@gmail.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b3b0d09c
  7. 04 11月, 2015 6 次提交
  8. 03 11月, 2015 3 次提交
  9. 31 10月, 2015 1 次提交
  10. 19 10月, 2015 1 次提交
  11. 16 10月, 2015 5 次提交
    • K
      selftests/seccomp: build and pass on arm64 · 256d0afb
      Kees Cook 提交于
      Changing arm64 syscalls is done via a specific register set, more like s390
      than like arm (specific ptrace call) and x86 (part of general registers).
      Since (restarting) poll doesn't exist on arm64, switch to using nanosleep
      for testing restart_syscall. And since it looks like the syscall ABI is
      inconsistent on arm-compat, so we must work around it (and document it) in
      the test.
      Signed-off-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      256d0afb
    • C
      selftests: memfd_test: Revised STACK_SIZE to make it 16-byte aligned · 1f78dda2
      Chunyan Zhang 提交于
      There is a mandate of 16-byte aligned stack on AArch64 [1], so the
      STACK_SIZE here should also be 16-byte aligned, otherwise we would
      get an error when calling clone().
      
      [1] http://lxr.free-electrons.com/source/arch/arm64/kernel/process.c#L265Signed-off-by: NChunyan Zhang <zhang.chunyan@linaro.org>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      1f78dda2
    • H
      selftests/pstore: add pstore test scripts going with reboot · f615e2bb
      Hiraku Toyooka 提交于
      To test pstore in earnest, we have to cause kernel crash and check
      pstore filesystem after reboot.
      
      We add two scripts:
       - pstore_crash_test
           This script causes kernel crash and reboot. It is executed by
           'make run_pstore_crash' in selftests. It can also be used with kdump.
       - pstore_post_reboot_tests
           This script includes test cases which check pstore's behavior after
           crash and reboot. It is executed together with pstore_tests by
           'make run_tests [-C pstore]' in selftests.
      
      The test cases in pstore_post_reboot_tests are currently following.
      
      - Check pstore backend is registered
      - Mount pstore filesystem
      - Check dmesg/console/pmsg files exist in pstore filesystem
      - Check dmesg/console files contain oops end marker
      - Check pmsg file properly keeps the content written before crash
      - Remove all files in pstore filesystem
      
      Example usage is following.
      
        (before reboot)
        # cd /path/to/selftests
        # make run_tests -C pstore
        === Pstore unit tests (pstore_tests) ===
        UUID=b49b02cf-b0c2-4309-be43-b08c3971e37f
        ...
        selftests: pstore_tests [PASS]
        === Pstore unit tests (pstore_post_reboot_tests) ===
        UUID=953eb1bc-8e03-48d7-b27a-6552b24c5b7e
        Checking pstore backend is registered ... ok
                backend=ramoops
                cmdline=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait mem=768M ramoops.mem_address=0x30000000 ramoops.mem_size=0x10000
        pstore_crash_test has not been executed yet. we skip further tests.
        selftests: pstore_post_reboot_tests [PASS]
      
        # make run_pstore_crash
        === Pstore unit tests (pstore_crash_test) ===
        UUID=93c8972d-1466-430b-8c4a-28d8681e74c6
        Checking pstore backend is registered ... ok
                backend=ramoops
                cmdline=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait mem=768M ramoops.mem_address=0x30000000 ramoops.mem_size=0x10000
        Causing kernel crash ...
        (kernel crash and reboot)
        ...
      
        (after reboot)
        # make run_tests -C pstore
        === Pstore unit tests (pstore_tests) ===
        UUID=8e511e77-2285-499f-8bc0-900d9af1fbcc
        ...
        selftests: pstore_tests [PASS]
        === Pstore unit tests (pstore_post_reboot_tests) ===
        UUID=2dcc2132-4f3c-45aa-a38f-3b54bff8cef1
        Checking pstore backend is registered ... ok
                backend=ramoops
                cmdline=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait mem=768M ramoops.mem_address=0x30000000 ramoops.mem_size=0x10000
        Mounting pstore filesystem ... ok
        Checking dmesg files exist in pstore filesystem ... ok
                dmesg-ramoops-0
                dmesg-ramoops-1
        Checking console files exist in pstore filesystem ... ok
                console-ramoops-0
        Checking pmsg files exist in pstore filesystem ... ok
                pmsg-ramoops-0
        Checking dmesg files contain oops end marker
                dmesg-ramoops-0 ... ok
                dmesg-ramoops-1 ... ok
        Checking console file contains oops end marker ... ok
        Checking pmsg file properly keeps the content written before crash ... ok
        Removing all files in pstore filesystem
                console-ramoops-0 ... ok
                dmesg-ramoops-0 ... ok
                dmesg-ramoops-1 ... ok
                pmsg-ramoops-0 ... ok
        selftests: pstore_post_reboot_tests [PASS]
      Signed-off-by: NHiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Colin Cross <ccross@android.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Mark Salyzyn <salyzyn@android.com>
      Cc: Seiji Aguchi <seiji.aguchi.tr@hitachi.com>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-api@vger.kernel.org
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      f615e2bb
    • H
      selftests/pstore: add pstore test script for pre-reboot · cc04a46f
      Hiraku Toyooka 提交于
      The pstore_tests script includes test cases which check pstore's
      behavior before crash (and reboot).
      
      The test cases are currently following.
      
      - Check pstore backend is registered
      - Check pstore console is registered
      - Check /dev/pmsg0 exists
      - Write unique string to /dev/pmsg0
      
      The unique string written to /dev/pmsg includes UUID. The UUID is also
      left in 'uuid' file in order to enable us to check if the pmsg keeps the
      string correctly after reboot.
      
      Example usage is following.
      
        # cd /path/to/selftests
        # make run_tests -C pstore (or just .pstore/pstore_tests)
        make: Entering directory '/path/to/selftests/pstore'
        === Pstore unit tests (pstore_tests) ===
        UUID=b49b02cf-b0c2-4309-be43-b08c3971e37f
        Checking pstore backend is registered ... ok
                backend=ramoops
                cmdline=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait mem=768M ramoops.mem_address=0x30000000 ramoops.mem_size=0x10000
        Checking pstore console is registered ... ok
        Checking /dev/pmsg0 exists ... ok
        Writing unique string to /dev/pmsg0 ... ok
        selftests: pstore_tests [PASS]
        make: Leaving directory '/path/to/selftests/pstore'
      
      We can also see test logs later.
      
        # cat pstore/logs/20151001-072718_b49b02cf-b0c2-4309-be43-b08c3971e37f/pstore_tests.log
        Thu Oct  1 07:27:18 UTC 2015
        === Pstore unit tests (pstore_tests) ===
        UUID=b49b02cf-b0c2-4309-be43-b08c3971e37f
        Checking pstore backend is registered ... ok
                backend=ramoops
                cmdline=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait mem=768M ramoops.mem_address=0x30000000 ramoops.mem_size=0x10000
        Checking pstore console is registered ... ok
        Checking /dev/pmsg0 exists ... ok
        Writing unique string to /dev/pmsg0 ... ok
      Signed-off-by: NHiraku Toyooka <hiraku.toyooka.gu@hitachi.com>
      Cc: Shuah Khan <shuahkh@osg.samsung.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Anton Vorontsov <anton@enomsg.org>
      Cc: Colin Cross <ccross@android.com>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Mark Salyzyn <salyzyn@android.com>
      Cc: Seiji Aguchi <seiji.aguchi.tr@hitachi.com>
      Cc: linux-kernel@vger.kernel.org
      Cc: linux-api@vger.kernel.org
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      cc04a46f
    • Y
      selftests: add .gitignore for efivarfs · be14484b
      Yuan Sun 提交于
      Signed-off-by: NYuan Sun <sunyuan3@huawei.com>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      be14484b
  12. 15 10月, 2015 3 次提交
  13. 14 10月, 2015 1 次提交
  14. 13 10月, 2015 1 次提交
  15. 12 10月, 2015 1 次提交
  16. 07 10月, 2015 5 次提交
  17. 01 10月, 2015 1 次提交
  18. 23 9月, 2015 5 次提交