make: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests' for TARGET in breakpoints cpu-hotplug efivarfs kcmp livepatch memory-hotplug mqueue net ptrace vm x86 powerpc; do \ make -C $TARGET; \ done; make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/breakpoints' gcc breakpoint_test.c -o breakpoint_test make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/breakpoints' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/cpu-hotplug' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/cpu-hotplug' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/efivarfs' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/efivarfs' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/kcmp' gcc -DCONFIG_X86_64 -D__x86_64__ -I../../../../arch/x86/include/generated/ -I../../../../include/ -I../../../../usr/include/ -I../../../../arch/x86/include/ kcmp_test.c -o kcmp_test make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/kcmp' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/livepatch' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/livepatch' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/memory-hotplug' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/memory-hotplug' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/mqueue' gcc -O2 -lrt mq_open_tests.c -o mq_open_tests gcc -O2 -lrt -lpthread -lpopt -o mq_perf_tests mq_perf_tests.c make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/mqueue' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/net' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/net' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/ptrace' make[1]: `peeksiginfo' is up to date. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/ptrace' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/vm' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/vm' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/x86' make[1]: Nothing to be done for `all'. make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/x86' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/powerpc' make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/powerpc' for TARGET in breakpoints cpu-hotplug efivarfs kcmp livepatch memory-hotplug mqueue net ptrace vm x86 powerpc; do \ make -C $TARGET run_tests; \ done; make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/breakpoints' 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] make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/breakpoints' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/cpu-hotplug' cpu-hotplug selftests: [FAIL] make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/cpu-hotplug' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/efivarfs' make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/efivarfs' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/kcmp' gcc -DCONFIG_X86_64 -D__x86_64__ -I../../../../arch/x86/include/generated/ -I../../../../include/ -I../../../../usr/include/ -I../../../../arch/x86/include/ kcmp_test.c -o kcmp_test make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/kcmp' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/livepatch' TAP version 13 selftests: test-livepatch.sh ======================================== TEST: basic function patching ... not ok 1..1 selftests: test-livepatch.sh [FAIL] selftests: test-callbacks.sh ======================================== TEST: target module before livepatch ... not ok 1..2 selftests: test-callbacks.sh [FAIL] selftests: test-shadow-vars.sh ======================================== TEST: basic shadow variable API ... not ok 1..3 selftests: test-shadow-vars.sh [FAIL] selftests: test-ftrace.sh ======================================== TEST: livepatch interaction with ftrace_enabled sysctl ... not ok 1..4 selftests: test-ftrace.sh [FAIL] make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/livepatch' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/memory-hotplug' memory-hotplug selftests: [FAIL] make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/memory-hotplug' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/mqueue' 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: 7 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 7 Max priorities: 32768 Clock resolution: 1 nsec Test #1: Time send/recv message, queue empty (10000000 iterations) Send msg: 3.335631547s total time 333 nsec/msg Recv msg: 3.510613691s total time 351 nsec/msg Test #2a: Time send/recv message, queue full, constant prio (100000 iterations) Filling queue...done. 0.11061731s Testing...done. Send msg: 0.33214054s total time 332 nsec/msg Recv msg: 0.36201576s total time 362 nsec/msg Draining queue...done. 0.12509321s Test #2b: Time send/recv message, queue full, increasing prio (100000 iterations) Filling queue...done. 0.16864513s Testing...done. Send msg: 0.40612451s total time 406 nsec/msg Recv msg: 0.39736841s total time 397 nsec/msg Draining queue...done. 0.13597094s Test #2c: Time send/recv message, queue full, decreasing prio (100000 iterations) Filling queue...done. 0.16672585s Testing...done. Send msg: 0.40904629s total time 409 nsec/msg Recv msg: 0.39690681s total time 396 nsec/msg Draining queue...done. 0.13742228s Test #2d: Time send/recv message, queue full, random prio (100000 iterations) Filling queue...done. 0.17758029s Testing...done. Send msg: 0.46545836s total time 465 nsec/msg Recv msg: 0.43057585s total time 430 nsec/msg Draining queue...done. 0.15488477s make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/mqueue' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/net' -------------------- running socket test -------------------- [PASS] -------------------- running psock_fanout test -------------------- OK. All tests passed [PASS] -------------------- running psock_tpacket test -------------------- OK. All tests passed [PASS] make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/net' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/ptrace' PASS make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/ptrace' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/vm' -------------------- running hugepage-mmap -------------------- Returned address is 0x2aaaaac00000 First hex is 0 First hex is 3020100 [PASS] -------------------- running hugepage-shm -------------------- shmid: 0x1 shmaddr: 0x2aaaaac00000 Starting the writes: ................................................................................................................................................................................................................................................................ Starting the Check...Done. [PASS] -------------------- running map_hugetlb -------------------- Returned address is 0x2aaaaac00000 First hex is 0 First hex is 3020100 [PASS] make[1]: Leaving directory `/mnt/code/kernel-src-tree/tools/testing/selftests/vm' make[1]: Entering directory `/mnt/code/kernel-src-tree/tools/testing/selftests/x86' TAP version 13 selftests: sigreturn_32 ======================================== [WARN] set_thread_area allocated data16 at index 13 [WARN] set_thread_area allocated npdata32 at index 14 [RUN] Valid sigreturn: 64-bit CS (33), 32-bit SS (2b, GDT) SP: 5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 32-bit CS (23), 32-bit SS (2b, GDT) SP: 5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 16-bit CS (37), 32-bit SS (2b, GDT) SP: 5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 64-bit CS (33), 16-bit SS (3f) SP: 5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 32-bit CS (23), 16-bit SS (3f) SP: 5aadc0de -> 3fd4c0de [FAIL] Reg 7 mismatch: requested 0x5aadc0de; got 0x3fd4c0de [RUN] Valid sigreturn: 16-bit CS (37), 16-bit SS (3f) SP: 5aadc0de -> 3fd4c0de [FAIL] Reg 7 mismatch: requested 0x5aadc0de; got 0x3fd4c0de [RUN] Valid sigreturn: 64-bit CS (33), 16-bit SS (6b, GDT) SP: 5aadc0de -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 32-bit CS (23), 16-bit SS (6b, GDT) SP: 5aadc0de -> 3fd4c0de [FAIL] Reg 7 mismatch: requested 0x5aadc0de; got 0x3fd4c0de [RUN] Valid sigreturn: 16-bit CS (37), 16-bit SS (6b, GDT) SP: 5aadc0de -> 3fd4c0de [FAIL] Reg 7 mismatch: requested 0x5aadc0de; got 0x3fd4c0de [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 (23) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 32-bit CS (23), bogus SS (23) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 16-bit CS (37), bogus SS (23) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 32-bit CS (4f), bogus SS (2b) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 32-bit CS (23), bogus SS (57) [OK] Got #GP(0x0) (i.e. Segmentation fault) [RUN] 32-bit CS (23), bogus SS (73) [OK] Got #GP(0x0) (i.e. Segmentation fault) not ok 1..1 selftests: sigreturn_32 [FAIL] selftests: single_step_syscall_32 ========================================