KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd 2017-04-08 01:21:13 make run_tests -C bpf make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/bpf' make -C ../../../lib/bpf/ make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/bpf' make[1]: *** ../../../lib/bpf/: No such file or directory. Stop. make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/bpf' Makefile:19: recipe for target '../../../lib/bpf/bpf.o' failed make: *** [../../../lib/bpf/bpf.o] Error 2 make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/bpf' 2017-04-08 01:21:13 make run_tests -C breakpoints make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/breakpoints' gcc breakpoint_test.c -o breakpoint_test gcc step_after_suspend_test.c -o step_after_suspend_test Test breakpoint 0 with local: 0 global: 1 [Ok] Test breakpoint 1 with local: 0 global: 1 [Ok] Test breakpoint 2 with local: 0 global: 1 [Ok] Test breakpoint 3 with local: 0 global: 1 [Ok] Test breakpoint 0 with local: 1 global: 0 [Ok] Test breakpoint 1 with local: 1 global: 0 [Ok] Test breakpoint 2 with local: 1 global: 0 [Ok] Test breakpoint 3 with local: 1 global: 0 [Ok] Test breakpoint 0 with local: 1 global: 1 [Ok] Test breakpoint 1 with local: 1 global: 1 [Ok] Test breakpoint 2 with local: 1 global: 1 [Ok] Test breakpoint 3 with local: 1 global: 1 [Ok] Test write watchpoint 0 with len: 1 local: 0 global: 1 [Ok] Test write watchpoint 1 with len: 1 local: 0 global: 1 [Ok] Test write watchpoint 2 with len: 1 local: 0 global: 1 [Ok] Test write watchpoint 3 with len: 1 local: 0 global: 1 [Ok] Test write watchpoint 0 with len: 1 local: 1 global: 0 [Ok] Test write watchpoint 1 with len: 1 local: 1 global: 0 [Ok] Test write watchpoint 2 with len: 1 local: 1 global: 0 [Ok] Test write watchpoint 3 with len: 1 local: 1 global: 0 [Ok] Test write watchpoint 0 with len: 1 local: 1 global: 1 [Ok] Test write watchpoint 1 with len: 1 local: 1 global: 1 [Ok] Test write watchpoint 2 with len: 1 local: 1 global: 1 [Ok] Test write watchpoint 3 with len: 1 local: 1 global: 1 [Ok] Test write watchpoint 0 with len: 2 local: 0 global: 1 [Ok] Test write watchpoint 1 with len: 2 local: 0 global: 1 [Ok] Test write watchpoint 2 with len: 2 local: 0 global: 1 [Ok] Test write watchpoint 3 with len: 2 local: 0 global: 1 [Ok] Test write watchpoint 0 with len: 2 local: 1 global: 0 [Ok] Test write watchpoint 1 with len: 2 local: 1 global: 0 [Ok] Test write watchpoint 2 with len: 2 local: 1 global: 0 [Ok] Test write watchpoint 3 with len: 2 local: 1 global: 0 [Ok] Test write watchpoint 0 with len: 2 local: 1 global: 1 [Ok] Test write watchpoint 1 with len: 2 local: 1 global: 1 [Ok] Test write watchpoint 2 with len: 2 local: 1 global: 1 [Ok] Test write watchpoint 3 with len: 2 local: 1 global: 1 [Ok] Test write watchpoint 0 with len: 4 local: 0 global: 1 [Ok] Test write watchpoint 1 with len: 4 local: 0 global: 1 [Ok] Test write watchpoint 2 with len: 4 local: 0 global: 1 [Ok] Test write watchpoint 3 with len: 4 local: 0 global: 1 [Ok] Test write watchpoint 0 with len: 4 local: 1 global: 0 [Ok] Test write watchpoint 1 with len: 4 local: 1 global: 0 [Ok] Test write watchpoint 2 with len: 4 local: 1 global: 0 [Ok] Test write watchpoint 3 with len: 4 local: 1 global: 0 [Ok] Test write watchpoint 0 with len: 4 local: 1 global: 1 [Ok] Test write watchpoint 1 with len: 4 local: 1 global: 1 [Ok] Test write watchpoint 2 with len: 4 local: 1 global: 1 [Ok] Test write watchpoint 3 with len: 4 local: 1 global: 1 [Ok] Test write watchpoint 0 with len: 8 local: 0 global: 1 [Ok] Test write watchpoint 1 with len: 8 local: 0 global: 1 [Ok] Test write watchpoint 2 with len: 8 local: 0 global: 1 [Ok] Test write watchpoint 3 with len: 8 local: 0 global: 1 [Ok] Test write watchpoint 0 with len: 8 local: 1 global: 0 [Ok] Test write watchpoint 1 with len: 8 local: 1 global: 0 [Ok] Test write watchpoint 2 with len: 8 local: 1 global: 0 [Ok] Test write watchpoint 3 with len: 8 local: 1 global: 0 [Ok] Test write watchpoint 0 with len: 8 local: 1 global: 1 [Ok] Test write watchpoint 1 with len: 8 local: 1 global: 1 [Ok] Test write watchpoint 2 with len: 8 local: 1 global: 1 [Ok] Test write watchpoint 3 with len: 8 local: 1 global: 1 [Ok] Test read watchpoint 0 with len: 1 local: 0 global: 1 [Ok] Test read watchpoint 1 with len: 1 local: 0 global: 1 [Ok] Test read watchpoint 2 with len: 1 local: 0 global: 1 [Ok] Test read watchpoint 3 with len: 1 local: 0 global: 1 [Ok] Test read watchpoint 0 with len: 1 local: 1 global: 0 [Ok] Test read watchpoint 1 with len: 1 local: 1 global: 0 [Ok] Test read watchpoint 2 with len: 1 local: 1 global: 0 [Ok] Test read watchpoint 3 with len: 1 local: 1 global: 0 [Ok] Test read watchpoint 0 with len: 1 local: 1 global: 1 [Ok] Test read watchpoint 1 with len: 1 local: 1 global: 1 [Ok] Test read watchpoint 2 with len: 1 local: 1 global: 1 [Ok] Test read watchpoint 3 with len: 1 local: 1 global: 1 [Ok] Test read watchpoint 0 with len: 2 local: 0 global: 1 [Ok] Test read watchpoint 1 with len: 2 local: 0 global: 1 [Ok] Test read watchpoint 2 with len: 2 local: 0 global: 1 [Ok] Test read watchpoint 3 with len: 2 local: 0 global: 1 [Ok] Test read watchpoint 0 with len: 2 local: 1 global: 0 [Ok] Test read watchpoint 1 with len: 2 local: 1 global: 0 [Ok] Test read watchpoint 2 with len: 2 local: 1 global: 0 [Ok] Test read watchpoint 3 with len: 2 local: 1 global: 0 [Ok] Test read watchpoint 0 with len: 2 local: 1 global: 1 [Ok] Test read watchpoint 1 with len: 2 local: 1 global: 1 [Ok] Test read watchpoint 2 with len: 2 local: 1 global: 1 [Ok] Test read watchpoint 3 with len: 2 local: 1 global: 1 [Ok] Test read watchpoint 0 with len: 4 local: 0 global: 1 [Ok] Test read watchpoint 1 with len: 4 local: 0 global: 1 [Ok] Test read watchpoint 2 with len: 4 local: 0 global: 1 [Ok] Test read watchpoint 3 with len: 4 local: 0 global: 1 [Ok] Test read watchpoint 0 with len: 4 local: 1 global: 0 [Ok] Test read watchpoint 1 with len: 4 local: 1 global: 0 [Ok] Test read watchpoint 2 with len: 4 local: 1 global: 0 [Ok] Test read watchpoint 3 with len: 4 local: 1 global: 0 [Ok] Test read watchpoint 0 with len: 4 local: 1 global: 1 [Ok] Test read watchpoint 1 with len: 4 local: 1 global: 1 [Ok] Test read watchpoint 2 with len: 4 local: 1 global: 1 [Ok] Test read watchpoint 3 with len: 4 local: 1 global: 1 [Ok] Test read watchpoint 0 with len: 8 local: 0 global: 1 [Ok] Test read watchpoint 1 with len: 8 local: 0 global: 1 [Ok] Test read watchpoint 2 with len: 8 local: 0 global: 1 [Ok] Test read watchpoint 3 with len: 8 local: 0 global: 1 [Ok] Test read watchpoint 0 with len: 8 local: 1 global: 0 [Ok] Test read watchpoint 1 with len: 8 local: 1 global: 0 [Ok] Test read watchpoint 2 with len: 8 local: 1 global: 0 [Ok] Test read watchpoint 3 with len: 8 local: 1 global: 0 [Ok] Test read watchpoint 0 with len: 8 local: 1 global: 1 [Ok] Test read watchpoint 1 with len: 8 local: 1 global: 1 [Ok] Test read watchpoint 2 with len: 8 local: 1 global: 1 [Ok] Test read watchpoint 3 with len: 8 local: 1 global: 1 [Ok] Test icebp [Ok] Test int 3 trap [Ok] selftests: breakpoint_test [PASS] CPU 0: [OK] CPU 1: [OK] CPU 2: [OK] CPU 3: [OK] CPU 4: [OK] CPU 5: [OK] CPU 6: [OK] CPU 7: [OK] CPU 8: [OK] CPU 9: [OK] CPU 10: [OK] CPU 11: [OK] CPU 12: [OK] CPU 13: [OK] CPU 14: [OK] CPU 15: [OK] CPU 16: [OK] CPU 17: [OK] CPU 18: [OK] CPU 19: [OK] CPU 20: [OK] CPU 21: [OK] CPU 22: [OK] CPU 23: [OK] CPU 24: [OK] CPU 25: [OK] CPU 26: [OK] CPU 27: [OK] CPU 28: [OK] CPU 29: [OK] CPU 30: [OK] CPU 31: [OK] CPU 32: [OK] CPU 33: [OK] CPU 34: [OK] CPU 35: [OK] CPU 36: [OK] CPU 37: [OK] CPU 38: [OK] CPU 39: [OK] CPU 40: [OK] CPU 41: [OK] CPU 42: [OK] CPU 43: [OK] CPU 44: [OK] CPU 45: [OK] CPU 46: [OK] CPU 47: [OK] CPU 48: [OK] CPU 49: [OK] CPU 50: [OK] CPU 51: [OK] CPU 52: [OK] CPU 53: [OK] CPU 54: [OK] CPU 55: [OK] CPU 56: [OK] CPU 57: [OK] CPU 58: [OK] CPU 59: [OK] CPU 60: [OK] CPU 61: [OK] CPU 62: [OK] CPU 63: [OK] CPU 64: [OK] CPU 65: [OK] CPU 66: [OK] CPU 67: [OK] CPU 68: [OK] CPU 69: [OK] CPU 70: [OK] CPU 71: [OK] Pass: 72 Fail: 0 Xfail: 0 Xpass: 0, Xskip: 0 selftests: step_after_suspend_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/breakpoints' 2017-04-08 01:21:30 chown lkp:lkp capabilities -R 2017-04-08 01:21:30 su lkp -c make run_tests -C capabilities 2>&1 make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/capabilities' gcc -O2 -g -std=gnu99 -Wall validate_cap.c -lcap-ng -lrt -ldl -o validate_cap gcc -O2 -g -std=gnu99 -Wall test_execve.c -lcap-ng -lrt -ldl -o test_execve [OK] Capabilities after execve were correct [OK] Capabilities after execve were correct [OK] Capabilities after execve were correct [RUN] +++ Tests with uid == 0 +++ [NOTE] Using a user namespace for tests [RUN] Root => ep [OK] Child succeeded [OK] Check cap_ambient manipulation rules [OK] PR_CAP_AMBIENT_RAISE failed on non-inheritable cap [OK] PR_CAP_AMBIENT_RAISE failed on non-permitted cap [OK] PR_CAP_AMBIENT_RAISE worked [OK] Basic manipulation appears to work [RUN] Root +i => eip [OK] Child succeeded [RUN] UID 0 +ia => eipa [OK] Child succeeded [SKIP] SUID/SGID tests (needs privilege) [OK] Capabilities after execve were correct [OK] Capabilities after execve were correct [OK] Capabilities after execve were correct [OK] Child succeeded [RUN] +++ Tests with uid != 0 +++ [NOTE] Using a user namespace for tests [RUN] Non-root => no caps [OK] Child succeeded [OK] Check cap_ambient manipulation rules [OK] PR_CAP_AMBIENT_RAISE failed on non-inheritable cap [OK] PR_CAP_AMBIENT_RAISE failed on non-permitted cap [OK] PR_CAP_AMBIENT_RAISE worked [OK] Basic manipulation appears to work [RUN] Non-root +i => i [OK] Child succeeded [RUN] UID 1 +ia => eipa [OK] Child succeeded [SKIP] SUID/SGID tests (needs privilege) [OK] Child succeeded [OK] Child succeeded selftests: test_execve [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/capabilities' 2017-04-08 01:21:35 make run_tests -C cpu-hotplug make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/cpu-hotplug' pid 1474's current affinity mask: ffffffffffffffffff pid 1474's new affinity mask: 1 CPU online/offline summary: Cpus in online state: 0-71 Cpus in offline state: 0 Limited scope test: one hotplug cpu (leaves cpu in the original state): online to offline to online: cpu 71 selftests: cpu-on-off-test.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/cpu-hotplug' skip efivarfs test: /sys/firmware/efi dir does not exist 2017-04-08 01:21:39 make run_tests -C exec make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/exec' gcc -Wall -o execveat execveat.c ln -s -f execveat execveat.symlink cp execveat execveat.denatured chmod -x execveat.denatured echo '#!/bin/sh' > script echo 'exit $*' >> script chmod +x script mkdir -p subdir /bin/sh: 0: Can't open /dev/fd/6/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy Check success of execveat(4, '../execveat', 0)... [OK] Check success of execveat(6, 'execveat', 0)... [OK] Check success of execveat(7, 'execveat', 0)... [OK] Check success of execveat(-100, '/usr/src/linux-selft...ftests/exec/execveat', 0)... [OK] Check success of execveat(99, '/usr/src/linux-selft...ftests/exec/execveat', 0)... [OK] Check success of execveat(9, '', 4096)... [OK] Check success of execveat(18, '', 4096)... [OK] Check success of execveat(10, '', 4096)... [OK] Check success of execveat(15, '', 4096)... [OK] Check success of execveat(15, '', 4096)... [OK] Check success of execveat(16, '', 4096)... [OK] Check failure of execveat(9, '', 0) with ENOENT... [OK] Check failure of execveat(9, '(null)', 4096) with EFAULT... [OK] Check success of execveat(6, 'execveat.symlink', 0)... [OK] Check success of execveat(7, 'execveat.symlink', 0)... [OK] Check success of execveat(-100, '/usr/src/linux-selft...xec/execveat.symlink', 0)... [OK] Check success of execveat(11, '', 4096)... [OK] Check success of execveat(11, '', 4352)... [OK] Check failure of execveat(6, 'execveat.symlink', 256) with ELOOP... [OK] Check failure of execveat(7, 'execveat.symlink', 256) with ELOOP... [OK] Check failure of execveat(-100, '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/exec/execveat.symlink', 256) with ELOOP... [OK] Check success of execveat(4, '../script', 0)... [OK] Check success of execveat(6, 'script', 0)... [OK] Check success of execveat(7, 'script', 0)... [OK] Check success of execveat(-100, '/usr/src/linux-selft...elftests/exec/script', 0)... [OK] Check success of execveat(14, '', 4096)... [OK] Check success of execveat(14, '', 4352)... [OK] Check failure of execveat(19, '', 4096) with ENOENT... [OK] Check failure of execveat(8, 'script', 0) with ENOENT... [OK] Check success of execveat(17, '', 4096)... [OK] Check success of execveat(17, '', 4096)... [OK] Check success of execveat(5, '../script', 0)... [OK] Check success of execveat(5, 'script', 0)... [OK] Check success of execveat(5, '../script', 0)... [OK] Check failure of execveat(5, 'script', 0) with ENOENT... [OK] Check failure of execveat(6, 'execveat', 65535) with EINVAL... [OK] Check failure of execveat(6, 'no-such-file', 0) with ENOENT... [OK] Check failure of execveat(7, 'no-such-file', 0) with ENOENT... [OK] Check failure of execveat(-100, 'no-such-file', 0) with ENOENT... [OK] Check failure of execveat(6, '', 4096) with EACCES... [OK] Check failure of execveat(6, 'Makefile', 0) with EACCES... [OK] Check failure of execveat(12, '', 4096) with EACCES... [OK] Check failure of execveat(13, '', 4096) with EACCES... [OK] Check failure of execveat(99, '', 4096) with EBADF... [OK] Check failure of execveat(99, 'execveat', 0) with EBADF... [OK] Check failure of execveat(9, 'execveat', 0) with ENOTDIR... [OK] Invoke copy of 'execveat' via filename of length 4093: Check success of execveat(20, '', 4096)... [OK] Check success of execveat(6, 'xxxxxxxxxxxxxxxxxxxx...yyyyyyyyyyyyyyyyyyyy', 0)... [OK] Invoke copy of 'script' via filename of length 4093: Check success of execveat(21, '', 4096)... [OK] Check success of execveat(6, 'xxxxxxxxxxxxxxxxxxxx...yyyyyyyyyyyyyyyyyyyy', 0)... [OK] selftests: execveat [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/exec' skip filesystems test: not be default compiling/testing target 2017-04-08 01:21:39 mv /lib/udev/rules.d/50-firmware.rules . 2017-04-08 01:21:39 /etc/init.d/udev restart Restarting udev (via systemctl): udev.service. 2017-04-08 01:21:47 make run_tests -C firmware make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/firmware' sh: printf: I/O error sh: printf: I/O error sh: echo: I/O error ./fw_filesystem.sh: timeout works ./fw_filesystem.sh: filesystem loading works ./fw_filesystem.sh: async filesystem loading works selftests: fw_filesystem.sh [PASS] sh: echo: I/O error selftests: fw_userhelper.sh [FAIL] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/firmware' 2017-04-08 01:21:50 mv 50-firmware.rules /lib/udev/rules.d/50-firmware.rules 2017-04-08 01:21:50 make run_tests -C ftrace make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/ftrace' === Ftrace unit tests === [1] Basic trace file check [PASS] [2] Basic test for tracers [PASS] [3] Basic trace clock test [PASS] [4] Basic event tracing check [PASS] [5] event tracing - enable/disable with event level files [PASS] [6] event tracing - restricts events based on pid [PASS] [7] event tracing - enable/disable with subsystem level files [PASS] [8] event tracing - enable/disable with top level files [PASS] [9] ftrace - function graph filters with stack tracer [PASS] [10] ftrace - function graph filters [PASS] [11] ftrace - function glob filters [PASS] [12] ftrace - function profiler with function tracing [PASS] [13] Test creation and deletion of trace instances while setting an event [PASS] [14] Test creation and deletion of trace instances [PASS] [15] Kprobe dynamic event - adding and removing [PASS] [16] Kprobe dynamic event - busy event check [PASS] [17] Kprobe dynamic event with arguments [PASS] [18] Kprobes event arguments with types [PASS] [19] Kprobe dynamic event with function tracer [PASS] [20] Kretprobe dynamic event with arguments [PASS] [21] event trigger - test event enable/disable trigger [PASS] [22] event trigger - test trigger filter [PASS] [23] event trigger - test histogram modifiers [PASS] [24] event trigger - test histogram trigger [PASS] [25] event trigger - test multiple histogram triggers [PASS] [26] event trigger - test snapshot-trigger [PASS] [27] event trigger - test stacktrace-trigger [PASS] [28] event trigger - test traceon/off trigger [PASS] # of passed: 28 # of failed: 0 # of unresolved: 0 # of untested: 0 # of unsupported: 0 # of xfailed: 0 # of undefined(test bug): 0 selftests: ftracetest [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/ftrace' 2017-04-08 01:23:06 make run_tests -C futex make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/futex' for DIR in functional; do make -C $DIR all ; done make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/futex/functional' gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_wait_timeout.c ../include/futextest.h -o futex_wait_timeout gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_wait_wouldblock.c ../include/futextest.h -o futex_wait_wouldblock gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_requeue_pi.c ../include/futextest.h -o futex_requeue_pi gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_requeue_pi_signal_restart.c ../include/futextest.h -o futex_requeue_pi_signal_restart gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_requeue_pi_mismatched_ops.c ../include/futextest.h -o futex_requeue_pi_mismatched_ops gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_wait_uninitialized_heap.c ../include/futextest.h -o futex_wait_uninitialized_heap gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_wait_private_mapped_file.c ../include/futextest.h -o futex_wait_private_mapped_file make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/futex/functional' ./run.sh tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=0ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=0ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=0ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=0ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=0ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=1 timeout=0ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=5000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=500000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=5000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=5000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=0 timeout=500000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=0 owner=0 timeout=500000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=5000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=0 owner=1 timeout=500000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=1 locked=1 owner=0 timeout=2000000000ns Result: PASS futex_requeue_pi: Test requeue functionality Arguments: broadcast=0 locked=1 owner=0 timeout=2000000000ns Result: PASS futex_requeue_pi_mismatched_ops: Detect mismatched requeue_pi operations Result: PASS futex_requeue_pi_signal_restart: Test signal handling during requeue_pi Arguments: Result: PASS futex_wait_timeout: Block on a futex and wait for timeout Arguments: timeout=100000ns Result: PASS futex_wait_wouldblock: Test the unexpected futex value in FUTEX_WAIT Result: PASS futex_wait_uninitialized_heap: Test the uninitialized futex value in FUTEX_WAIT Result: PASS futex_wait_private_mapped_file: Test the futex value of private file mappings in FUTEX_WAIT Result: PASS make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/futex' 2017-04-08 01:23:17 make run_tests -C gpio make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/gpio' make ARCH= CROSS_COMPILE= -C ../../../gpio make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' mkdir -p include/linux 2>&1 || true ln -sf /usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio/../../include/uapi/linux/gpio.h include/linux/gpio.h make -f /usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/build/Makefile.build dir=. obj=lsgpio make[2]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' CC lsgpio.o CC gpio-utils.o LD lsgpio-in.o make[2]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' LINK lsgpio make -f /usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/build/Makefile.build dir=. obj=gpio-hammer make[2]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' CC gpio-hammer.o LD gpio-hammer-in.o make[2]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' LINK gpio-hammer make -f /usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/build/Makefile.build dir=. obj=gpio-event-mon make[2]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' CC gpio-event-mon.o gpio-event-mon.c: In function 'monitor_device': gpio-event-mon.c:100:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type '__u64 {aka long long unsigned int}' [-Wformat=] fprintf(stdout, "GPIO EVENT %" PRIu64 ": ", event.timestamp); ^ LD gpio-event-mon-in.o make[2]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' LINK gpio-event-mon make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/gpio' gcc -O2 -g -std=gnu99 -Wall -I../../../../usr/include/ gpio-mockup-chardev.c ../../../gpio/gpio-utils.o ../../../../usr/include/linux/gpio.h -lmount -I/usr/include/libmount -o gpio-mockup-chardev 1. Test dynamic allocation of gpio successful means insert gpiochip and manipulate gpio pin successful GPIO gpio-mockup test with ranges: <-1,32>: -1,32 gpio test failed Test gpiochip gpio-mockup: GPIO gpio-mockup test with ranges: <-1,32,-1,32>: -1,32,-1,32 gpio test failed Test gpiochip gpio-mockup: GPIO gpio-mockup test with ranges: <-1,32,-1,32,-1,32>: -1,32,-1,32,-1,32 gpio test failed Test gpiochip gpio-mockup: 3. Error test: successful means insert gpiochip failed 3.1 Test number of gpio overflow GPIO gpio-mockup test with ranges: <-1,32,-1,1024>: -1,32,-1,1024 Test gpiochip gpio-mockup: Invalid test successful GPIO test PASS selftests: gpio-mockup.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/gpio' skip ia64 test: not be default compiling/testing target skip intel_pstate test: not be default compiling/testing target 2017-04-08 01:23:17 make run_tests -C ipc make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/ipc' gcc -DCONFIG_X86_64 -D__x86_64__ -I../../../../usr/include/ msgque.c -o msgque_test msgque.c: In function 'restore_queue': msgque.c:51:7: warning: implicit declaration of function 'msgget' [-Wimplicit-function-declaration] id = msgget(msgque->key, msgque->mode | IPC_CREAT | IPC_EXCL); ^ msgque.c:65:7: warning: implicit declaration of function 'msgsnd' [-Wimplicit-function-declaration] if (msgsnd(msgque->msq_id, &msgque->messages[i].mtype, ^ msgque.c:75:6: warning: implicit declaration of function 'msgctl' [-Wimplicit-function-declaration] if (msgctl(id, IPC_RMID, 0)) ^ msgque.c: In function 'check_and_destroy_queue': msgque.c:86:9: warning: implicit declaration of function 'msgrcv' [-Wimplicit-function-declaration] ret = msgrcv(msgque->msq_id, &message.mtype, MAX_MSG_SIZE, ^ msgque.c: In function 'main': msgque.c:203:15: warning: implicit declaration of function 'ftok' [-Wimplicit-function-declaration] msgque.key = ftok(argv[0], 822155650); ^ selftests: msgque_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/ipc' 2017-04-08 01:23:17 make run_tests -C kcmp make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/kcmp' gcc -I../../../../usr/include/ kcmp_test.c -o kcmp_test pid1: 3605 pid2: 3606 FD: 1 FILES: 1 VM: 1 FS: 2 SIGHAND: 2 IO: 0 SYSVSEM: 0 INV: -1 PASS: 0 returned as expected PASS: 0 returned as expected Pass: 2 Fail: 0 Xfail: 0 Xpass: 0, Xskip: 0 selftests: kcmp_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/kcmp' 2017-04-08 01:23:18 make run_tests -C lib make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/lib' printf: ok selftests: printf.sh [PASS] bitmap: ok selftests: bitmap.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/lib' skip media_tests test: not be default compiling/testing target 2017-04-08 01:23:26 make run_tests -C membarrier make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/membarrier' gcc -g -I../../../../usr/include/ membarrier_test.c -o membarrier_test membarrier MEMBARRIER_CMD_QUERY syscall available. membarrier: MEMBARRIER_CMD_SHARED success. membarrier: tests done! selftests: membarrier_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/membarrier' 2017-04-08 01:23:27 make run_tests -C memfd make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/memfd' gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/include/ memfd_test.c -o memfd_test memfd_test.c: In function 'mfd_assert_get_seals': memfd_test.c:67:6: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration] r = fcntl(fd, F_GET_SEALS); ^ memfd_test.c: In function 'mfd_assert_open': memfd_test.c:190:6: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration] r = open(buf, flags, mode); ^ memfd_test.c: In function 'mfd_assert_write': memfd_test.c:315:6: warning: implicit declaration of function 'fallocate' [-Wimplicit-function-declaration] r = fallocate(fd, ^ memfd: CREATE memfd: BASIC memfd: SEAL-WRITE memfd: SEAL-SHRINK memfd: SEAL-GROW memfd: SEAL-RESIZE memfd: SHARE-DUP memfd: SHARE-MMAP memfd: SHARE-OPEN memfd: SHARE-FORK memfd: SHARE-DUP (shared file-table) memfd: SHARE-MMAP (shared file-table) memfd: SHARE-OPEN (shared file-table) memfd: SHARE-FORK (shared file-table) memfd: DONE selftests: memfd_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/memfd' 2017-04-08 01:23:27 make run_tests -C memory-hotplug make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/memory-hotplug' ./mem-on-off-test.sh -r 2 || echo "selftests: memory-hotplug [FAIL]" Test scope: 2% hotplug memory online all hotplug memory in offline state offline 2% hotplug memory in online state online all hotplug memory in offline state online-offline 18 offline-online 18 make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/memory-hotplug' 2017-04-08 01:23:37 make run_tests -C mount make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/mount' gcc -Wall -O2 unprivileged-remount-test.c -o unprivileged-remount-test if [ -f /proc/self/uid_map ] ; then ./unprivileged-remount-test ; else echo "WARN: No /proc/self/uid_map exist, test skipped." ; fi make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/mount' 2017-04-08 01:23:38 make run_tests -C mqueue make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/mqueue' gcc -O2 mq_open_tests.c -lrt -lpthread -lpopt -o mq_open_tests gcc -O2 mq_perf_tests.c -lrt -lpthread -lpopt -o mq_perf_tests Initial system state: Using queue path: /test1 RLIMIT_MSGQUEUE(soft): 819200 RLIMIT_MSGQUEUE(hard): 819200 Maximum Message Size: 8192 Maximum Queue Size: 10 Default Message Size: 8192 Default Queue Size: 10 Adjusted system state for testing: RLIMIT_MSGQUEUE(soft): 819200 RLIMIT_MSGQUEUE(hard): 819200 Maximum Message Size: 8192 Maximum Queue Size: 10 Default Message Size: 8192 Default Queue Size: 10 Test series 1, behavior when no attr struct passed to mq_open: Kernel supports setting defaults separately from maximums: PASS Given sane values, mq_open without an attr struct succeeds: PASS Kernel properly honors default setting knobs: PASS Kernel properly limits default values to lesser of default/max: PASS Kernel properly fails to create queue when defaults would exceed rlimit: PASS Test series 2, behavior when attr struct is passed to mq_open: Queue open in excess of rlimit max when euid = 0 failed: PASS Queue open with mq_maxmsg > limit when euid = 0 succeeded: PASS Queue open with mq_msgsize > limit when euid = 0 succeeded: PASS Queue open with total size > 2GB when euid = 0 failed: PASS Queue open in excess of rlimit max when euid = 99 failed: PASS Queue open with mq_maxmsg > limit when euid = 99 failed: PASS Queue open with mq_msgsize > limit when euid = 99 failed: PASS Queue open with total size > 2GB when euid = 99 failed: PASS Initial system state: Using queue path: /mq_perf_tests RLIMIT_MSGQUEUE(soft): 819200 RLIMIT_MSGQUEUE(hard): 819200 Maximum Message Size: 8192 Maximum Queue Size: 10 Nice value: 0 Adjusted system state for testing: RLIMIT_MSGQUEUE(soft): (unlimited) RLIMIT_MSGQUEUE(hard): (unlimited) Maximum Message Size: 16777216 Maximum Queue Size: 65530 Nice value: -20 Continuous mode: (disabled) CPUs to pin: 63 Queue /mq_perf_tests created: mq_flags: O_NONBLOCK mq_maxmsg: 65530 mq_msgsize: 16 mq_curmsgs: 0 Started mqueue performance test thread on CPU 63 Max priorities: 32768 Clock resolution: 1 nsec Test #1: Time send/recv message, queue empty (10000000 iterations) Send msg: 3.229068829s total time 322 nsec/msg Recv msg: 3.254432438s total time 325 nsec/msg Test #2a: Time send/recv message, queue full, constant prio : (100000 iterations) Filling queue...done. 0.12789958s Testing...done. Send msg: 0.35188991s total time 351 nsec/msg Recv msg: 0.31296193s total time 312 nsec/msg Draining queue...done. 0.12819727s Test #2b: Time send/recv message, queue full, increasing prio : (100000 iterations) Filling queue...done. 0.20261618s Testing...done. Send msg: 0.45002940s total time 450 nsec/msg Recv msg: 0.40937648s total time 409 nsec/msg Draining queue...done. 0.14472167s Test #2c: Time send/recv message, queue full, decreasing prio : (100000 iterations) Filling queue...done. 0.20070695s Testing...done. Send msg: 0.45436467s total time 454 nsec/msg Recv msg: 0.39937262s total time 399 nsec/msg Draining queue...done. 0.14563170s Test #2d: Time send/recv message, queue full, random prio : (100000 iterations) Filling queue...done. 0.23442891s Testing...done. Send msg: 0.51746863s total time 517 nsec/msg Recv msg: 0.42625085s total time 426 nsec/msg Draining queue...done. 0.15762782s make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/mqueue' 2017-04-08 01:23:47 make run_tests -C net make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/net' gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -o socket socket.c gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -o psock_fanout psock_fanout.c gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -o psock_tpacket psock_tpacket.c gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -o reuseport_bpf reuseport_bpf.c gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -o reuseport_bpf_cpu reuseport_bpf_cpu.c gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -lnuma -o reuseport_bpf_numa reuseport_bpf_numa.c gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -o reuseport_dualstack reuseport_dualstack.c -------------------- running socket test -------------------- [PASS] selftests: run_netsocktests [PASS] -------------------- running psock_fanout test -------------------- test: control single socket test: control multiple sockets test: datapath 0x0 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,5 ERROR: incorrect queue lengths info: trying alternate ports (4) test: datapath 0x0 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,5 ERROR: incorrect queue lengths info: trying alternate ports (3) test: datapath 0x0 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,5 ERROR: incorrect queue lengths info: trying alternate ports (2) test: datapath 0x0 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,5 ERROR: incorrect queue lengths info: trying alternate ports (1) test: datapath 0x0 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,5 ERROR: incorrect queue lengths info: trying alternate ports (0) test: datapath 0x0 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,5 ERROR: incorrect queue lengths test: datapath 0x1000 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,15 ERROR: incorrect queue lengths test: datapath 0x1 info: count=0,0, expect=0,0 info: count=0,0, expect=10,10 ERROR: incorrect queue lengths info: count=0,0, expect=18,17 ERROR: incorrect queue lengths test: datapath 0x3 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=20,15 ERROR: incorrect queue lengths test: datapath 0x6 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=15,20 ERROR: incorrect queue lengths test: datapath 0x7 info: count=0,0, expect=0,0 info: count=0,0, expect=15,5 ERROR: incorrect queue lengths info: count=0,0, expect=15,20 ERROR: incorrect queue lengths test: datapath 0x2 info: count=0,0, expect=0,0 info: count=0,0, expect=20,0 ERROR: incorrect queue lengths info: count=0,0, expect=20,0 ERROR: incorrect queue lengths test: datapath 0x2 info: count=0,0, expect=0,0 info: count=0,0, expect=0,20 ERROR: incorrect queue lengths info: count=0,0, expect=0,20 ERROR: incorrect queue lengths [FAIL] -------------------- running psock_tpacket test -------------------- test: TPACKET_V1 with PACKET_RX_RING .................... 100 pkts (14200 bytes) test: TPACKET_V1 with PACKET_TX_RING .................... 100 pkts (14200 bytes) test: TPACKET_V2 with PACKET_RX_RING .................... 100 pkts (14200 bytes) test: TPACKET_V2 with PACKET_TX_RING .................... 100 pkts (14200 bytes) test: TPACKET_V3 with PACKET_RX_RING .................... 100 pkts (14200 bytes) test: TPACKET_V3 with PACKET_TX_RING .................... 100 pkts (14200 bytes) OK. All tests passed [PASS] selftests: run_afpackettests [PASS] test_bpf: ok selftests: test_bpf.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/net' 2017-04-08 01:24:27 make run_tests -C nsfs make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/nsfs' gcc -Wall -Werror owner.c -o owner gcc -Wall -Werror pidns.c -o pidns selftests: owner [PASS] selftests: pidns [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/nsfs' skip prctl test: not be default compiling/testing target 2017-04-08 01:24:29 make run_tests -C pstore make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/pstore' === Pstore unit tests (pstore_tests) === UUID=d193f59b-398c-4e3c-a0ca-3cc105456d9e Checking pstore backend is registered ... ok backend=ramoops cmdline=BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/d498f8719a098a5df7c6dba4ea302df7afb51efd/vmlinuz-4.10.0-rc7-01842-gd498f87 ip=::::lkp-hsw-ep4::dhcp root=/dev/ram0 user=lizhijian job=/lkp/scheduled/lkp-hsw-ep4/kernel_selftests-defaults-debian-x86_64-2016-08-31.cgz-d498f8719a098a5df7c6dba4ea302df7afb51efd-20170408-1062-19ej6tc-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=d498f8719a098a5df7c6dba4ea302df7afb51efd BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/d498f8719a098a5df7c6dba4ea302df7afb51efd/vmlinuz-4.10.0-rc7-01842-gd498f87 erst_disable max_uptime=3600 RESULT_ROOT=/result/kernel_selftests/defaults/lkp-hsw-ep4/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/d498f8719a098a5df7c6dba4ea302df7afb51efd/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw kexec_jump_back_entry=0xffffffff Checking pstore console is registered ... ok Checking /dev/pmsg0 exists ... ok Writing unique string to /dev/pmsg0 ... ok selftests: pstore_tests [PASS] === Pstore unit tests (pstore_post_reboot_tests) === UUID=3031a8b6-1de4-46bc-809e-ace6f0582fc2 Checking pstore backend is registered ... ok backend=ramoops cmdline=BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/d498f8719a098a5df7c6dba4ea302df7afb51efd/vmlinuz-4.10.0-rc7-01842-gd498f87 ip=::::lkp-hsw-ep4::dhcp root=/dev/ram0 user=lizhijian job=/lkp/scheduled/lkp-hsw-ep4/kernel_selftests-defaults-debian-x86_64-2016-08-31.cgz-d498f8719a098a5df7c6dba4ea302df7afb51efd-20170408-1062-19ej6tc-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=d498f8719a098a5df7c6dba4ea302df7afb51efd BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/d498f8719a098a5df7c6dba4ea302df7afb51efd/vmlinuz-4.10.0-rc7-01842-gd498f87 erst_disable max_uptime=3600 RESULT_ROOT=/result/kernel_selftests/defaults/lkp-hsw-ep4/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/d498f8719a098a5df7c6dba4ea302df7afb51efd/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw kexec_jump_back_entry=0xffffffff pstore_crash_test has not been executed yet. we skip further tests. selftests: pstore_post_reboot_tests [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/pstore' skip ptp test: not be default compiling/testing target 2017-04-08 01:24:29 make run_tests -C ptrace make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/ptrace' gcc -iquote../../../../include/uapi -Wall peeksiginfo.c -o peeksiginfo PASS selftests: peeksiginfo [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/ptrace' 2017-04-08 01:24:29 make run_tests -C seccomp make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/seccomp' gcc -Wl,-no-as-needed -Wall -lpthread seccomp_bpf.c -o seccomp_bpf [==========] Running 52 tests from 1 test cases. [ RUN ] global.mode_strict_support [ OK ] global.mode_strict_support [ RUN ] global.mode_strict_cannot_call_prctl [ OK ] global.mode_strict_cannot_call_prctl [ RUN ] global.no_new_privs_support [ OK ] global.no_new_privs_support [ RUN ] global.mode_filter_support [ OK ] global.mode_filter_support [ RUN ] global.mode_filter_without_nnp [ OK ] global.mode_filter_without_nnp [ RUN ] global.filter_size_limits [ OK ] global.filter_size_limits [ RUN ] global.filter_chain_limits [ OK ] global.filter_chain_limits [ RUN ] global.mode_filter_cannot_move_to_strict [ OK ] global.mode_filter_cannot_move_to_strict [ RUN ] global.mode_filter_get_seccomp [ OK ] global.mode_filter_get_seccomp [ RUN ] global.ALLOW_all [ OK ] global.ALLOW_all [ RUN ] global.empty_prog [ OK ] global.empty_prog [ RUN ] global.unknown_ret_is_kill_inside [ OK ] global.unknown_ret_is_kill_inside [ RUN ] global.unknown_ret_is_kill_above_allow [ OK ] global.unknown_ret_is_kill_above_allow [ RUN ] global.KILL_all [ OK ] global.KILL_all [ RUN ] global.KILL_one [ OK ] global.KILL_one [ RUN ] global.KILL_one_arg_one [ OK ] global.KILL_one_arg_one [ RUN ] global.KILL_one_arg_six [ OK ] global.KILL_one_arg_six [ RUN ] global.arg_out_of_range [ OK ] global.arg_out_of_range [ RUN ] global.ERRNO_valid [ OK ] global.ERRNO_valid [ RUN ] global.ERRNO_zero [ OK ] global.ERRNO_zero [ RUN ] global.ERRNO_capped [ OK ] global.ERRNO_capped [ RUN ] TRAP.dfl [ OK ] TRAP.dfl [ RUN ] TRAP.ign [ OK ] TRAP.ign [ RUN ] TRAP.handler [ OK ] TRAP.handler [ RUN ] precedence.allow_ok [ OK ] precedence.allow_ok [ RUN ] precedence.kill_is_highest [ OK ] precedence.kill_is_highest [ RUN ] precedence.kill_is_highest_in_any_order [ OK ] precedence.kill_is_highest_in_any_order [ RUN ] precedence.trap_is_second [ OK ] precedence.trap_is_second [ RUN ] precedence.trap_is_second_in_any_order [ OK ] precedence.trap_is_second_in_any_order [ RUN ] precedence.errno_is_third [ OK ] precedence.errno_is_third [ RUN ] precedence.errno_is_third_in_any_order [ OK ] precedence.errno_is_third_in_any_order [ RUN ] precedence.trace_is_fourth [ OK ] precedence.trace_is_fourth [ RUN ] precedence.trace_is_fourth_in_any_order [ OK ] precedence.trace_is_fourth_in_any_order [ RUN ] TRACE_poke.read_has_side_effects [ OK ] TRACE_poke.read_has_side_effects [ RUN ] TRACE_poke.getpid_runs_normally [ OK ] TRACE_poke.getpid_runs_normally [ RUN ] TRACE_syscall.syscall_allowed [ OK ] TRACE_syscall.syscall_allowed [ RUN ] TRACE_syscall.syscall_redirected [ OK ] TRACE_syscall.syscall_redirected [ RUN ] TRACE_syscall.syscall_dropped [ OK ] TRACE_syscall.syscall_dropped [ RUN ] TRACE_syscall.skip_after_RET_TRACE [ OK ] TRACE_syscall.skip_after_RET_TRACE [ RUN ] TRACE_syscall.kill_after_RET_TRACE [ OK ] TRACE_syscall.kill_after_RET_TRACE [ RUN ] TRACE_syscall.skip_after_ptrace [ OK ] TRACE_syscall.skip_after_ptrace [ RUN ] TRACE_syscall.kill_after_ptrace [ OK ] TRACE_syscall.kill_after_ptrace [ RUN ] global.seccomp_syscall [ OK ] global.seccomp_syscall [ RUN ] global.seccomp_syscall_mode_lock [ OK ] global.seccomp_syscall_mode_lock [ RUN ] global.TSYNC_first [ OK ] global.TSYNC_first [ RUN ] TSYNC.siblings_fail_prctl [ OK ] TSYNC.siblings_fail_prctl [ RUN ] TSYNC.two_siblings_with_ancestor [ OK ] TSYNC.two_siblings_with_ancestor [ RUN ] TSYNC.two_sibling_want_nnp [ OK ] TSYNC.two_sibling_want_nnp [ RUN ] TSYNC.two_siblings_with_no_filter [ OK ] TSYNC.two_siblings_with_no_filter [ RUN ] TSYNC.two_siblings_with_one_divergence [ OK ] TSYNC.two_siblings_with_one_divergence [ RUN ] TSYNC.two_siblings_not_under_filter [ OK ] TSYNC.two_siblings_not_under_filter [ RUN ] global.syscall_restart [ OK ] global.syscall_restart [==========] 52 / 52 tests passed. [ PASSED ] selftests: seccomp_bpf [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/seccomp' 2017-04-08 01:24:32 make run_tests -C sigaltstack make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/sigaltstack' gcc -Wall sas.c -o sas make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/sigaltstack' 2017-04-08 01:24:32 make run_tests -C size make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/size' gcc -static -ffreestanding -nostartfiles -s get_size.c -o get_size Testing system size. 1..1 ok 1 get runtime memory use # size = 1859508 # System runtime memory report (units in Kilobytes): # Total: 131927484 # Free: 130067976 # Buffer: 0 # In use: 1859508 selftests: get_size [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/size' 2017-04-08 01:24:32 make run_tests -C static_keys make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/static_keys' static_key: ok selftests: test_static_keys.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/static_keys' 2017-04-08 01:24:33 make run_tests -C sync make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/sync' gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_test.o sync_test.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync.o sync.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_alloc.o sync_alloc.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_fence.o sync_fence.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_merge.o sync_merge.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_wait.o sync_wait.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_stress_parallelism.o sync_stress_parallelism.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_stress_consumer.o sync_stress_consumer.c gcc -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -c -o sync_stress_merge.o sync_stress_merge.c gcc -pthread sync_test.o sync.o sync_alloc.o sync_fence.o sync_merge.o sync_wait.o sync_stress_parallelism.o sync_stress_consumer.o sync_stress_merge.o -o sync_test [RUN] Testing sync framework [RUN] Executing test_alloc_timeline [RUN] Executing test_alloc_fence [RUN] Executing test_alloc_fence_negative [RUN] Executing test_fence_one_timeline_wait [RUN] Executing test_fence_one_timeline_merge [RUN] Executing test_fence_merge_same_fence [RUN] Executing test_fence_multi_timeline_wait [RUN] Executing test_stress_two_threads_shared_timeline [RUN] Executing test_consumer_stress_multi_producer_single_consumer [RUN] Executing test_merge_stress_random_merge [OK] sync selftests: sync_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/sync' 2017-04-08 01:24:35 make run_tests -C sysctl make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/sysctl' == Testing sysctl behavior against /proc/sys/vm/swappiness == Writing test file ... ok Checking sysctl is not set to test value ... ok Writing sysctl from shell ... ok Resetting sysctl to original value ... ok Writing entire sysctl in single write ... ok Writing middle of sysctl after synchronized seek ... ok Writing beyond end of sysctl ... ok Writing sysctl with multiple long writes ... ok selftests: run_numerictests [PASS] == Testing sysctl behavior against /proc/sys/kernel/domainname == Writing test file ... ok Checking sysctl is not set to test value ... ok Writing sysctl from shell ... ok Resetting sysctl to original value ... ok Writing entire sysctl in single write ... ok Writing middle of sysctl after synchronized seek ... ok Writing beyond end of sysctl ... ok Writing sysctl with multiple long writes ... ok Writing entire sysctl in short writes ... ok Writing middle of sysctl after unsynchronized seek ... ok Checking sysctl maxlen is at least 65 ... ok Checking sysctl keeps original string on overflow append ... ok Checking sysctl stays NULL terminated on write ... ok Checking sysctl stays NULL terminated on overwrite ... ok selftests: run_stringtests [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/sysctl' 2017-04-08 01:24:35 make run_tests -C timers make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/timers' gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread posix_timers.c -o posix_timers gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread nanosleep.c -o nanosleep gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread nsleep-lat.c -o nsleep-lat gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread set-timer-lat.c -o set-timer-lat gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread mqueue-lat.c -o mqueue-lat gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread inconsistency-check.c -o inconsistency-check gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread raw_skew.c -o raw_skew gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread threadtest.c -o threadtest gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread rtctest.c -o rtctest gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread alarmtimer-suspend.c -o alarmtimer-suspend gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread valid-adjtimex.c -o valid-adjtimex gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread adjtick.c -o adjtick gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread change_skew.c -o change_skew gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread skew_consistency.c -o skew_consistency gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread clocksource-switch.c -o clocksource-switch gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread leap-a-day.c -o leap-a-day gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread leapcrash.c -o leapcrash gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread set-tai.c -o set-tai gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread set-2038.c -o set-2038 gcc -O3 -Wl,-no-as-needed -Wall -DKTEST -lrt -lpthread set-tz.c -o set-tz Testing posix timers. False negative may happen on CPU execution based timers if other threads run on the CPU... Check itimer virtual... [OK] Check itimer prof... [OK] Check itimer real... [OK] Check timer_create() per thread... [OK] Check timer_create() per process... [OK] selftests: posix_timers [PASS] Nanosleep CLOCK_REALTIME [OK] Nanosleep CLOCK_MONOTONIC [OK] Nanosleep CLOCK_MONOTONIC_RAW [UNSUPPORTED] Nanosleep CLOCK_REALTIME_COARSE [UNSUPPORTED] Nanosleep CLOCK_MONOTONIC_COARSE [UNSUPPORTED] Nanosleep CLOCK_BOOTTIME [OK] Nanosleep CLOCK_REALTIME_ALARM [OK] Nanosleep CLOCK_BOOTTIME_ALARM [OK] Nanosleep CLOCK_TAI [OK] selftests: nanosleep [PASS] nsleep latency CLOCK_REALTIME [OK] nsleep latency CLOCK_MONOTONIC [OK] nsleep latency CLOCK_MONOTONIC_RAW [UNSUPPORTED] nsleep latency CLOCK_REALTIME_COARSE [UNSUPPORTED] nsleep latency CLOCK_MONOTONIC_COARSE [UNSUPPORTED] nsleep latency CLOCK_BOOTTIME [OK] nsleep latency CLOCK_REALTIME_ALARM [OK] nsleep latency CLOCK_BOOTTIME_ALARM [OK] nsleep latency CLOCK_TAI [OK] selftests: nsleep-lat [PASS] Setting timers for every 1 seconds CLOCK_REALTIME ABSTIME max latency: 98896 ns : [OK] CLOCK_REALTIME RELTIME max latency: 73945 ns : [OK] CLOCK_MONOTONIC ABSTIME max latency: 73530 ns : [OK] CLOCK_MONOTONIC RELTIME max latency: 72194 ns : [OK] CLOCK_BOOTTIME ABSTIME max latency: 57427 ns : [OK] CLOCK_BOOTTIME RELTIME max latency: 56523 ns : [OK] CLOCK_REALTIME_ALARM ABSTIME max latency: 76643 ns : [OK] CLOCK_REALTIME_ALARM RELTIME max latency: 76099 ns : [OK] CLOCK_BOOTTIME_ALARM ABSTIME max latency: 88052 ns : [OK] CLOCK_BOOTTIME_ALARM RELTIME max latency: 76402 ns : [OK] CLOCK_TAI ABSTIME max latency: 59553 ns : [OK] CLOCK_TAI RELTIME max latency: 68604 ns : [OK] selftests: set-timer-lat [PASS] Mqueue latency : [OK] selftests: mqueue-lat [PASS] Consistent CLOCK_REALTIME [OK] Consistent CLOCK_MONOTONIC [OK] Consistent CLOCK_PROCESS_CPUTIME_ID [OK] Consistent CLOCK_THREAD_CPUTIME_ID [OK] Consistent CLOCK_MONOTONIC_RAW [OK] Consistent CLOCK_REALTIME_COARSE [OK] Consistent CLOCK_MONOTONIC_COARSE [OK] Consistent CLOCK_BOOTTIME [OK] Consistent CLOCK_REALTIME_ALARM [OK] Consistent CLOCK_BOOTTIME_ALARM [OK] Consistent CLOCK_TAI [OK] selftests: inconsistency-check [PASS] Estimating clock drift: 0.8(est) 0.0(act) [OK] selftests: raw_skew [PASS] Sat, 08 Apr 2017 01:32:02 +0800 Testing consistency with 8 threads for 30 seconds: [OK] selftests: threadtest [PASS] RTC Driver Test Example. Counting 5 update (1/sec) interrupts from reading /dev/rtc0: 1 2 3 4 5 Again, from using select(2) on /dev/rtc: 1 2 3 4 5 Current RTC date/time is 8-4-2017, 01:26:02. Alarm time now set to 01:26:07. Waiting 5 seconds for alarm... okay. Alarm rang. Periodic IRQ rate is 1024Hz. Counting 20 interrupts at: 2Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 8Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 16Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 32Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 64Hz: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 *** Test complete *** selftests: rtctest [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/timers' 2017-04-08 01:33:06 make run_tests -C user make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/user' user_copy: ok selftests: test_user_copy.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/user' skip vDSO test: not be default compiling/testing target 2017-04-08 01:33:07 make run_tests -C vm make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/vm' gcc -Wall -I ../../../../usr/include -o compaction_test compaction_test.c -lrt gcc -Wall -I ../../../../usr/include -o hugepage-mmap hugepage-mmap.c -lrt gcc -Wall -I ../../../../usr/include -o hugepage-shm hugepage-shm.c -lrt gcc -Wall -I ../../../../usr/include -o map_hugetlb map_hugetlb.c -lrt gcc -Wall -I ../../../../usr/include -o mlock2-tests mlock2-tests.c -lrt gcc -Wall -I ../../../../usr/include -o on-fault-limit on-fault-limit.c -lrt gcc -Wall -I ../../../../usr/include -o thuge-gen thuge-gen.c -lrt gcc -Wall -I ../../../../usr/include -o transhuge-stress transhuge-stress.c -lrt gcc -Wall -I ../../../../usr/include -O2 -o userfaultfd userfaultfd.c -lpthread gcc -Wall -I ../../../../usr/include -o mlock-random-test mlock-random-test.c -lcap -------------------- running hugepage-mmap -------------------- Returned address is 0x7f5ac4000000 First hex is 0 First hex is 3020100 [PASS] -------------------- running hugepage-shm -------------------- shmid: 0x0 shmaddr: 0x7fe240600000 Starting the writes: ................................................................................................................................................................................................................................................................ Starting the Check...Done. [PASS] -------------------- running map_hugetlb -------------------- Returned address is 0x7ff7c2000000 First hex is 0 First hex is 3020100 [PASS] NOTE: The above hugetlb tests provide minimal coverage. Use https://github.com/libhugetlbfs/libhugetlbfs.git for hugetlb regression testing. -------------------- running userfaultfd -------------------- nr_pages: 32760, nr_pages_per_cpu: 455 bounces: 31, mode: rnd racing ver poll, userfaults: 72 66 68 53 36 54 39 49 45 34 46 46 61 53 44 40 35 46 49 39 22 43 44 46 27 39 42 29 48 25 48 44 32 36 45 40 35 35 37 22 37 36 42 34 32 40 40 33 26 40 40 37 24 26 30 18 19 26 30 15 21 12 17 20 9 5 5 2 0 0 1 0 bounces: 30, mode: racing ver poll, userfaults: 17 10 9 10 8 7 8 9 4 9 11 9 4 9 11 7 9 4 6 8 9 5 7 5 9 8 6 7 7 1 6 2 6 0 3 7 1 2 3 4 3 2 5 3 4 6 0 3 4 0 3 1 1 0 0 0 0 0 1 0 1 0 0 3 0 0 0 0 0 0 0 1 bounces: 29, mode: rnd ver poll, userfaults: 301 286 277 272 269 255 267 263 250 245 233 242 245 238 206 238 236 216 222 226 223 224 226 219 212 210 201 202 203 195 179 178 166 172 169 175 175 176 164 160 159 124 122 105 119 107 109 109 109 103 101 62 56 32 36 31 29 24 21 20 16 12 10 6 3 0 0 0 0 0 0 0 bounces: 28, mode: ver poll, userfaults: 126 125 127 112 88 104 129 93 100 75 95 108 84 103 84 62 89 58 90 88 64 78 67 71 76 69 59 67 61 88 77 58 78 58 56 62 56 50 67 44 53 59 43 44 47 58 61 36 34 26 21 23 26 7 5 5 12 9 5 3 11 4 1 5 3 5 0 2 1 1 2 0 bounces: 27, mode: rnd racing poll, userfaults: 76 64 47 59 71 52 45 56 54 50 55 47 56 55 61 45 47 63 42 63 33 53 39 43 46 44 41 48 42 66 46 45 56 47 35 46 44 42 37 48 48 42 25 62 51 27 49 35 45 37 37 29 32 24 20 19 9 14 16 6 8 3 5 8 6 4 1 0 0 0 0 0 bounces: 26, mode: racing poll, userfaults: 21 23 20 23 20 39 30 13 28 14 17 22 24 33 14 30 14 18 14 20 23 23 13 19 23 23 28 23 15 26 14 18 14 12 11 21 12 28 24 16 22 20 17 18 18 17 34 16 13 14 8 10 24 7 16 14 19 13 8 21 15 27 33 4 6 10 20 1 0 0 0 0 bounces: 25, mode: rnd poll, userfaults: 264 258 263 248 252 236 215 224 220 216 222 203 217 213 209 210 213 199 197 192 179 179 165 172 171 175 167 164 164 160 153 157 155 145 146 146 144 142 129 135 128 117 127 97 83 107 94 99 101 85 89 86 52 48 43 31 42 33 34 32 25 24 17 14 10 6 5 1 0 0 0 0 bounces: 24, mode: poll, userfaults: 164 174 179 162 192 158 164 175 164 189 148 167 158 153 131 148 154 147 147 127 148 143 149 137 148 137 103 98 131 112 113 101 135 106 91 72 91 94 105 108 80 95 96 81 61 66 87 82 80 86 81 93 72 71 63 59 54 80 68 38 44 23 21 9 16 5 6 1 4 4 0 4 bounces: 23, mode: rnd racing ver, userfaults: 128 143 114 115 117 135 112 105 129 100 85 111 114 126 124 93 118 119 107 104 105 113 81 107 95 95 92 81 115 83 79 113 80 85 79 101 63 61 54 45 29 37 41 40 30 23 13 20 22 13 22 13 7 14 16 16 12 18 6 8 6 2 8 3 0 4 0 0 0 2 0 0 bounces: 22, mode: racing ver, userfaults: 153 254 224 173 176 200 249 152 122 215 246 233 263 161 168 194 238 225 184 221 182 150 222 195 191 191 207 156 144 157 257 175 206 218 186 132 213 173 128 176 102 166 188 110 106 98 132 140 151 105 143 104 109 128 102 158 133 7 6 8 2 1 1 1 0 0 0 0 0 0 0 0 bounces: 21, mode: rnd ver, userfaults: 614 618 571 585 533 579 506 528 559 563 546 542 560 459 540 516 530 528 438 497 507 515 485 470 449 467 478 467 387 359 383 380 367 291 218 183 202 104 94 0 2 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 bounces: 20, mode: ver, userfaults: 292 266 225 182 265 204 235 275 220 234 177 228 179 191 209 230 200 192 220 184 180 205 185 203 177 171 172 212 182 191 183 193 194 213 161 169 196 191 155 196 133 157 104 137 136 76 122 112 99 91 104 85 69 62 64 48 83 69 63 43 42 69 36 36 30 13 25 5 10 15 5 0 bounces: 19, mode: rnd racing, userfaults: 170 165 177 177 175 129 140 142 139 184 133 174 134 169 163 169 158 160 127 142 179 131 143 169 127 137 107 122 119 95 109 105 149 138 123 97 85 91 70 44 62 60 47 61 58 60 58 38 49 29 28 42 26 33 25 24 27 20 20 30 12 25 14 10 5 8 11 0 1 1 1 1 bounces: 18, mode: racing, userfaults: 142 130 145 149 151 138 147 133 129 146 166 173 133 153 121 141 107 123 116 129 142 146 86 112 149 132 107 132 122 106 157 131 147 119 153 135 134 116 135 131 147 101 60 97 54 51 68 59 29 30 34 20 17 24 3 9 7 7 12 4 10 5 10 5 7 3 5 6 4 0 0 0 bounces: 17, mode: rnd, userfaults: 766 733 691 726 730 570 559 497 556 544 545 555 545 485 543 530 453 524 531 510 446 510 499 407 502 496 396 476 454 396 407 324 309 264 144 203 122 49 48 20 24 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 bounces: 16, mode:, userfaults: 286 311 282 253 271 236 277 289 328 248 200 247 333 273 213 229 327 322 265 226 318 290 205 252 234 224 210 334 229 318 205 302 214 199 261 221 208 173 192 163 178 209 218 168 172 199 198 97 177 226 170 174 204 120 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 bounces: 15, mode: rnd racing ver poll, userfaults: 54 46 52 40 48 47 34 33 33 25 23 52 40 31 38 38 30 44 40 27 40 21 33 27 31 35 40 45 19 24 11 15 15 18 16 6 28 12 15 30 22 23 13 20 14 20 16 14 16 19 17 17 8 17 10 20 10 8 12 6 7 6 10 5 13 4 5 4 5 1 1 0 bounces: 14, mode: racing ver poll, userfaults: 41 38 41 27 32 47 33 31 45 22 19 39 23 28 42 30 30 45 31 41 35 35 42 34 26 39 35 21 31 35 36 24 29 40 27 41 22 29 43 29 41 20 48 46 26 20 24 29 41 37 28 18 30 25 26 23 21 23 10 10 21 17 16 11 8 9 11 5 0 2 0 0 bounces: 13, mode: rnd ver poll, userfaults: 290 280 255 256 266 219 249 221 235 239 241 228 221 230 220 225 213 203 217 223 214 209 201 178 184 195 173 198 193 159 185 175 172 177 170 170 168 156 124 119 149 147 131 126 129 118 103 98 80 85 85 86 57 51 51 46 35 44 28 36 32 6 3 1 0 0 0 0 0 0 0 0 bounces: 12, mode: ver poll, userfaults: 99 52 57 103 77 74 63 66 47 59 73 66 48 32 58 68 56 42 49 57 39 60 54 48 50 51 47 46 26 40 44 27 51 34 63 52 44 38 36 33 52 29 43 33 40 28 53 29 33 22 16 26 39 39 38 36 37 13 20 28 28 21 10 13 11 2 0 0 1 0 0 0 bounces: 11, mode: rnd racing poll, userfaults: 50 47 43 36 53 33 42 46 68 37 36 30 42 41 51 44 50 35 36 41 38 24 34 32 25 27 31 41 26 22 21 30 36 37 26 29 30 26 26 24 30 34 25 20 24 26 37 38 31 42 25 24 22 23 26 25 21 8 9 14 11 1 4 5 4 2 4 0 1 0 0 1 bounces: 10, mode: racing poll, userfaults: 63 69 73 74 62 38 78 55 62 61 68 59 74 73 48 49 73 76 72 58 62 75 64 80 61 67 72 82 90 71 69 50 41 67 85 59 52 52 73 66 33 49 49 62 75 66 61 49 78 60 55 73 43 62 61 62 55 46 65 63 60 53 47 32 31 39 18 19 2 3 0 0 bounces: 9, mode: rnd poll, userfaults: 248 199 229 217 219 216 221 206 200 202 184 198 194 188 170 189 179 173 158 180 174 180 157 155 170 169 160 140 155 144 141 148 145 136 131 129 134 129 125 114 113 106 109 105 108 104 96 103 91 94 83 94 83 59 65 66 58 62 49 39 25 21 17 15 9 4 0 0 0 0 0 0 bounces: 8, mode: poll, userfaults: 67 78 66 82 79 70 65 59 74 72 78 68 56 59 73 56 63 53 60 42 35 40 46 35 40 39 27 26 35 40 46 35 36 46 25 53 25 40 37 38 58 34 20 32 48 43 27 48 42 22 37 28 26 44 36 33 23 12 22 19 17 7 14 14 19 9 9 14 7 8 3 0 bounces: 7, mode: rnd racing ver, userfaults: 206 187 184 162 186 174 121 140 121 145 127 147 133 129 142 129 144 145 130 134 133 113 86 110 122 114 113 122 129 114 120 122 121 77 85 75 86 65 77 63 61 58 43 58 32 49 48 37 33 19 23 19 13 12 19 17 11 11 6 15 8 0 10 6 4 2 0 2 2 3 0 0 bounces: 6, mode: racing ver, userfaults: 199 226 186 183 172 196 193 164 177 151 159 172 214 192 169 185 160 169 180 123 192 192 159 176 172 199 222 139 130 150 138 112 90 111 152 67 124 90 76 95 81 110 83 73 80 96 71 89 62 63 44 45 38 17 37 43 26 32 34 31 20 14 24 10 21 12 7 8 3 1 0 0 bounces: 5, mode: rnd ver, userfaults: 624 587 555 563 573 593 510 576 527 562 519 536 447 550 537 514 493 500 483 508 500 505 513 423 438 445 466 421 418 397 376 333 304 287 330 188 108 89 105 53 4 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 bounces: 4, mode: ver, userfaults: 323 318 269 316 291 245 261 295 297 264 280 277 256 327 287 298 264 306 257 283 319 315 275 286 256 277 258 221 213 200 163 167 125 179 146 141 139 112 91 97 82 95 80 77 89 71 60 64 46 52 43 25 31 33 49 40 30 31 23 27 25 40 32 23 22 25 19 6 19 24 0 0 bounces: 3, mode: rnd racing, userfaults: 271 239 223 232 228 234 174 195 191 197 157 183 162 197 181 191 189 174 161 157 159 179 162 198 173 183 161 166 123 114 142 155 111 112 104 108 74 93 106 95 88 67 89 105 82 55 71 51 99 45 49 45 54 37 54 34 30 24 16 28 12 10 2 9 8 3 3 1 2 1 1 1 bounces: 2, mode: racing, userfaults: 367 236 218 178 195 156 182 152 181 144 194 140 152 192 167 177 162 181 183 184 191 173 150 154 174 141 173 164 168 110 139 155 140 104 134 90 99 119 96 105 92 107 85 98 90 83 55 62 74 54 52 45 48 44 27 32 24 15 6 7 7 10 5 8 7 6 5 5 2 1 1 0 bounces: 1, mode: rnd, userfaults: 1286 1386 1250 1313 1372 1354 750 746 823 763 708 667 690 671 610 659 569 500 613 547 506 371 367 368 354 357 351 305 277 274 193 190 175 113 22 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 bounces: 0, mode:, userfaults: 290 289 299 265 304 276 319 301 311 284 316 278 327 353 269 322 320 265 273 296 280 324 247 249 231 191 181 208 147 152 165 145 130 147 209 115 102 103 147 94 77 76 97 110 70 67 73 67 92 73 73 63 62 76 66 30 55 48 49 29 35 21 10 10 17 7 0 0 0 0 0 0 [PASS] ----------------------- running compaction_test ----------------------- No of huge pages allocated = 37799 [PASS] -------------------- running on-fault-limit -------------------- [PASS] -------------------- running mlock2-tests -------------------- [PASS] selftests: run_vmtests [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/vm' skip watchdog test: not be default compiling/testing target 2017-04-08 01:34:20 make run_tests -C x86 make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/x86' gcc -m64 -o single_step_syscall_64 -O2 -g -std=gnu99 -pthread -Wall single_step_syscall.c -lrt -ldl gcc -m64 -o sysret_ss_attrs_64 -O2 -g -std=gnu99 -pthread -Wall sysret_ss_attrs.c thunks.S -lrt -ldl gcc -m64 -o syscall_nt_64 -O2 -g -std=gnu99 -pthread -Wall syscall_nt.c -lrt -ldl gcc -m64 -o ptrace_syscall_64 -O2 -g -std=gnu99 -pthread -Wall ptrace_syscall.c -lrt -ldl gcc -m64 -o test_mremap_vdso_64 -O2 -g -std=gnu99 -pthread -Wall test_mremap_vdso.c -lrt -ldl gcc -m64 -o check_initial_reg_state_64 -O2 -g -std=gnu99 -pthread -Wall -Wl,-ereal_start -static check_initial_reg_state.c -lrt -ldl gcc -m64 -o sigreturn_64 -O2 -g -std=gnu99 -pthread -Wall sigreturn.c -lrt -ldl gcc -m64 -o ldt_gdt_64 -O2 -g -std=gnu99 -pthread -Wall ldt_gdt.c -lrt -ldl gcc -m64 -o iopl_64 -O2 -g -std=gnu99 -pthread -Wall iopl.c -lrt -ldl gcc -m64 -o protection_keys_64 -O2 -g -std=gnu99 -pthread -Wall protection_keys.c -lrt -ldl protection_keys.c:198:0: warning: "SYS_pkey_alloc" redefined #define SYS_pkey_alloc 330 ^ In file included from /usr/include/x86_64-linux-gnu/sys/syscall.h:31:0, from protection_keys.c:27: /usr/include/x86_64-linux-gnu/bits/syscall.h:572:0: note: this is the location of the previous definition #define SYS_pkey_alloc __NR_pkey_alloc ^ protection_keys.c:199:0: warning: "SYS_pkey_free" redefined #define SYS_pkey_free 331 ^ In file included from /usr/include/x86_64-linux-gnu/sys/syscall.h:31:0, from protection_keys.c:27: /usr/include/x86_64-linux-gnu/bits/syscall.h:573:0: note: this is the location of the previous definition #define SYS_pkey_free __NR_pkey_free ^ protection_keys.c: In function 'setup_hugetlbfs': protection_keys.c:816:6: warning: unused variable 'i' [-Wunused-variable] int i; ^ protection_keys.c:815:6: warning: unused variable 'validated_nr_pages' [-Wunused-variable] int validated_nr_pages; ^ protection_keys.c: In function 'test_pkey_syscalls_bad_args': protection_keys.c:1136:6: warning: unused variable 'bad_flag' [-Wunused-variable] int bad_flag = (PKEY_DISABLE_ACCESS | PKEY_DISABLE_WRITE) + 1; ^ protection_keys.c: In function 'test_pkey_alloc_exhaust': protection_keys.c:1153:16: warning: unused variable 'init_val' [-Wunused-variable] unsigned long init_val; ^ protection_keys.c:1152:16: warning: unused variable 'flags' [-Wunused-variable] unsigned long flags; ^ protection_keys.c: In function 'pkey_disable_set': protection_keys.c:68:5: warning: 'orig_pkru' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!(condition)) { \ ^ protection_keys.c:465:6: note: 'orig_pkru' was declared here u32 orig_pkru; ^ gcc -m64 -o test_vdso_64 -O2 -g -std=gnu99 -pthread -Wall test_vdso.c -lrt -ldl test_vdso.c: In function 'main': test_vdso.c:98:37: warning: 'node' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!ret_vsys && (cpu_vsys != cpu || node_vsys != node)) ^ test_vdso.c:78:12: note: 'node' was declared here unsigned node; ^ gcc -m64 -o fsgsbase_64 -O2 -g -std=gnu99 -pthread -Wall fsgsbase.c -lrt -ldl Warning: you seem to have a broken 32-bit build environment. This will reduce test coverage of 64-bit kernels. If you are using a Debian-like distribution, try: apt-get install gcc-multilib libc6-i386 libc6-dev-i386 If you are using a Fedora-like distribution, try: yum install glibc-devel.*i686 [RUN] Set TF and check nop [OK] Survived with TF set and 9 traps [RUN] Set TF and check syscall-less opportunistic sysret [OK] Survived with TF set and 12 traps [RUN] Set TF and check int80 [OK] Survived with TF set and 9 traps [RUN] Set TF and check a fast syscall [OK] Survived with TF set and 23 traps [RUN] Fast syscall with TF cleared [OK] Nothing unexpected happened selftests: single_step_syscall_64 [PASS] [RUN] Syscalls followed by SS validation [OK] We survived selftests: sysret_ss_attrs_64 [PASS] [RUN] Set NT and issue a syscall [OK] The syscall worked and flags are still set [RUN] Set NT|TF and issue a syscall [OK] The syscall worked and flags are still set selftests: syscall_nt_64 [PASS] [RUN] Check int80 return regs [OK] getpid() preserves regs [OK] kill(getpid(), SIGUSR1) preserves regs [RUN] ptrace-induced syscall restart [RUN] SYSEMU [FAIL] Initial args are wrong (nr=14, args=2 140736679580528 0 8 0 140736679580528) [RUN] Restart the syscall (ip = 0x7f43ecd04f9f) [FAIL] Restart nr or args are wrong (nr=14, args=2 140736679580528 0 8 0 140736679580528) [RUN] Change nr and args and restart the syscall (ip = 0x7f43ecd04f9f) [OK] Replacement nr and args are correct [OK] Child exited cleanly [RUN] kernel syscall restart under ptrace [RUN] SYSCALL [FAIL] Initial args are wrong (nr=14, args=2 140736679580128 0 8 0 140736679580128) [RUN] SYSCALL [FAIL] Args after SIGUSR1 are wrong (nr=14, args=2 140736679580128 0 8 0 140736679580128) [OK] Child got SIGUSR1 [RUN] Step again [OK] pause(2) restarted correctly selftests: ptrace_syscall_64 [PASS] AT_SYSINFO_EHDR is 0x7fff66353000 [NOTE] Moving vDSO: [0x7fff66353000, 0x7fff66354000] -> [0x7ff6751b4000, 0x7ff6751b5000] [NOTE] vDSO partial move failed, will try with bigger size [NOTE] Moving vDSO: [0x7fff66353000, 0x7fff66355000] -> [0x7ff6751b3000, 0x7ff6751b5000] [OK] selftests: test_mremap_vdso_64 [PASS] [OK] All GPRs except SP are 0 [OK] FLAGS is 0x202 selftests: check_initial_reg_state_64 [PASS] [OK] set_thread_area refused 16-bit data [OK] set_thread_area refused 16-bit data [RUN] Valid sigreturn: 64-bit CS (33), 32-bit SS (2b, GDT) SP: 8badf00d5aadc0de -> 8badf00d5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 32-bit CS (23), 32-bit SS (2b, GDT) SP: 8badf00d5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 16-bit CS (37), 32-bit SS (2b, GDT) SP: 8badf00d5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 64-bit CS (33), 16-bit SS (3f) SP: 8badf00d5aadc0de -> 8badf00d5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 32-bit CS (23), 16-bit SS (3f) SP: 8badf00d5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 16-bit CS (37), 16-bit SS (3f) SP: 8badf00d5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 32-bit CS (23), 32-bit SS (2b, GDT) Corrupting SS on return to 64-bit mode SP: 8badf00d5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 32-bit CS (23), 16-bit SS (3f) Corrupting SS on return to 64-bit mode SP: 8badf00d5aadc0de -> 5aadc0de [OK] all registers okay [RUN] 64-bit CS (33), bogus SS (47) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 32-bit CS (23), bogus SS (47) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 16-bit CS (37), bogus SS (47) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 64-bit CS (33), bogus SS (33) [OK] Got #GP(0x30) (i.e. GDT index 6, Segmentation fault) [RUN] 32-bit CS (23), bogus SS (33) [OK] Got #GP(0x30) (i.e. GDT index 6, Segmentation fault) [RUN] 16-bit CS (37), bogus SS (33) [OK] Got #GP(0x30) (i.e. GDT index 6, Segmentation fault) [RUN] 32-bit CS (4f), bogus SS (2b) [OK] Got #NP(0x4c) (i.e. LDT index 9, Bus error) [RUN] 32-bit CS (23), bogus SS (57) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] Clear UC_STRICT_RESTORE_SS and corrupt SS [OK] It worked selftests: sigreturn_64 [PASS] [NOTE] set_thread_area is available; will use GDT index 12 [OK] LDT entry 0 has AR 0x0040FA00 and limit 0x0000000A [OK] LDT entry 0 has AR 0x00C0FA00 and limit 0x0000AFFF [OK] LDT entry 1 is invalid [OK] LDT entry 2 has AR 0x00C0FA00 and limit 0x0000AFFF [OK] LDT entry 1 is invalid [OK] LDT entry 2 has AR 0x00C0FA00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D0FA00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07A00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00907A00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07200 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07000 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07400 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00507600 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507E00 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507C00 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507A00 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507800 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507800 and limit 0x0000000A [RUN] Test fork [OK] LDT entry 2 has AR 0x00507800 and limit 0x0000000A [OK] LDT entry 1 is invalid [OK] LDT entry 0 has AR 0x0040FA00 and limit 0x0000002A [NOTE] set_thread_area is available; will use GDT index 12 [OK] LDT entry 0 has AR 0x0040FA00 and limit 0x0000000A [OK] LDT entry 0 has AR 0x00C0FA00 and limit 0x0000AFFF [OK] LDT entry 1 is invalid [OK] LDT entry 2 has AR 0x00C0FA00 and limit 0x0000AFFF [OK] LDT entry 1 is invalid [OK] LDT entry 2 has AR 0x00C0FA00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D0FA00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07A00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00907A00 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07200 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07000 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00D07400 and limit 0x0000AFFF [OK] LDT entry 2 has AR 0x00507600 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507E00 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507C00 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507A00 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507800 and limit 0x0000000A [OK] LDT entry 2 has AR 0x00507800 and limit 0x0000000A [RUN] Test fork [OK] Child succeeded [RUN] Test size [DONE] Size test [OK] modify_ldt failure 22 [OK] LDT entry 0 has AR 0x0000F200 and limit 0x00000000 [OK] LDT entry 0 has AR 0x00007200 and limit 0x00000000 [OK] LDT entry 0 has AR 0x0000F000 and limit 0x00000000 [OK] LDT entry 0 has AR 0x00007200 and limit 0x00000000 [OK] LDT entry 0 has AR 0x00007000 and limit 0x00000001 [OK] LDT entry 0 has AR 0x00007000 and limit 0x00000000 [OK] LDT entry 0 is invalid [OK] LDT entry 0 has AR 0x0040F200 and limit 0x00000000 [OK] LDT entry 0 is invalid [RUN] Cross-CPU LDT invalidation [OK] All 5 iterations succeeded [RUN] Test exec [OK] LDT entry 0 has AR 0x0040FA00 and limit 0x0000002A [OK] Child succeeded [OK] Invalidate DS with set_thread_area: new DS = 0x0 [OK] Invalidate ES with set_thread_area: new ES = 0x0 [OK] Invalidate FS with set_thread_area: new FS = 0x0 [OK] New FSBASE was zero [OK] Invalidate GS with set_thread_area: new GS = 0x0 [OK] New GSBASE was zero selftests: ldt_gdt_64 [PASS] child: set IOPL to 3 [RUN] child: write to 0x80 [OK] Child succeeded [RUN] parent: write to 0x80 (should fail) [OK] write was denied iopl(3) Drop privileges [RUN] iopl(3) unprivileged but with IOPL==3 [RUN] iopl(0) unprivileged [RUN] iopl(3) unprivileged [OK] Failed as expected selftests: iopl_64 [PASS] has pku: 0 running PKEY tests for unsupported CPU/OS selftests: protection_keys_64 [PASS] [RUN] Testing getcpu... [OK] CPU 0: syscall: cpu 0, node 0 vdso: cpu 0, node 0 vsyscall: cpu 0, node 0 [OK] CPU 1: syscall: cpu 1, node 0 vdso: cpu 1, node 0 vsyscall: cpu 1, node 0 [OK] CPU 2: syscall: cpu 2, node 0 vdso: cpu 2, node 0 vsyscall: cpu 2, node 0 [OK] CPU 3: syscall: cpu 3, node 0 vdso: cpu 3, node 0 vsyscall: cpu 3, node 0 [OK] CPU 4: syscall: cpu 4, node 0 vdso: cpu 4, node 0 vsyscall: cpu 4, node 0 [OK] CPU 5: syscall: cpu 5, node 0 vdso: cpu 5, node 0 vsyscall: cpu 5, node 0 [OK] CPU 6: syscall: cpu 6, node 0 vdso: cpu 6, node 0 vsyscall: cpu 6, node 0 [OK] CPU 7: syscall: cpu 7, node 0 vdso: cpu 7, node 0 vsyscall: cpu 7, node 0 [OK] CPU 8: syscall: cpu 8, node 0 vdso: cpu 8, node 0 vsyscall: cpu 8, node 0 [OK] CPU 9: syscall: cpu 9, node 0 vdso: cpu 9, node 0 vsyscall: cpu 9, node 0 [OK] CPU 10: syscall: cpu 10, node 0 vdso: cpu 10, node 0 vsyscall: cpu 10, node 0 [OK] CPU 11: syscall: cpu 11, node 0 vdso: cpu 11, node 0 vsyscall: cpu 11, node 0 [OK] CPU 12: syscall: cpu 12, node 0 vdso: cpu 12, node 0 vsyscall: cpu 12, node 0 [OK] CPU 13: syscall: cpu 13, node 0 vdso: cpu 13, node 0 vsyscall: cpu 13, node 0 [OK] CPU 14: syscall: cpu 14, node 0 vdso: cpu 14, node 0 vsyscall: cpu 14, node 0 [OK] CPU 15: syscall: cpu 15, node 0 vdso: cpu 15, node 0 vsyscall: cpu 15, node 0 [OK] CPU 16: syscall: cpu 16, node 0 vdso: cpu 16, node 0 vsyscall: cpu 16, node 0 [OK] CPU 17: syscall: cpu 17, node 0 vdso: cpu 17, node 0 vsyscall: cpu 17, node 0 [OK] CPU 18: syscall: cpu 18, node 1 vdso: cpu 18, node 1 vsyscall: cpu 18, node 1 [OK] CPU 19: syscall: cpu 19, node 1 vdso: cpu 19, node 1 vsyscall: cpu 19, node 1 [OK] CPU 20: syscall: cpu 20, node 1 vdso: cpu 20, node 1 vsyscall: cpu 20, node 1 [OK] CPU 21: syscall: cpu 21, node 1 vdso: cpu 21, node 1 vsyscall: cpu 21, node 1 [OK] CPU 22: syscall: cpu 22, node 1 vdso: cpu 22, node 1 vsyscall: cpu 22, node 1 [OK] CPU 23: syscall: cpu 23, node 1 vdso: cpu 23, node 1 vsyscall: cpu 23, node 1 [OK] CPU 24: syscall: cpu 24, node 1 vdso: cpu 24, node 1 vsyscall: cpu 24, node 1 [OK] CPU 25: syscall: cpu 25, node 1 vdso: cpu 25, node 1 vsyscall: cpu 25, node 1 [OK] CPU 26: syscall: cpu 26, node 1 vdso: cpu 26, node 1 vsyscall: cpu 26, node 1 [OK] CPU 27: syscall: cpu 27, node 1 vdso: cpu 27, node 1 vsyscall: cpu 27, node 1 [OK] CPU 28: syscall: cpu 28, node 1 vdso: cpu 28, node 1 vsyscall: cpu 28, node 1 [OK] CPU 29: syscall: cpu 29, node 1 vdso: cpu 29, node 1 vsyscall: cpu 29, node 1 [OK] CPU 30: syscall: cpu 30, node 1 vdso: cpu 30, node 1 vsyscall: cpu 30, node 1 [OK] CPU 31: syscall: cpu 31, node 1 vdso: cpu 31, node 1 vsyscall: cpu 31, node 1 [OK] CPU 32: syscall: cpu 32, node 1 vdso: cpu 32, node 1 vsyscall: cpu 32, node 1 [OK] CPU 33: syscall: cpu 33, node 1 vdso: cpu 33, node 1 vsyscall: cpu 33, node 1 [OK] CPU 34: syscall: cpu 34, node 1 vdso: cpu 34, node 1 vsyscall: cpu 34, node 1 [OK] CPU 35: syscall: cpu 35, node 1 vdso: cpu 35, node 1 vsyscall: cpu 35, node 1 [OK] CPU 36: syscall: cpu 36, node 0 vdso: cpu 36, node 0 vsyscall: cpu 36, node 0 [OK] CPU 37: syscall: cpu 37, node 0 vdso: cpu 37, node 0 vsyscall: cpu 37, node 0 [OK] CPU 38: syscall: cpu 38, node 0 vdso: cpu 38, node 0 vsyscall: cpu 38, node 0 [OK] CPU 39: syscall: cpu 39, node 0 vdso: cpu 39, node 0 vsyscall: cpu 39, node 0 [OK] CPU 40: syscall: cpu 40, node 0 vdso: cpu 40, node 0 vsyscall: cpu 40, node 0 [OK] CPU 41: syscall: cpu 41, node 0 vdso: cpu 41, node 0 vsyscall: cpu 41, node 0 [OK] CPU 42: syscall: cpu 42, node 0 vdso: cpu 42, node 0 vsyscall: cpu 42, node 0 [OK] CPU 43: syscall: cpu 43, node 0 vdso: cpu 43, node 0 vsyscall: cpu 43, node 0 [OK] CPU 44: syscall: cpu 44, node 0 vdso: cpu 44, node 0 vsyscall: cpu 44, node 0 [OK] CPU 45: syscall: cpu 45, node 0 vdso: cpu 45, node 0 vsyscall: cpu 45, node 0 [OK] CPU 46: syscall: cpu 46, node 0 vdso: cpu 46, node 0 vsyscall: cpu 46, node 0 [OK] CPU 47: syscall: cpu 47, node 0 vdso: cpu 47, node 0 vsyscall: cpu 47, node 0 [OK] CPU 48: syscall: cpu 48, node 0 vdso: cpu 48, node 0 vsyscall: cpu 48, node 0 [OK] CPU 49: syscall: cpu 49, node 0 vdso: cpu 49, node 0 vsyscall: cpu 49, node 0 [OK] CPU 50: syscall: cpu 50, node 0 vdso: cpu 50, node 0 vsyscall: cpu 50, node 0 [OK] CPU 51: syscall: cpu 51, node 0 vdso: cpu 51, node 0 vsyscall: cpu 51, node 0 [OK] CPU 52: syscall: cpu 52, node 0 vdso: cpu 52, node 0 vsyscall: cpu 52, node 0 [OK] CPU 53: syscall: cpu 53, node 0 vdso: cpu 53, node 0 vsyscall: cpu 53, node 0 [OK] CPU 54: syscall: cpu 54, node 1 vdso: cpu 54, node 1 vsyscall: cpu 54, node 1 [OK] CPU 55: syscall: cpu 55, node 1 vdso: cpu 55, node 1 vsyscall: cpu 55, node 1 [OK] CPU 56: syscall: cpu 56, node 1 vdso: cpu 56, node 1 vsyscall: cpu 56, node 1 [OK] CPU 57: syscall: cpu 57, node 1 vdso: cpu 57, node 1 vsyscall: cpu 57, node 1 [OK] CPU 58: syscall: cpu 58, node 1 vdso: cpu 58, node 1 vsyscall: cpu 58, node 1 [OK] CPU 59: syscall: cpu 59, node 1 vdso: cpu 59, node 1 vsyscall: cpu 59, node 1 [OK] CPU 60: syscall: cpu 60, node 1 vdso: cpu 60, node 1 vsyscall: cpu 60, node 1 [OK] CPU 61: syscall: cpu 61, node 1 vdso: cpu 61, node 1 vsyscall: cpu 61, node 1 [OK] CPU 62: syscall: cpu 62, node 1 vdso: cpu 62, node 1 vsyscall: cpu 62, node 1 [OK] CPU 63: syscall: cpu 63, node 1 vdso: cpu 63, node 1 vsyscall: cpu 63, node 1 [OK] CPU 64: syscall: cpu 64, node 1 vdso: cpu 64, node 1 vsyscall: cpu 64, node 1 [OK] CPU 65: syscall: cpu 65, node 1 vdso: cpu 65, node 1 vsyscall: cpu 65, node 1 [OK] CPU 66: syscall: cpu 66, node 1 vdso: cpu 66, node 1 vsyscall: cpu 66, node 1 [OK] CPU 67: syscall: cpu 67, node 1 vdso: cpu 67, node 1 vsyscall: cpu 67, node 1 [OK] CPU 68: syscall: cpu 68, node 1 vdso: cpu 68, node 1 vsyscall: cpu 68, node 1 [OK] CPU 69: syscall: cpu 69, node 1 vdso: cpu 69, node 1 vsyscall: cpu 69, node 1 [OK] CPU 70: syscall: cpu 70, node 1 vdso: cpu 70, node 1 vsyscall: cpu 70, node 1 [OK] CPU 71: syscall: cpu 71, node 1 vdso: cpu 71, node 1 vsyscall: cpu 71, node 1 selftests: test_vdso_64 [PASS] [RUN] ARCH_SET_GS to 0x0 [OK] GSBASE was set as expected (selector 0x0) [OK] ARCH_GET_GS worked as expected (selector 0x0) [RUN] ARCH_SET_GS to 0x1 [OK] GSBASE was set as expected (selector 0x0) [OK] ARCH_GET_GS worked as expected (selector 0x0) [RUN] ARCH_SET_GS to 0x200000000 [OK] GSBASE was set as expected (selector 0x0) [OK] ARCH_GET_GS worked as expected (selector 0x0) [RUN] ARCH_SET_GS to 0x0 [OK] GSBASE was set as expected (selector 0x0) [OK] ARCH_GET_GS worked as expected (selector 0x0) [RUN] ARCH_SET_GS to 0x200000000 [OK] GSBASE was set as expected (selector 0x0) [OK] ARCH_GET_GS worked as expected (selector 0x0) [RUN] ARCH_SET_GS to 0x1 [OK] GSBASE was set as expected (selector 0x0) [OK] ARCH_GET_GS worked as expected (selector 0x0) [RUN] ARCH_SET_GS to 0x0 then mov 0 to %gs [OK] GSBASE is 0x0 [RUN] ARCH_SET_GS to 0x1 then mov 0 to %gs [OK] GSBASE is 0x0 [RUN] ARCH_SET_GS to 0x200000000 then mov 0 to %gs [OK] GSBASE is 0x0 [RUN] ARCH_SET_GS to 0x0 then mov 0 to %gs and schedule [OK] GSBASE is 0x0 [RUN] ARCH_SET_GS to 0x1 then mov 0 to %gs and schedule [OK] GSBASE is 0x0 [RUN] ARCH_SET_GS to 0x200000000 then mov 0 to %gs and schedule [OK] GSBASE is 0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x0 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0xa1fa5f343cb85fa4 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x0 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0xa1fa5f343cb85fa4 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GSBASE remained 0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x0 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GSBASE remained 0x1 [RUN] ARCH_SET_GS(0x1), then schedule to 0xa1fa5f343cb85fa4 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GSBASE remained 0x1 [RUN] ARCH_SET_GS(0x1), then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GSBASE remained 0x1 [RUN] ARCH_SET_GS(0x1), then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GSBASE remained 0x1 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x0 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GSBASE remained 0x200000000 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0xa1fa5f343cb85fa4 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GSBASE remained 0x200000000 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GSBASE remained 0x200000000 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GSBASE remained 0x200000000 [RUN] ARCH_SET_GS(0), clear gs, then manipulate GSBASE in a different thread other thread: using LDT slot 0 [OK] GSBASE remained 0 selftests: fsgsbase_64 [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-d498f8719a098a5df7c6dba4ea302df7afb51efd/tools/testing/selftests/x86'