KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee 2017-12-25 14:09:58 ln -sf /usr/bin/gcc-5 /usr/bin/gcc 2017-12-25 14:09:58 make run_tests -C android make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/android' make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/android/ion' gcc -I. -I../../../../../drivers/staging/android/uapi/ -Wall -O2 -g ionapp_export.c ipcsocket.c ionutils.c -o ionapp_export ionapp_export.c: In function 'main': ionapp_export.c:91:2: warning: 'heap_type' may be used uninitialized in this function [-Wmaybe-uninitialized] printf("heap_type: %ld, heap_size: %ld\n", heap_type, heap_size); ^ gcc -I. -I../../../../../drivers/staging/android/uapi/ -Wall -O2 -g ionapp_import.c ipcsocket.c ionutils.c -o ionapp_import make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/android/ion' ion_test.sh: No /dev/ion device found ion_test.sh: May be CONFIG_ION is not set make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/android' 2017-12-25 14:09:58 make run_tests -C bpf make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf' make -C ../../../lib/bpf OUTPUT=/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/ make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/lib/bpf' Auto-detecting system features: ... libelf: [ on ] ... bpf: [ on ] HOSTCC /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/fixdep.o HOSTLD /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/fixdep-in.o LINK /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/fixdep CC /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.o CC /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/bpf.o LD /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf-in.o LINK /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a LINK /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.so make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/lib/bpf' make -C ../../../lib/bpf OUTPUT=/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/ make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/lib/bpf' make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/lib/bpf' gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_verifier.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_verifier gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_tag.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_tag gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_maps.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_maps gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_lru_map.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_lru_map gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_lpm_map.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_lpm_map gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_progs.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_progs gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_align.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_align gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_verifier_log.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_verifier_log gcc -Wall -O2 -I../../../include/uapi -I../../../lib -I../../../../include/generated -I../../../include test_dev_cgroup.c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/libbpf.a /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c -lcap -lelf -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_dev_cgroup clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_pkt_access.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_pkt_access.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_xdp.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_xdp.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_l4lb.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_l4lb.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_tcp_estats.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_tcp_estats.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_obj_id.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_obj_id.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_pkt_md_access.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_pkt_md_access.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_xdp_redirect.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_xdp_redirect.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_xdp_meta.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/test_xdp_meta.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/sockmap_parse_prog.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/sockmap_parse_prog.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/sockmap_verdict_prog.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/sockmap_verdict_prog.o clang -I. -I./include/uapi -I../../../include/uapi \ -Wno-compare-distinct-pointer-types \ -O2 -target bpf -emit-llvm -c /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/dev_cgroup.c -o - | \ llc -march=bpf -mcpu=generic -filetype=obj -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/dev_cgroup.o TAP version 13 selftests: test_verifier ======================================== #0/u add+sub+mul OK #0/p add+sub+mul OK #1/u unreachable OK #1/p unreachable OK #2/u unreachable2 OK #2/p unreachable2 OK #3/u out of range jump OK #3/p out of range jump OK #4/u out of range jump2 OK #4/p out of range jump2 OK #5/u test1 ld_imm64 OK #5/p test1 ld_imm64 OK #6/u test2 ld_imm64 OK #6/p test2 ld_imm64 OK #7/u test3 ld_imm64 OK #7/p test3 ld_imm64 OK #8/u test4 ld_imm64 OK #8/p test4 ld_imm64 OK #9/u test5 ld_imm64 OK #9/p test5 ld_imm64 OK #10/u test6 ld_imm64 OK #10/p test6 ld_imm64 OK #11/u test7 ld_imm64 OK #11/p test7 ld_imm64 OK #12/u test8 ld_imm64 OK #12/p test8 ld_imm64 OK #13/u test9 ld_imm64 OK #13/p test9 ld_imm64 OK #14/u test10 ld_imm64 OK #14/p test10 ld_imm64 OK #15/u test11 ld_imm64 OK #15/p test11 ld_imm64 OK #16/u test12 ld_imm64 OK #16/p test12 ld_imm64 OK #17/u test13 ld_imm64 OK #17/p test13 ld_imm64 OK #18/u no bpf_exit OK #18/p no bpf_exit OK #19/u loop (back-edge) OK #19/p loop (back-edge) OK #20/u loop2 (back-edge) OK #20/p loop2 (back-edge) OK #21/u conditional loop OK #21/p conditional loop OK #22/u read uninitialized register OK #22/p read uninitialized register OK #23/u read invalid register OK #23/p read invalid register OK #24/u program doesn't init R0 before exit OK #24/p program doesn't init R0 before exit OK #25/u program doesn't init R0 before exit in all branches OK #25/p program doesn't init R0 before exit in all branches OK #26/u stack out of bounds OK #26/p stack out of bounds OK #27/u invalid call insn1 OK #27/p invalid call insn1 OK #28/u invalid call insn2 OK #28/p invalid call insn2 OK #29/u invalid function call OK #29/p invalid function call OK #30/u uninitialized stack1 OK #30/p uninitialized stack1 OK #31/u uninitialized stack2 OK #31/p uninitialized stack2 OK #32/u invalid fp arithmetic OK #32/p invalid fp arithmetic OK #33/u non-invalid fp arithmetic OK #33/p non-invalid fp arithmetic OK #34/p invalid argument register OK #35/p non-invalid argument register OK #36/u check valid spill/fill OK #36/p check valid spill/fill OK #37/u check valid spill/fill, skb mark OK #37/p check valid spill/fill, skb mark OK #38/u check corrupted spill/fill OK #38/p check corrupted spill/fill OK #39/u invalid src register in STX OK #39/p invalid src register in STX OK #40/u invalid dst register in STX OK #40/p invalid dst register in STX OK #41/u invalid dst register in ST OK #41/p invalid dst register in ST OK #42/u invalid src register in LDX OK #42/p invalid src register in LDX OK #43/u invalid dst register in LDX OK #43/p invalid dst register in LDX OK #44/u junk insn OK #44/p junk insn OK #45/u junk insn2 OK #45/p junk insn2 OK #46/u junk insn3 OK #46/p junk insn3 OK #47/u junk insn4 OK #47/p junk insn4 OK #48/u junk insn5 OK #48/p junk insn5 OK #49/u misaligned read from stack OK #49/p misaligned read from stack OK #50/u invalid map_fd for function call OK #50/p invalid map_fd for function call OK #51/u don't check return value before access OK #51/p don't check return value before access OK #52/u access memory with incorrect alignment OK #52/p access memory with incorrect alignment OK #53/u sometimes access memory with incorrect alignment OK #53/p sometimes access memory with incorrect alignment OK #54/u jump test 1 OK #54/p jump test 1 OK #55/u jump test 2 OK #55/p jump test 2 OK #56/u jump test 3 OK #56/p jump test 3 OK #57/u jump test 4 OK #57/p jump test 4 OK #58/u jump test 5 OK #58/p jump test 5 OK #59/u access skb fields ok OK #59/p access skb fields ok OK #60/u access skb fields bad1 OK #60/p access skb fields bad1 OK #61/u access skb fields bad2 OK #61/p access skb fields bad2 OK #62/u access skb fields bad3 OK #62/p access skb fields bad3 OK #63/u access skb fields bad4 OK #63/p access skb fields bad4 OK #64/u invalid access __sk_buff family OK #64/p invalid access __sk_buff family OK #65/u invalid access __sk_buff remote_ip4 OK #65/p invalid access __sk_buff remote_ip4 OK #66/u invalid access __sk_buff local_ip4 OK #66/p invalid access __sk_buff local_ip4 OK #67/u invalid access __sk_buff remote_ip6 OK #67/p invalid access __sk_buff remote_ip6 OK #68/u invalid access __sk_buff local_ip6 OK #68/p invalid access __sk_buff local_ip6 OK #69/u invalid access __sk_buff remote_port OK #69/p invalid access __sk_buff remote_port OK #70/u invalid access __sk_buff remote_port OK #70/p invalid access __sk_buff remote_port OK #71/p valid access __sk_buff family OK #72/p valid access __sk_buff remote_ip4 OK #73/p valid access __sk_buff local_ip4 OK #74/p valid access __sk_buff remote_ip6 OK #75/p valid access __sk_buff local_ip6 OK #76/p valid access __sk_buff remote_port OK #77/p valid access __sk_buff remote_port OK #78/p invalid access of tc_classid for SK_SKB OK #79/p invalid access of skb->mark for SK_SKB OK #80/p check skb->mark is not writeable by SK_SKB OK #81/p check skb->tc_index is writeable by SK_SKB OK #82/p check skb->priority is writeable by SK_SKB OK #83/p direct packet read for SK_SKB OK #84/p direct packet write for SK_SKB OK #85/p overlapping checks for direct packet access SK_SKB OK #86/u check skb->mark is not writeable by sockets OK #86/p check skb->mark is not writeable by sockets OK #87/u check skb->tc_index is not writeable by sockets OK #87/p check skb->tc_index is not writeable by sockets OK #88/u check cb access: byte OK #88/p check cb access: byte OK #89/u __sk_buff->hash, offset 0, byte store not permitted OK #89/p __sk_buff->hash, offset 0, byte store not permitted OK #90/u __sk_buff->tc_index, offset 3, byte store not permitted OK #90/p __sk_buff->tc_index, offset 3, byte store not permitted OK #91/u check skb->hash byte load permitted OK #91/p check skb->hash byte load permitted OK #92/u check skb->hash byte load not permitted 1 OK #92/p check skb->hash byte load not permitted 1 OK #93/u check skb->hash byte load not permitted 2 OK #93/p check skb->hash byte load not permitted 2 OK #94/u check skb->hash byte load not permitted 3 OK #94/p check skb->hash byte load not permitted 3 OK #95/p check cb access: byte, wrong type OK #96/u check cb access: half OK #96/p check cb access: half OK #97/u check cb access: half, unaligned OK #97/p check cb access: half, unaligned OK #98/u check __sk_buff->hash, offset 0, half store not permitted OK #98/p check __sk_buff->hash, offset 0, half store not permitted OK #99/u check __sk_buff->tc_index, offset 2, half store not permitted OK #99/p check __sk_buff->tc_index, offset 2, half store not permitted OK #100/u check skb->hash half load permitted OK #100/p check skb->hash half load permitted OK #101/u check skb->hash half load not permitted OK #101/p check skb->hash half load not permitted OK #102/p check cb access: half, wrong type OK #103/u check cb access: word OK #103/p check cb access: word OK #104/u check cb access: word, unaligned 1 OK #104/p check cb access: word, unaligned 1 OK #105/u check cb access: word, unaligned 2 OK #105/p check cb access: word, unaligned 2 OK #106/u check cb access: word, unaligned 3 OK #106/p check cb access: word, unaligned 3 OK #107/u check cb access: word, unaligned 4 OK #107/p check cb access: word, unaligned 4 OK #108/u check cb access: double OK #108/p check cb access: double OK #109/u check cb access: double, unaligned 1 OK #109/p check cb access: double, unaligned 1 OK #110/u check cb access: double, unaligned 2 OK #110/p check cb access: double, unaligned 2 OK #111/u check cb access: double, oob 1 OK #111/p check cb access: double, oob 1 OK #112/u check cb access: double, oob 2 OK #112/p check cb access: double, oob 2 OK #113/u check __sk_buff->ifindex dw store not permitted OK #113/p check __sk_buff->ifindex dw store not permitted OK #114/u check __sk_buff->ifindex dw load not permitted OK #114/p check __sk_buff->ifindex dw load not permitted OK #115/p check cb access: double, wrong type OK #116/p check out of range skb->cb access OK #117/u write skb fields from socket prog OK #117/p write skb fields from socket prog OK #118/p write skb fields from tc_cls_act prog OK #119/u PTR_TO_STACK store/load OK #119/p PTR_TO_STACK store/load OK #120/u PTR_TO_STACK store/load - bad alignment on off OK #120/p PTR_TO_STACK store/load - bad alignment on off OK #121/u PTR_TO_STACK store/load - bad alignment on reg OK #121/p PTR_TO_STACK store/load - bad alignment on reg OK #122/u PTR_TO_STACK store/load - out of bounds low OK #122/p PTR_TO_STACK store/load - out of bounds low OK #123/u PTR_TO_STACK store/load - out of bounds high OK #123/p PTR_TO_STACK store/load - out of bounds high OK #124/u unpriv: return pointer OK #124/p unpriv: return pointer OK #125/u unpriv: add const to pointer OK #125/p unpriv: add const to pointer OK #126/u unpriv: add pointer to pointer OK #126/p unpriv: add pointer to pointer OK #127/u unpriv: neg pointer OK #127/p unpriv: neg pointer OK #128/u unpriv: cmp pointer with const OK #128/p unpriv: cmp pointer with const OK #129/u unpriv: cmp pointer with pointer OK #129/p unpriv: cmp pointer with pointer OK #130/u unpriv: check that printk is disallowed OK #130/p unpriv: check that printk is disallowed OK #131/u unpriv: pass pointer to helper function OK #131/p unpriv: pass pointer to helper function OK #132/u unpriv: indirectly pass pointer on stack to helper function OK #132/p unpriv: indirectly pass pointer on stack to helper function OK #133/u unpriv: mangle pointer on stack 1 OK #133/p unpriv: mangle pointer on stack 1 OK #134/u unpriv: mangle pointer on stack 2 OK #134/p unpriv: mangle pointer on stack 2 OK #135/u unpriv: read pointer from stack in small chunks OK #135/p unpriv: read pointer from stack in small chunks OK #136/u unpriv: write pointer into ctx OK #136/p unpriv: write pointer into ctx OK #137/u unpriv: spill/fill of ctx OK #137/p unpriv: spill/fill of ctx OK #138/p unpriv: spill/fill of ctx 2 OK #139/p unpriv: spill/fill of ctx 3 OK #140/p unpriv: spill/fill of ctx 4 OK #141/p unpriv: spill/fill of different pointers stx OK #142/p unpriv: spill/fill of different pointers ldx OK #143/u unpriv: write pointer into map elem value OK #143/p unpriv: write pointer into map elem value OK #144/u unpriv: partial copy of pointer OK #144/p unpriv: partial copy of pointer OK #145/u unpriv: pass pointer to tail_call OK #145/p unpriv: pass pointer to tail_call OK #146/u unpriv: cmp map pointer with zero OK #146/p unpriv: cmp map pointer with zero OK #147/u unpriv: write into frame pointer OK #147/p unpriv: write into frame pointer OK #148/u unpriv: spill/fill frame pointer OK #148/p unpriv: spill/fill frame pointer OK #149/u unpriv: cmp of frame pointer OK #149/p unpriv: cmp of frame pointer OK #150/u unpriv: adding of fp OK #150/p unpriv: adding of fp OK #151/u unpriv: cmp of stack pointer OK #151/p unpriv: cmp of stack pointer OK #152/u stack pointer arithmetic OK #152/p stack pointer arithmetic OK #153/p raw_stack: no skb_load_bytes OK #154/p raw_stack: skb_load_bytes, negative len OK #155/p raw_stack: skb_load_bytes, negative len 2 OK #156/p raw_stack: skb_load_bytes, zero len OK #157/p raw_stack: skb_load_bytes, no init OK #158/p raw_stack: skb_load_bytes, init OK #159/p raw_stack: skb_load_bytes, spilled regs around bounds OK #160/p raw_stack: skb_load_bytes, spilled regs corruption OK #161/p raw_stack: skb_load_bytes, spilled regs corruption 2 OK #162/p raw_stack: skb_load_bytes, spilled regs + data OK #163/p raw_stack: skb_load_bytes, invalid access 1 OK #164/p raw_stack: skb_load_bytes, invalid access 2 OK #165/p raw_stack: skb_load_bytes, invalid access 3 OK #166/p raw_stack: skb_load_bytes, invalid access 4 OK #167/p raw_stack: skb_load_bytes, invalid access 5 OK #168/p raw_stack: skb_load_bytes, invalid access 6 OK #169/p raw_stack: skb_load_bytes, large access OK #170/p direct packet access: test1 OK #171/p direct packet access: test2 OK #172/p direct packet access: test3 OK #173/p direct packet access: test4 (write) OK #174/p direct packet access: test5 (pkt_end >= reg, good access) OK #175/p direct packet access: test6 (pkt_end >= reg, bad access) OK #176/p direct packet access: test7 (pkt_end >= reg, both accesses) OK #177/p direct packet access: test8 (double test, variant 1) OK #178/p direct packet access: test9 (double test, variant 2) OK #179/p direct packet access: test10 (write invalid) OK #180/p direct packet access: test11 (shift, good access) OK #181/p direct packet access: test12 (and, good access) OK #182/p direct packet access: test13 (branches, good access) OK #183/p direct packet access: test14 (pkt_ptr += 0, CONST_IMM, good access) OK #184/p direct packet access: test15 (spill with xadd) OK #185/p direct packet access: test16 (arith on data_end) OK #186/p direct packet access: test17 (pruning, alignment) OK #187/p direct packet access: test18 (imm += pkt_ptr, 1) OK #188/p direct packet access: test19 (imm += pkt_ptr, 2) OK #189/p direct packet access: test20 (x += pkt_ptr, 1) OK #190/p direct packet access: test21 (x += pkt_ptr, 2) OK #191/p direct packet access: test22 (x += pkt_ptr, 3) OK #192/p direct packet access: test23 (x += pkt_ptr, 4) OK #193/p direct packet access: test24 (x += pkt_ptr, 5) OK #194/p direct packet access: test25 (marking on <, good access) OK #195/p direct packet access: test26 (marking on <, bad access) OK #196/p direct packet access: test27 (marking on <=, good access) OK #197/p direct packet access: test28 (marking on <=, bad access) OK #198/p helper access to packet: test1, valid packet_ptr range OK #199/p helper access to packet: test2, unchecked packet_ptr OK #200/p helper access to packet: test3, variable add OK #201/p helper access to packet: test4, packet_ptr with bad range OK #202/p helper access to packet: test5, packet_ptr with too short range OK #203/p helper access to packet: test6, cls valid packet_ptr range OK #204/p helper access to packet: test7, cls unchecked packet_ptr OK #205/p helper access to packet: test8, cls variable add OK #206/p helper access to packet: test9, cls packet_ptr with bad range OK #207/p helper access to packet: test10, cls packet_ptr with too short range OK #208/p helper access to packet: test11, cls unsuitable helper 1 OK #209/p helper access to packet: test12, cls unsuitable helper 2 OK #210/p helper access to packet: test13, cls helper ok OK #211/p helper access to packet: test14, cls helper ok sub OK #212/p helper access to packet: test15, cls helper fail sub OK #213/p helper access to packet: test16, cls helper fail range 1 OK #214/p helper access to packet: test17, cls helper fail range 2 OK #215/p helper access to packet: test18, cls helper fail range 3 OK #216/p helper access to packet: test19, cls helper range zero OK #217/p helper access to packet: test20, pkt end as input OK #218/p helper access to packet: test21, wrong reg OK #219/u valid map access into an array with a constant OK #219/p valid map access into an array with a constant OK #220/u valid map access into an array with a register OK #220/p valid map access into an array with a register OK #221/u valid map access into an array with a variable OK #221/p valid map access into an array with a variable OK #222/u valid map access into an array with a signed variable OK #222/p valid map access into an array with a signed variable OK #223/u invalid map access into an array with a constant OK #223/p invalid map access into an array with a constant OK #224/u invalid map access into an array with a register OK #224/p invalid map access into an array with a register OK #225/u invalid map access into an array with a variable OK #225/p invalid map access into an array with a variable OK #226/u invalid map access into an array with no floor check OK #226/p invalid map access into an array with no floor check OK #227/u invalid map access into an array with a invalid max check OK #227/p invalid map access into an array with a invalid max check OK #228/u invalid map access into an array with a invalid max check OK #228/p invalid map access into an array with a invalid max check OK #229/p multiple registers share map_lookup_elem result OK #230/p alu ops on ptr_to_map_value_or_null, 1 OK #231/p alu ops on ptr_to_map_value_or_null, 2 OK #232/p alu ops on ptr_to_map_value_or_null, 3 OK #233/p invalid memory access with multiple map_lookup_elem calls OK #234/p valid indirect map_lookup_elem access with 2nd lookup in branch OK #235/u invalid map access from else condition OK #235/p invalid map access from else condition OK #236/p constant register |= constant should keep constant type OK #237/p constant register |= constant should not bypass stack boundary checks OK #238/p constant register |= constant register should keep constant type OK #239/p constant register |= constant register should not bypass stack boundary checks OK #240/p invalid direct packet write for LWT_IN OK #241/p invalid direct packet write for LWT_OUT OK #242/p direct packet write for LWT_XMIT OK #243/p direct packet read for LWT_IN OK #244/p direct packet read for LWT_OUT OK #245/p direct packet read for LWT_XMIT OK #246/p overlapping checks for direct packet access OK #247/u invalid access of tc_classid for LWT_IN OK #247/p invalid access of tc_classid for LWT_IN OK #248/u invalid access of tc_classid for LWT_OUT OK #248/p invalid access of tc_classid for LWT_OUT OK #249/u invalid access of tc_classid for LWT_XMIT OK #249/p invalid access of tc_classid for LWT_XMIT OK #250/u leak pointer into ctx 1 OK #250/p leak pointer into ctx 1 OK #251/u leak pointer into ctx 2 OK #251/p leak pointer into ctx 2 OK #252/u leak pointer into ctx 3 OK #252/p leak pointer into ctx 3 OK #253/u leak pointer into map val OK #253/p leak pointer into map val OK #254/p helper access to map: full range OK #255/p helper access to map: partial range OK #256/p helper access to map: empty range OK #257/p helper access to map: out-of-bound range OK #258/p helper access to map: negative range OK #259/p helper access to adjusted map (via const imm): full range OK #260/p helper access to adjusted map (via const imm): partial range OK #261/p helper access to adjusted map (via const imm): empty range OK #262/p helper access to adjusted map (via const imm): out-of-bound range OK #263/p helper access to adjusted map (via const imm): negative range (> adjustment) OK #264/p helper access to adjusted map (via const imm): negative range (< adjustment) OK #265/p helper access to adjusted map (via const reg): full range OK #266/p helper access to adjusted map (via const reg): partial range OK #267/p helper access to adjusted map (via const reg): empty range OK #268/p helper access to adjusted map (via const reg): out-of-bound range OK #269/p helper access to adjusted map (via const reg): negative range (> adjustment) OK #270/p helper access to adjusted map (via const reg): negative range (< adjustment) OK #271/p helper access to adjusted map (via variable): full range OK #272/p helper access to adjusted map (via variable): partial range OK #273/p helper access to adjusted map (via variable): empty range OK #274/p helper access to adjusted map (via variable): no max check OK #275/p helper access to adjusted map (via variable): wrong max check OK #276/p helper access to map: bounds check using <, good access OK #277/p helper access to map: bounds check using <, bad access OK #278/p helper access to map: bounds check using <=, good access OK #279/p helper access to map: bounds check using <=, bad access OK #280/p helper access to map: bounds check using s<, good access OK #281/p helper access to map: bounds check using s<, good access 2 OK #282/p helper access to map: bounds check using s<, bad access OK #283/p helper access to map: bounds check using s<=, good access OK #284/p helper access to map: bounds check using s<=, good access 2 OK #285/p helper access to map: bounds check using s<=, bad access OK #286/u map element value is preserved across register spilling OK #286/p map element value is preserved across register spilling OK #287/u map element value or null is marked on register spilling OK #287/p map element value or null is marked on register spilling OK #288/u map element value store of cleared call register OK #288/p map element value store of cleared call register OK #289/u map element value with unaligned store OK #289/p map element value with unaligned store OK #290/u map element value with unaligned load OK #290/p map element value with unaligned load OK #291/u map element value illegal alu op, 1 OK #291/p map element value illegal alu op, 1 OK #292/u map element value illegal alu op, 2 OK #292/p map element value illegal alu op, 2 OK #293/u map element value illegal alu op, 3 OK #293/p map element value illegal alu op, 3 OK #294/u map element value illegal alu op, 4 OK #294/p map element value illegal alu op, 4 OK #295/u map element value illegal alu op, 5 OK #295/p map element value illegal alu op, 5 OK #296/u map element value is preserved across register spilling OK #296/p map element value is preserved across register spilling OK #297/p helper access to variable memory: stack, bitwise AND + JMP, correct bounds OK #298/p helper access to variable memory: stack, bitwise AND, zero included OK #299/p helper access to variable memory: stack, bitwise AND + JMP, wrong max OK #300/p helper access to variable memory: stack, JMP, correct bounds OK #301/p helper access to variable memory: stack, JMP (signed), correct bounds OK #302/p helper access to variable memory: stack, JMP, bounds + offset OK #303/p helper access to variable memory: stack, JMP, wrong max OK #304/p helper access to variable memory: stack, JMP, no max check OK #305/p helper access to variable memory: stack, JMP, no min check OK #306/p helper access to variable memory: stack, JMP (signed), no min check OK #307/p helper access to variable memory: map, JMP, correct bounds OK #308/p helper access to variable memory: map, JMP, wrong max OK #309/p helper access to variable memory: map adjusted, JMP, correct bounds OK #310/p helper access to variable memory: map adjusted, JMP, wrong max OK #311/p helper access to variable memory: size = 0 allowed on NULL (ARG_PTR_TO_MEM_OR_NULL) OK #312/p helper access to variable memory: size > 0 not allowed on NULL (ARG_PTR_TO_MEM_OR_NULL) OK #313/p helper access to variable memory: size = 0 allowed on != NULL stack pointer (ARG_PTR_TO_MEM_OR_NULL) OK #314/p helper access to variable memory: size = 0 allowed on != NULL map pointer (ARG_PTR_TO_MEM_OR_NULL) OK #315/p helper access to variable memory: size possible = 0 allowed on != NULL stack pointer (ARG_PTR_TO_MEM_OR_NULL) OK #316/p helper access to variable memory: size possible = 0 allowed on != NULL map pointer (ARG_PTR_TO_MEM_OR_NULL) OK #317/p helper access to variable memory: size possible = 0 allowed on != NULL packet pointer (ARG_PTR_TO_MEM_OR_NULL) OK #318/p helper access to variable memory: size = 0 not allowed on NULL (!ARG_PTR_TO_MEM_OR_NULL) OK #319/p helper access to variable memory: size > 0 not allowed on NULL (!ARG_PTR_TO_MEM_OR_NULL) OK #320/p helper access to variable memory: size = 0 allowed on != NULL stack pointer (!ARG_PTR_TO_MEM_OR_NULL) OK #321/p helper access to variable memory: size = 0 allowed on != NULL map pointer (!ARG_PTR_TO_MEM_OR_NULL) OK #322/p helper access to variable memory: size possible = 0 allowed on != NULL stack pointer (!ARG_PTR_TO_MEM_OR_NULL) OK #323/p helper access to variable memory: size possible = 0 allowed on != NULL map pointer (!ARG_PTR_TO_MEM_OR_NULL) OK #324/p helper access to variable memory: 8 bytes leak OK #325/p helper access to variable memory: 8 bytes no leak (init memory) OK #326/u invalid and of negative number OK #326/p invalid and of negative number OK #327/u invalid range check OK #327/p invalid range check OK #328/u map in map access OK #328/p map in map access OK #329/u invalid inner map pointer OK #329/p invalid inner map pointer OK #330/u forgot null checking on the inner map pointer OK #330/p forgot null checking on the inner map pointer OK #331/u ld_abs: check calling conv, r1 OK #331/p ld_abs: check calling conv, r1 OK #332/u ld_abs: check calling conv, r2 OK #332/p ld_abs: check calling conv, r2 OK #333/u ld_abs: check calling conv, r3 OK #333/p ld_abs: check calling conv, r3 OK #334/u ld_abs: check calling conv, r4 OK #334/p ld_abs: check calling conv, r4 OK #335/u ld_abs: check calling conv, r5 OK #335/p ld_abs: check calling conv, r5 OK #336/u ld_abs: check calling conv, r7 OK #336/p ld_abs: check calling conv, r7 OK #337/p ld_abs: tests on r6 and skb data reload helper OK #338/u ld_ind: check calling conv, r1 OK #338/p ld_ind: check calling conv, r1 OK #339/u ld_ind: check calling conv, r2 OK #339/p ld_ind: check calling conv, r2 OK #340/u ld_ind: check calling conv, r3 OK #340/p ld_ind: check calling conv, r3 OK #341/u ld_ind: check calling conv, r4 OK #341/p ld_ind: check calling conv, r4 OK #342/u ld_ind: check calling conv, r5 OK #342/p ld_ind: check calling conv, r5 OK #343/u ld_ind: check calling conv, r7 OK #343/p ld_ind: check calling conv, r7 OK #344/p check bpf_perf_event_data->sample_period byte load permitted OK #345/p check bpf_perf_event_data->sample_period half load permitted OK #346/p check bpf_perf_event_data->sample_period word load permitted OK #347/p check bpf_perf_event_data->sample_period dword load permitted OK #348/u check skb->data half load not permitted OK #348/p check skb->data half load not permitted OK #349/p check skb->tc_classid half load not permitted for lwt prog OK #350/u bounds checks mixing signed and unsigned, positive bounds OK #350/p bounds checks mixing signed and unsigned, positive bounds OK #351/u bounds checks mixing signed and unsigned OK #351/p bounds checks mixing signed and unsigned OK #352/u bounds checks mixing signed and unsigned, variant 2 OK #352/p bounds checks mixing signed and unsigned, variant 2 OK #353/u bounds checks mixing signed and unsigned, variant 3 OK #353/p bounds checks mixing signed and unsigned, variant 3 OK #354/u bounds checks mixing signed and unsigned, variant 4 OK #354/p bounds checks mixing signed and unsigned, variant 4 OK #355/u bounds checks mixing signed and unsigned, variant 5 OK #355/p bounds checks mixing signed and unsigned, variant 5 OK #356/u bounds checks mixing signed and unsigned, variant 6 OK #356/p bounds checks mixing signed and unsigned, variant 6 OK #357/u bounds checks mixing signed and unsigned, variant 7 OK #357/p bounds checks mixing signed and unsigned, variant 7 OK #358/u bounds checks mixing signed and unsigned, variant 8 OK #358/p bounds checks mixing signed and unsigned, variant 8 OK #359/u bounds checks mixing signed and unsigned, variant 9 OK #359/p bounds checks mixing signed and unsigned, variant 9 OK #360/u bounds checks mixing signed and unsigned, variant 10 OK #360/p bounds checks mixing signed and unsigned, variant 10 OK #361/u bounds checks mixing signed and unsigned, variant 11 OK #361/p bounds checks mixing signed and unsigned, variant 11 OK #362/u bounds checks mixing signed and unsigned, variant 12 OK #362/p bounds checks mixing signed and unsigned, variant 12 OK #363/u bounds checks mixing signed and unsigned, variant 13 OK #363/p bounds checks mixing signed and unsigned, variant 13 OK #364/u bounds checks mixing signed and unsigned, variant 14 OK #364/p bounds checks mixing signed and unsigned, variant 14 OK #365/u bounds checks mixing signed and unsigned, variant 15 OK #365/p bounds checks mixing signed and unsigned, variant 15 OK #366/u subtraction bounds (map value) variant 1 OK #366/p subtraction bounds (map value) variant 1 OK #367/u subtraction bounds (map value) variant 2 OK #367/p subtraction bounds (map value) variant 2 OK #368/u bounds check based on zero-extended MOV OK #368/p bounds check based on zero-extended MOV OK #369/u bounds check based on sign-extended MOV. test1 OK #369/p bounds check based on sign-extended MOV. test1 OK #370/u bounds check based on sign-extended MOV. test2 OK #370/p bounds check based on sign-extended MOV. test2 OK #371/p bounds check based on reg_off + var_off + insn_off. test1 OK #372/p bounds check based on reg_off + var_off + insn_off. test2 OK #373/u bounds check after truncation of non-boundary-crossing range OK #373/p bounds check after truncation of non-boundary-crossing range OK #374/u bounds check after truncation of boundary-crossing range (1) OK #374/p bounds check after truncation of boundary-crossing range (1) OK #375/u bounds check after truncation of boundary-crossing range (2) OK #375/p bounds check after truncation of boundary-crossing range (2) OK #376/u bounds check after wrapping 32-bit addition OK #376/p bounds check after wrapping 32-bit addition OK #377/u bounds check after shift with oversized count operand OK #377/p bounds check after shift with oversized count operand OK #378/u bounds check after right shift of maybe-negative number OK #378/p bounds check after right shift of maybe-negative number OK #379/u bounds check map access with off+size signed 32bit overflow. test1 OK #379/p bounds check map access with off+size signed 32bit overflow. test1 OK #380/u bounds check map access with off+size signed 32bit overflow. test2 OK #380/p bounds check map access with off+size signed 32bit overflow. test2 OK #381/u bounds check map access with off+size signed 32bit overflow. test3 OK #381/p bounds check map access with off+size signed 32bit overflow. test3 OK #382/u bounds check map access with off+size signed 32bit overflow. test4 OK #382/p bounds check map access with off+size signed 32bit overflow. test4 OK #383/u pointer/scalar confusion in state equality check (way 1) OK #383/p pointer/scalar confusion in state equality check (way 1) OK #384/u pointer/scalar confusion in state equality check (way 2) OK #384/p pointer/scalar confusion in state equality check (way 2) OK #385/p variable-offset ctx access OK #386/p variable-offset stack access OK #387/p indirect variable-offset stack access OK #388/u direct stack access with 32-bit wraparound. test1 OK #388/p direct stack access with 32-bit wraparound. test1 OK #389/u direct stack access with 32-bit wraparound. test2 OK #389/p direct stack access with 32-bit wraparound. test2 OK #390/u direct stack access with 32-bit wraparound. test3 OK #390/p direct stack access with 32-bit wraparound. test3 OK #391/p liveness pruning and write screening OK #392/u varlen_map_value_access pruning OK #392/p varlen_map_value_access pruning OK #393/u invalid 64-bit BPF_END OK #393/p invalid 64-bit BPF_END OK #394/p meta access, test1 OK #395/p meta access, test2 OK #396/p meta access, test3 OK #397/p meta access, test4 OK #398/p meta access, test5 OK #399/p meta access, test6 OK #400/p meta access, test7 OK #401/p meta access, test8 OK #402/p meta access, test9 OK #403/p meta access, test10 OK #404/p meta access, test11 OK #405/p meta access, test12 OK #406/p arithmetic ops make PTR_TO_CTX unusable OK #407/p pkt_end - pkt_start is allowed OK #408/p XDP pkt read, pkt_end mangling, bad access 1 OK #409/p XDP pkt read, pkt_end mangling, bad access 2 OK #410/p XDP pkt read, pkt_data' > pkt_end, good access OK #411/p XDP pkt read, pkt_data' > pkt_end, bad access 1 OK #412/p XDP pkt read, pkt_data' > pkt_end, bad access 2 OK #413/p XDP pkt read, pkt_end > pkt_data', good access OK #414/p XDP pkt read, pkt_end > pkt_data', bad access 1 OK #415/p XDP pkt read, pkt_end > pkt_data', bad access 2 OK #416/p XDP pkt read, pkt_data' < pkt_end, good access OK #417/p XDP pkt read, pkt_data' < pkt_end, bad access 1 OK #418/p XDP pkt read, pkt_data' < pkt_end, bad access 2 OK #419/p XDP pkt read, pkt_end < pkt_data', good access OK #420/p XDP pkt read, pkt_end < pkt_data', bad access 1 OK #421/p XDP pkt read, pkt_end < pkt_data', bad access 2 OK #422/p XDP pkt read, pkt_data' >= pkt_end, good access OK #423/p XDP pkt read, pkt_data' >= pkt_end, bad access 1 OK #424/p XDP pkt read, pkt_data' >= pkt_end, bad access 2 OK #425/p XDP pkt read, pkt_end >= pkt_data', good access OK #426/p XDP pkt read, pkt_end >= pkt_data', bad access 1 OK #427/p XDP pkt read, pkt_end >= pkt_data', bad access 2 OK #428/p XDP pkt read, pkt_data' <= pkt_end, good access OK #429/p XDP pkt read, pkt_data' <= pkt_end, bad access 1 OK #430/p XDP pkt read, pkt_data' <= pkt_end, bad access 2 OK #431/p XDP pkt read, pkt_end <= pkt_data', good access OK #432/p XDP pkt read, pkt_end <= pkt_data', bad access 1 OK #433/p XDP pkt read, pkt_end <= pkt_data', bad access 2 OK #434/p XDP pkt read, pkt_meta' > pkt_data, good access OK #435/p XDP pkt read, pkt_meta' > pkt_data, bad access 1 OK #436/p XDP pkt read, pkt_meta' > pkt_data, bad access 2 OK #437/p XDP pkt read, pkt_data > pkt_meta', good access OK #438/p XDP pkt read, pkt_data > pkt_meta', bad access 1 OK #439/p XDP pkt read, pkt_data > pkt_meta', bad access 2 OK #440/p XDP pkt read, pkt_meta' < pkt_data, good access OK #441/p XDP pkt read, pkt_meta' < pkt_data, bad access 1 OK #442/p XDP pkt read, pkt_meta' < pkt_data, bad access 2 OK #443/p XDP pkt read, pkt_data < pkt_meta', good access OK #444/p XDP pkt read, pkt_data < pkt_meta', bad access 1 OK #445/p XDP pkt read, pkt_data < pkt_meta', bad access 2 OK #446/p XDP pkt read, pkt_meta' >= pkt_data, good access OK #447/p XDP pkt read, pkt_meta' >= pkt_data, bad access 1 OK #448/p XDP pkt read, pkt_meta' >= pkt_data, bad access 2 OK #449/p XDP pkt read, pkt_data >= pkt_meta', good access OK #450/p XDP pkt read, pkt_data >= pkt_meta', bad access 1 OK #451/p XDP pkt read, pkt_data >= pkt_meta', bad access 2 OK #452/p XDP pkt read, pkt_meta' <= pkt_data, good access OK #453/p XDP pkt read, pkt_meta' <= pkt_data, bad access 1 OK #454/p XDP pkt read, pkt_meta' <= pkt_data, bad access 2 OK #455/p XDP pkt read, pkt_data <= pkt_meta', good access OK #456/p XDP pkt read, pkt_data <= pkt_meta', bad access 1 OK #457/p XDP pkt read, pkt_data <= pkt_meta', bad access 2 OK #458/p bpf_exit with invalid return code. test1 OK #459/p bpf_exit with invalid return code. test2 OK #460/p bpf_exit with invalid return code. test3 OK #461/p bpf_exit with invalid return code. test4 OK #462/p bpf_exit with invalid return code. test5 OK #463/p bpf_exit with invalid return code. test6 OK #464/p bpf_exit with invalid return code. test7 OK Summary: 676 PASSED, 0 FAILED ok 1..1 selftests: test_verifier [PASS] selftests: test_tag ======================================== test_tag: OK (40945 tests) ok 1..2 selftests: test_tag [PASS] selftests: test_maps ======================================== test_maps: OK ok 1..3 selftests: test_maps [PASS] selftests: test_lru_map ======================================== nr_cpus:2 test_lru_sanity0 (map_type:9 map_flags:0x0): Pass test_lru_sanity1 (map_type:9 map_flags:0x0): Pass test_lru_sanity2 (map_type:9 map_flags:0x0): Pass test_lru_sanity3 (map_type:9 map_flags:0x0): Pass test_lru_sanity4 (map_type:9 map_flags:0x0): Pass test_lru_sanity5 (map_type:9 map_flags:0x0): Pass test_lru_sanity0 (map_type:10 map_flags:0x0): Pass test_lru_sanity1 (map_type:10 map_flags:0x0): Pass test_lru_sanity2 (map_type:10 map_flags:0x0): Pass test_lru_sanity3 (map_type:10 map_flags:0x0): Pass test_lru_sanity4 (map_type:10 map_flags:0x0): Pass test_lru_sanity5 (map_type:10 map_flags:0x0): Pass test_lru_sanity0 (map_type:9 map_flags:0x2): Pass test_lru_sanity4 (map_type:9 map_flags:0x2): Pass test_lru_sanity6 (map_type:9 map_flags:0x2): Pass test_lru_sanity0 (map_type:10 map_flags:0x2): Pass test_lru_sanity4 (map_type:10 map_flags:0x2): Pass test_lru_sanity6 (map_type:10 map_flags:0x2): Pass ok 1..4 selftests: test_lru_map [PASS] selftests: test_lpm_map ======================================== test_lpm: OK ok 1..5 selftests: test_lpm_map [PASS] selftests: test_progs ======================================== test_pkt_access:PASS:ipv4 91 nsec test_pkt_access:PASS:ipv6 82 nsec test_xdp:PASS:ipv4 3673 nsec test_xdp:PASS:ipv6 1307 nsec test_l4lb:PASS:ipv4 1561 nsec test_l4lb:PASS:ipv6 2751 nsec test_tcp_estats:PASS: 0 nsec test_bpf_obj_id:PASS:get-fd-by-notexist-prog-id 0 nsec test_bpf_obj_id:PASS:get-fd-by-notexist-map-id 0 nsec test_bpf_obj_id:PASS:get-map-info(fd) 0 nsec test_bpf_obj_id:PASS:get-prog-info(fd) 0 nsec test_bpf_obj_id:PASS:get-map-info(fd) 0 nsec test_bpf_obj_id:PASS:get-prog-info(fd) 0 nsec test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-prog-fd-bad-nr-map-ids 0 nsec test_bpf_obj_id:PASS:get-prog-info(next_id->fd) 0 nsec test_bpf_obj_id:PASS:get-prog-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-prog-fd-bad-nr-map-ids 0 nsec test_bpf_obj_id:PASS:get-prog-info(next_id->fd) 0 nsec test_bpf_obj_id:PASS:check total prog id found by get_next_id 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:check get-map-info(next_id->fd) 0 nsec test_bpf_obj_id:PASS:get-map-fd(next_id) 0 nsec test_bpf_obj_id:PASS:check get-map-info(next_id->fd) 0 nsec test_bpf_obj_id:PASS:check total map id found by get_next_id 0 nsec test_pkt_md_access:PASS: 275 nsec test_obj_name:PASS:check-bpf-prog-name 0 nsec test_obj_name:PASS:check-bpf-map-name 0 nsec test_obj_name:PASS:check-bpf-prog-name 0 nsec test_obj_name:PASS:check-bpf-map-name 0 nsec test_obj_name:PASS:check-bpf-prog-name 0 nsec test_obj_name:PASS:check-bpf-map-name 0 nsec test_obj_name:PASS:check-bpf-prog-name 0 nsec test_obj_name:PASS:check-bpf-map-name 0 nsec Summary: 48 PASSED, 0 FAILED ok 1..6 selftests: test_progs [PASS] selftests: test_align ======================================== Test 0: mov ... PASS Test 1: shift ... PASS Test 2: addsub ... PASS Test 3: mul ... PASS Test 4: unknown shift ... PASS Test 5: unknown mul ... PASS Test 6: packet const offset ... PASS Test 7: packet variable offset ... PASS Test 8: packet variable offset 2 ... PASS Test 9: dubious pointer arithmetic ... Failed to find line 5 for match: R5=inv(id=0,umax_value=64,var_off=(0x0; 0x40)) 0: R1=ctx(id=0,off=0,imm=0) R10=fp0 0: (61) r2 = *(u32 *)(r1 +76) 1: R1=ctx(id=0,off=0,imm=0) R2=pkt(id=0,off=0,r=0,imm=0) R10=fp0 1: (61) r3 = *(u32 *)(r1 +80) 2: R1=ctx(id=0,off=0,imm=0) R2=pkt(id=0,off=0,r=0,imm=0) R3=pkt_end(id=0,off=0,imm=0) R10=fp0 2: (b7) r0 = 0 3: R0=inv0 R1=ctx(id=0,off=0,imm=0) R2=pkt(id=0,off=0,r=0,imm=0) R3=pkt_end(id=0,off=0,imm=0) R10=fp0 3: (bf) r5 = r2 4: R0=inv0 R1=ctx(id=0,off=0,imm=0) R2=pkt(id=0,off=0,r=0,imm=0) R3=pkt_end(id=0,off=0,imm=0) R5=pkt(id=0,off=0,r=0,imm=0) R10=fp0 4: (57) r5 &= 64 R5 bitwise operator &= on pointer prohibited FAIL Test 10: variable subtraction ... PASS Test 11: pointer variable subtraction ... PASS Results: 11 pass 1 fail not ok 1..7 selftests: test_align [FAIL] selftests: test_verifier_log ======================================== Test log_level 0... Test log_size < 128... Test log_buff = NULL... Test oversized buffer... Test exact buffer... Test undersized buffers... test_verifier_log: OK ok 1..8 selftests: test_verifier_log [PASS] selftests: test_dev_cgroup ======================================== libbpf: load bpf program failed: Permission denied libbpf: -- BEGIN DUMP LOG --- libbpf: 0: (61) r2 = *(u32 *)(r1 +4) 1: (b7) r0 = 0 2: (55) if r2 != 0x1 goto pc+8 R0=inv0 R1=ctx(id=0,off=0,imm=0) R2=inv1 R10=fp0 3: (69) r2 = *(u16 *)(r1 +0) invalid bpf_context access off=0 size=2 libbpf: -- END LOG -- libbpf: failed to load program 'cgroup/dev' libbpf: failed to load object './dev_cgroup.o' (/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf/cgroup_helpers.c:96: errno: No such file or directory) Opening Cgroup Procs: /mnt/cgroup.procs Failed to load DEV_CGROUP program not ok 1..9 selftests: test_dev_cgroup [FAIL] selftests: test_kmod.sh ======================================== [ JIT enabled:0 hardened:0 ] [ 134.236248] FAIL [ 134.239508] not ok 1..7 selftests: test_align [FAIL] [ 134.264552] not ok 1..9 selftests: test_dev_cgroup [FAIL] [ 139.352274] test_bpf: Summary: 342 PASSED, 0 FAILED, [0/334 JIT'ed] [ JIT enabled:1 hardened:0 ] [ 139.376630] [ 134.264552] not ok 1..9 selftests: test_dev_cgroup [FAIL] [ 139.383832] [ 139.352274] test_bpf: Summary: 342 PASSED, 0 FAILED, [0/334 JIT'ed] [ 142.448376] test_bpf: Summary: 342 PASSED, 0 FAILED, [333/334 JIT'ed] [ JIT enabled:1 hardened:1 ] [ 145.505579] test_bpf: Summary: 342 PASSED, 0 FAILED, [333/334 JIT'ed] [ JIT enabled:1 hardened:2 ] [ 149.611957] test_bpf: Summary: 342 PASSED, 0 FAILED, [333/334 JIT'ed] ok 1..10 selftests: test_kmod.sh [PASS] selftests: test_xdp_redirect.sh ======================================== selftests: [SKIP] Could not run test without the ip xdpgeneric support ok 1..11 selftests: test_xdp_redirect.sh [PASS] selftests: test_xdp_meta.sh ======================================== selftests: [SKIP] Could not run test without the ip xdp support ok 1..12 selftests: test_xdp_meta.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/bpf' 2017-12-25 14:12:06 make run_tests -C breakpoints make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/breakpoints' gcc step_after_suspend_test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/breakpoints/step_after_suspend_test gcc breakpoint_test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/breakpoints/breakpoint_test TAP version 13 selftests: step_after_suspend_test ======================================== TAP version 13 ok 1 CPU 0 ok 2 CPU 1 Pass 2 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..2 ok 1..1 selftests: step_after_suspend_test [PASS] selftests: breakpoint_test ======================================== TAP version 13 ok 1 Test breakpoint 0 with local: 0 global: 1 ok 2 Test breakpoint 1 with local: 0 global: 1 ok 3 Test breakpoint 2 with local: 0 global: 1 ok 4 Test breakpoint 3 with local: 0 global: 1 ok 5 Test breakpoint 0 with local: 1 global: 0 ok 6 Test breakpoint 1 with local: 1 global: 0 ok 7 Test breakpoint 2 with local: 1 global: 0 ok 8 Test breakpoint 3 with local: 1 global: 0 ok 9 Test breakpoint 0 with local: 1 global: 1 ok 10 Test breakpoint 1 with local: 1 global: 1 ok 11 Test breakpoint 2 with local: 1 global: 1 ok 12 Test breakpoint 3 with local: 1 global: 1 ok 13 Test write watchpoint 0 with len: 1 local: 0 global: 1 ok 14 Test write watchpoint 1 with len: 1 local: 0 global: 1 ok 15 Test write watchpoint 2 with len: 1 local: 0 global: 1 ok 16 Test write watchpoint 3 with len: 1 local: 0 global: 1 ok 17 Test write watchpoint 0 with len: 1 local: 1 global: 0 ok 18 Test write watchpoint 1 with len: 1 local: 1 global: 0 ok 19 Test write watchpoint 2 with len: 1 local: 1 global: 0 ok 20 Test write watchpoint 3 with len: 1 local: 1 global: 0 ok 21 Test write watchpoint 0 with len: 1 local: 1 global: 1 ok 22 Test write watchpoint 1 with len: 1 local: 1 global: 1 ok 23 Test write watchpoint 2 with len: 1 local: 1 global: 1 ok 24 Test write watchpoint 3 with len: 1 local: 1 global: 1 ok 25 Test write watchpoint 0 with len: 2 local: 0 global: 1 ok 26 Test write watchpoint 1 with len: 2 local: 0 global: 1 ok 27 Test write watchpoint 2 with len: 2 local: 0 global: 1 ok 28 Test write watchpoint 3 with len: 2 local: 0 global: 1 ok 29 Test write watchpoint 0 with len: 2 local: 1 global: 0 ok 30 Test write watchpoint 1 with len: 2 local: 1 global: 0 ok 31 Test write watchpoint 2 with len: 2 local: 1 global: 0 ok 32 Test write watchpoint 3 with len: 2 local: 1 global: 0 ok 33 Test write watchpoint 0 with len: 2 local: 1 global: 1 ok 34 Test write watchpoint 1 with len: 2 local: 1 global: 1 ok 35 Test write watchpoint 2 with len: 2 local: 1 global: 1 ok 36 Test write watchpoint 3 with len: 2 local: 1 global: 1 ok 37 Test write watchpoint 0 with len: 4 local: 0 global: 1 ok 38 Test write watchpoint 1 with len: 4 local: 0 global: 1 ok 39 Test write watchpoint 2 with len: 4 local: 0 global: 1 ok 40 Test write watchpoint 3 with len: 4 local: 0 global: 1 ok 41 Test write watchpoint 0 with len: 4 local: 1 global: 0 ok 42 Test write watchpoint 1 with len: 4 local: 1 global: 0 ok 43 Test write watchpoint 2 with len: 4 local: 1 global: 0 ok 44 Test write watchpoint 3 with len: 4 local: 1 global: 0 ok 45 Test write watchpoint 0 with len: 4 local: 1 global: 1 ok 46 Test write watchpoint 1 with len: 4 local: 1 global: 1 ok 47 Test write watchpoint 2 with len: 4 local: 1 global: 1 ok 48 Test write watchpoint 3 with len: 4 local: 1 global: 1 ok 49 Test write watchpoint 0 with len: 8 local: 0 global: 1 ok 50 Test write watchpoint 1 with len: 8 local: 0 global: 1 ok 51 Test write watchpoint 2 with len: 8 local: 0 global: 1 ok 52 Test write watchpoint 3 with len: 8 local: 0 global: 1 ok 53 Test write watchpoint 0 with len: 8 local: 1 global: 0 ok 54 Test write watchpoint 1 with len: 8 local: 1 global: 0 ok 55 Test write watchpoint 2 with len: 8 local: 1 global: 0 ok 56 Test write watchpoint 3 with len: 8 local: 1 global: 0 ok 57 Test write watchpoint 0 with len: 8 local: 1 global: 1 ok 58 Test write watchpoint 1 with len: 8 local: 1 global: 1 ok 59 Test write watchpoint 2 with len: 8 local: 1 global: 1 ok 60 Test write watchpoint 3 with len: 8 local: 1 global: 1 ok 61 Test read watchpoint 0 with len: 1 local: 0 global: 1 ok 62 Test read watchpoint 1 with len: 1 local: 0 global: 1 ok 63 Test read watchpoint 2 with len: 1 local: 0 global: 1 ok 64 Test read watchpoint 3 with len: 1 local: 0 global: 1 ok 65 Test read watchpoint 0 with len: 1 local: 1 global: 0 ok 66 Test read watchpoint 1 with len: 1 local: 1 global: 0 ok 67 Test read watchpoint 2 with len: 1 local: 1 global: 0 ok 68 Test read watchpoint 3 with len: 1 local: 1 global: 0 ok 69 Test read watchpoint 0 with len: 1 local: 1 global: 1 ok 70 Test read watchpoint 1 with len: 1 local: 1 global: 1 ok 71 Test read watchpoint 2 with len: 1 local: 1 global: 1 ok 72 Test read watchpoint 3 with len: 1 local: 1 global: 1 ok 73 Test read watchpoint 0 with len: 2 local: 0 global: 1 ok 74 Test read watchpoint 1 with len: 2 local: 0 global: 1 ok 75 Test read watchpoint 2 with len: 2 local: 0 global: 1 ok 76 Test read watchpoint 3 with len: 2 local: 0 global: 1 ok 77 Test read watchpoint 0 with len: 2 local: 1 global: 0 ok 78 Test read watchpoint 1 with len: 2 local: 1 global: 0 ok 79 Test read watchpoint 2 with len: 2 local: 1 global: 0 ok 80 Test read watchpoint 3 with len: 2 local: 1 global: 0 ok 81 Test read watchpoint 0 with len: 2 local: 1 global: 1 ok 82 Test read watchpoint 1 with len: 2 local: 1 global: 1 ok 83 Test read watchpoint 2 with len: 2 local: 1 global: 1 ok 84 Test read watchpoint 3 with len: 2 local: 1 global: 1 ok 85 Test read watchpoint 0 with len: 4 local: 0 global: 1 ok 86 Test read watchpoint 1 with len: 4 local: 0 global: 1 ok 87 Test read watchpoint 2 with len: 4 local: 0 global: 1 ok 88 Test read watchpoint 3 with len: 4 local: 0 global: 1 ok 89 Test read watchpoint 0 with len: 4 local: 1 global: 0 ok 90 Test read watchpoint 1 with len: 4 local: 1 global: 0 ok 91 Test read watchpoint 2 with len: 4 local: 1 global: 0 ok 92 Test read watchpoint 3 with len: 4 local: 1 global: 0 ok 93 Test read watchpoint 0 with len: 4 local: 1 global: 1 ok 94 Test read watchpoint 1 with len: 4 local: 1 global: 1 ok 95 Test read watchpoint 2 with len: 4 local: 1 global: 1 ok 96 Test read watchpoint 3 with len: 4 local: 1 global: 1 ok 97 Test read watchpoint 0 with len: 8 local: 0 global: 1 ok 98 Test read watchpoint 1 with len: 8 local: 0 global: 1 ok 99 Test read watchpoint 2 with len: 8 local: 0 global: 1 ok 100 Test read watchpoint 3 with len: 8 local: 0 global: 1 ok 101 Test read watchpoint 0 with len: 8 local: 1 global: 0 ok 102 Test read watchpoint 1 with len: 8 local: 1 global: 0 ok 103 Test read watchpoint 2 with len: 8 local: 1 global: 0 ok 104 Test read watchpoint 3 with len: 8 local: 1 global: 0 ok 105 Test read watchpoint 0 with len: 8 local: 1 global: 1 ok 106 Test read watchpoint 1 with len: 8 local: 1 global: 1 ok 107 Test read watchpoint 2 with len: 8 local: 1 global: 1 ok 108 Test read watchpoint 3 with len: 8 local: 1 global: 1 ok 109 Test icebp ok 110 Test int 3 trap Pass 110 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..110 ok 1..2 selftests: breakpoint_test [PASS] TAP version 13 make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/breakpoints' 2017-12-25 14:12:11 chown lkp capabilities -R 2017-12-25 14:12:11 su lkp -c make run_tests -C capabilities 2>&1 make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/capabilities' gcc -O2 -g -std=gnu99 -Wall test_execve.c -lcap-ng -lrt -ldl -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/capabilities/test_execve gcc -O2 -g -std=gnu99 -Wall validate_cap.c -lcap-ng -lrt -ldl -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/capabilities/validate_cap TAP version 13 selftests: test_execve ======================================== # validate_cap:: Capabilities after execve were correct # validate_cap:: Capabilities after execve were correct # validate_cap:: Capabilities after execve were correct TAP version 13 # [RUN] +++ Tests with uid == 0 +++ # [NOTE] Using a user namespace for tests # [RUN] Root => ep ok 1 Passed # Check cap_ambient manipulation rules ok 2 PR_CAP_AMBIENT_RAISE failed on non-inheritable cap ok 3 PR_CAP_AMBIENT_RAISE failed on non-permitted cap ok 4 PR_CAP_AMBIENT_RAISE worked ok 5 Basic manipulation appears to work # [RUN] Root +i => eip ok 6 Passed # [RUN] UID 0 +ia => eipa ok 7 Passed ok 8 # skip SUID/SGID tests (needs privilege) Pass 7 Fail 0 Xfail 0 Xpass 0 Skip 1 Error 0 1..8 # validate_cap:: Capabilities after execve were correct # validate_cap:: Capabilities after execve were correct # validate_cap:: Capabilities after execve were correct TAP version 13 # ================================================== # [RUN] +++ Tests with uid != 0 +++ # [NOTE] Using a user namespace for tests # [RUN] Non-root => no caps ok 1 Passed # Check cap_ambient manipulation rules ok 2 PR_CAP_AMBIENT_RAISE failed on non-inheritable cap ok 3 PR_CAP_AMBIENT_RAISE failed on non-permitted cap ok 4 PR_CAP_AMBIENT_RAISE worked ok 5 Basic manipulation appears to work # [RUN] Non-root +i => i ok 6 Passed # [RUN] UID 1 +ia => eipa ok 7 Passed ok 8 # skip SUID/SGID tests (needs privilege) Pass 7 Fail 0 Xfail 0 Xpass 0 Skip 1 Error 0 1..8 TAP version 13 # ================================================== ok 1..1 selftests: test_execve [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/capabilities' 2017-12-25 14:12:11 make run_tests -C cpu-hotplug make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/cpu-hotplug' TAP version 13 selftests: cpu-on-off-test.sh ======================================== pid 7103's current affinity mask: 3 pid 7103's new affinity mask: 1 CPU online/offline summary: Cpus in online state: 0-1 Cpus in offline state: 0 Limited scope test: one hotplug cpu (leaves cpu in the original state): online to offline to online: cpu 1 ok 1..1 selftests: cpu-on-off-test.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/cpu-hotplug' 2017-12-25 14:12:11 make run_tests -C cpufreq make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/cpufreq' TAP version 13 selftests: main.sh ======================================== pid 7157's current affinity mask: 3 pid 7157's new affinity mask: 1 not ok 1..1 selftests: main.sh [FAIL] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/cpufreq' ignored_by_lkp efivarfs test: /sys/firmware/efi dir does not exist 2017-12-25 14:12:12 make run_tests -C exec make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec' gcc -Wall execveat.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/execveat cd /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec && ln -s -f execveat execveat.symlink cp /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/execveat /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/execveat.denatured chmod -x /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/execveat.denatured echo '#!/bin/sh' > /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/script echo 'exit $*' >> /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/script chmod +x /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/script mkdir -p /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/subdir TAP version 13 selftests: execveat ======================================== /bin/sh: 0: Can't open /dev/fd/7/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy Check success of execveat(4, '../execveat', 0)... [OK] Check success of execveat(6, 'execveat', 0)... [OK] Check success of execveat(8, '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(10, '', 4096)... [OK] Check success of execveat(19, '', 4096)... [OK] Check success of execveat(11, '', 4096)... [OK] Check success of execveat(16, '', 4096)... [OK] Check success of execveat(16, '', 4096)... [OK] Check success of execveat(17, '', 4096)... [OK] Check failure of execveat(10, '', 0) with ENOENT... [OK] Check failure of execveat(10, '(null)', 4096) with EFAULT... [OK] Check success of execveat(6, 'execveat.symlink', 0)... [OK] Check success of execveat(8, 'execveat.symlink', 0)... [OK] Check success of execveat(-100, '/usr/src/linux-selft...xec/execveat.symlink', 0)... [OK] Check success of execveat(12, '', 4096)... [OK] Check success of execveat(12, '', 4352)... [OK] Check failure of execveat(6, 'execveat.symlink', 256) with ELOOP... [OK] Check failure of execveat(8, 'execveat.symlink', 256) with ELOOP... [OK] Check failure of execveat(-100, '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/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(8, 'script', 0)... [OK] Check success of execveat(-100, '/usr/src/linux-selft...elftests/exec/script', 0)... [OK] Check success of execveat(15, '', 4096)... [OK] Check success of execveat(15, '', 4352)... [OK] Check failure of execveat(20, '', 4096) with ENOENT... [OK] Check failure of execveat(9, 'script', 0) with ENOENT... [OK] Check success of execveat(18, '', 4096)... [OK] Check success of execveat(18, '', 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(8, '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(13, '', 4096) with EACCES... [OK] Check failure of execveat(14, '', 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(10, 'execveat', 0) with ENOTDIR... [OK] Invoke copy of 'execveat' via filename of length 4094: Check success of execveat(21, '', 4096)... [OK] Check success of execveat(7, 'usr/src/linux-selfte...yyyyyyyyyyyyyyyyyyyy', 0)... [OK] Invoke copy of 'script' via filename of length 4094: Check success of execveat(22, '', 4096)... [OK] Check success of execveat(7, 'usr/src/linux-selfte...yyyyyyyyyyyyyyyyyyyy', 0)... [OK] ok 1..1 selftests: execveat [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/exec' ignored_by_lkp filesystems test 2017-12-25 14:12:12 mv /lib/udev/rules.d/50-firmware.rules . 2017-12-25 14:12:12 /etc/init.d/udev restart Restarting udev (via systemctl): udev.service. 2017-12-25 14:12:12 make run_tests -C firmware make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/firmware' TAP version 13 selftests: fw_filesystem.sh ======================================== ./fw_filesystem.sh: timeout works ./fw_filesystem.sh: filesystem loading works ./fw_filesystem.sh: async filesystem loading works Testing with the file present... Batched request_firmware() try #1: OK Batched request_firmware() try #2: OK Batched request_firmware() try #3: OK Batched request_firmware() try #4: OK Batched request_firmware() try #5: OK Batched request_firmware_direct() try #1: OK Batched request_firmware_direct() try #2: OK Batched request_firmware_direct() try #3: OK Batched request_firmware_direct() try #4: OK Batched request_firmware_direct() try #5: OK Batched request_firmware_nowait(uevent=true) try #1: OK Batched request_firmware_nowait(uevent=true) try #2: OK Batched request_firmware_nowait(uevent=true) try #3: OK Batched request_firmware_nowait(uevent=true) try #4: OK Batched request_firmware_nowait(uevent=true) try #5: OK Batched request_firmware_nowait(uevent=false) try #1: OK Batched request_firmware_nowait(uevent=false) try #2: OK Batched request_firmware_nowait(uevent=false) try #3: OK Batched request_firmware_nowait(uevent=false) try #4: OK Batched request_firmware_nowait(uevent=false) try #5: OK Testing with the file missing... Batched request_firmware() nofile try #1: OK Batched request_firmware() nofile try #2: OK Batched request_firmware() nofile try #3: OK Batched request_firmware() nofile try #4: OK Batched request_firmware() nofile try #5: OK Batched request_firmware_direct() nofile try #1: OK Batched request_firmware_direct() nofile try #2: OK Batched request_firmware_direct() nofile try #3: OK Batched request_firmware_direct() nofile try #4: OK Batched request_firmware_direct() nofile try #5: OK Batched request_firmware_nowait(uevent=true) nofile try #1: OK Batched request_firmware_nowait(uevent=true) nofile try #2: OK Batched request_firmware_nowait(uevent=true) nofile try #3: OK Batched request_firmware_nowait(uevent=true) nofile try #4: OK Batched request_firmware_nowait(uevent=true) nofile try #5: OK Batched request_firmware_nowait(uevent=false) nofile try #1: OK Batched request_firmware_nowait(uevent=false) nofile try #2: OK Batched request_firmware_nowait(uevent=false) nofile try #3: OK Batched request_firmware_nowait(uevent=false) nofile try #4: OK Batched request_firmware_nowait(uevent=false) nofile try #5: OK ok 1..1 selftests: fw_filesystem.sh [PASS] selftests: fw_fallback.sh ======================================== ./fw_fallback.sh: timeout works ./fw_fallback.sh: firmware comparison works ./fw_fallback.sh: fallback mechanism works ./fw_fallback.sh: cancelling fallback mechanism works ./fw_fallback.sh: custom fallback loading mechanism works ./fw_fallback.sh: cancelling custom fallback mechanism works ./fw_fallback.sh: SIGCHLD on sync ignored as expected ok 1..2 selftests: fw_fallback.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/firmware' 2017-12-25 14:13:12 mv 50-firmware.rules /lib/udev/rules.d/50-firmware.rules 2017-12-25 14:13:12 make run_tests -C ftrace make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ftrace' TAP version 13 selftests: ftracetest ======================================== === 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 pid filters [PASS] [13] ftrace - test for function event triggers [PASS] [14] ftrace - function profiler with function tracing [PASS] [15] ftrace - test reading of set_ftrace_filter [PASS] [16] ftrace - test for function traceon/off triggers [PASS] [17] Test creation and deletion of trace instances while setting an event [PASS] [18] Test creation and deletion of trace instances [PASS] [19] Kprobe dynamic event - adding and removing [PASS] [20] Kprobe dynamic event - busy event check [PASS] [21] Kprobe dynamic event with arguments [PASS] [22] Kprobes event arguments with types [PASS] [23] Kprobe event auto/manual naming [PASS] [24] Kprobe dynamic event with function tracer [PASS] [25] Kprobe dynamic event - probing module [PASS] [26] Kretprobe dynamic event with arguments [PASS] [27] Kretprobe dynamic event with maxactive [PASS] [28] Register/unregister many kprobe events [PASS] [29] event trigger - test event enable/disable trigger [PASS] [30] event trigger - test trigger filter [PASS] [31] event trigger - test histogram modifiers [PASS] [32] event trigger - test histogram trigger [PASS] [33] event trigger - test multiple histogram triggers [PASS] [34] event trigger - test snapshot-trigger [PASS] [35] event trigger - test stacktrace-trigger [PASS] [36] event trigger - test traceon/off trigger [PASS] [37] (instance) Basic test for tracers [PASS] [38] (instance) Basic trace clock test [PASS] [39] (instance) event tracing - enable/disable with event level files [PASS] [40] (instance) event tracing - restricts events based on pid [PASS] [41] (instance) event tracing - enable/disable with subsystem level files [PASS] [42] (instance) ftrace - test for function event triggers [PASS] [43] (instance) ftrace - test for function traceon/off triggers [PASS] [44] (instance) event trigger - test event enable/disable trigger [PASS] [45] (instance) event trigger - test trigger filter [PASS] [46] (instance) event trigger - test histogram modifiers [PASS] [47] (instance) event trigger - test histogram trigger [PASS] [48] (instance) event trigger - test multiple histogram triggers [PASS] # of passed: 48 # of failed: 0 # of unresolved: 0 # of untested: 0 # of unsupported: 0 # of xfailed: 0 # of undefined(test bug): 0 ok 1..1 selftests: ftracetest [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ftrace' 2017-12-25 14:13:50 make run_tests -C futex make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex' make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/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 ../include/atomic.h ../include/logging.h -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional/futex_wait_timeout gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_wait_wouldblock.c ../include/futextest.h ../include/atomic.h ../include/logging.h -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional/futex_wait_wouldblock gcc -g -O2 -Wall -D_GNU_SOURCE -pthread -I../include -I../../ -pthread -lrt futex_requeue_pi.c ../include/futextest.h ../include/atomic.h ../include/logging.h -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional/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 ../include/atomic.h ../include/logging.h -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional/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 ../include/atomic.h ../include/logging.h -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional/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 ../include/atomic.h ../include/logging.h -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional/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 ../include/atomic.h ../include/logging.h -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional/futex_wait_private_mapped_file make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex/functional' tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=0 timeout=0ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=0 timeout=0ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=0ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=1 timeout=0ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=0ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=1 timeout=0ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=5000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=500000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=0 timeout=5000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=0 timeout=5000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=0 timeout=500000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=0 owner=0 timeout=500000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=1 timeout=5000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=5000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=0 owner=1 timeout=500000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=500000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=1 locked=1 owner=0 timeout=2000000000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi: Test requeue functionality # Arguments: broadcast=0 locked=1 owner=0 timeout=2000000000ns ok 1 futex-requeue-pi Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi_mismatched_ops: Detect mismatched requeue_pi operations ok 1 futex-requeue-pi-mismatched-ops Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_requeue_pi_signal_restart: Test signal handling during requeue_pi # Arguments: ok 1 futex-requeue-pi-signal-restart Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_wait_timeout: Block on a futex and wait for timeout # Arguments: timeout=100000ns ok 1 futex-wait-timeout Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_wait_wouldblock: Test the unexpected futex value in FUTEX_WAIT ok 1 futex-wait-wouldblock Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_wait_uninitialized_heap: Test the uninitialized futex value in FUTEX_WAIT ok 1 futex-wait-uninitialized-heap Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 TAP version 13 # futex_wait_private_mapped_file: Test the futex value of private file mappings in FUTEX_WAIT ok 1 futex-wait-private-mapped-file Pass 1 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..1 make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/futex' 2017-12-25 14:14:03 make run_tests -C gpio make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/gpio' make ARCH= CROSS_COMPILE= -C ../../../gpio make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/gpio' mkdir -p include/linux 2>&1 || true ln -sf /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/gpio/../../include/uapi/linux/gpio.h include/linux/gpio.h make -f /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/build/Makefile.build dir=. obj=lsgpio make[2]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/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-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/gpio' LINK lsgpio make -f /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/build/Makefile.build dir=. obj=gpio-hammer make[2]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/gpio' CC gpio-hammer.o LD gpio-hammer-in.o make[2]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/gpio' LINK gpio-hammer make -f /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/build/Makefile.build dir=. obj=gpio-event-mon make[2]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/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-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/gpio' LINK gpio-event-mon make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/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 TAP version 13 selftests: gpio-mockup.sh ======================================== 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 ok 1..1 selftests: gpio-mockup.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/gpio' ia64 test: not in Makefile 2017-12-25 14:14:04 make TARGETS=ia64 make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ia64' Makefile:9: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' gcc aliasing-test.c -o aliasing-test make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ia64' 2017-12-25 14:14:04 make run_tests -C ia64 make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ia64' Makefile:9: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' TAP version 13 selftests: aliasing-test ======================================== PASS: /dev/mem 0x0-0xa0000 is readable PASS: /dev/mem 0xa0000-0xc0000 is mappable PASS: /dev/mem 0xc0000-0x100000 is readable PASS: /dev/mem 0x0-0x100000 is mappable PASS: /sys/devices/pci0000:00/0000:00:02.0/rom read 39422 bytes PASS: /sys/devices/pci0000:00/0000:00:03.0/rom read 231422 bytes PASS: /proc/bus/pci/00/00.0 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/01.0 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/01.1 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/01.3 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/02.0 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/03.0 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/04.0 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/05.0 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/06.0 0x0-0xa0000 not mappable PASS: /proc/bus/pci/00/00.0 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/01.0 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/01.1 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/01.3 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/02.0 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/03.0 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/04.0 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/05.0 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/06.0 0xa0000-0xc0000 not mappable PASS: /proc/bus/pci/00/00.0 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/01.0 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/01.1 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/01.3 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/02.0 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/03.0 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/04.0 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/05.0 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/06.0 0xc0000-0x100000 not mappable PASS: /proc/bus/pci/00/00.0 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/01.0 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/01.1 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/01.3 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/02.0 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/03.0 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/04.0 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/05.0 0x0-0x100000 not mappable PASS: /proc/bus/pci/00/06.0 0x0-0x100000 not mappable ok 1..1 selftests: aliasing-test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ia64' 2017-12-25 14:14:04 make run_tests -C intel_pstate make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/intel_pstate' gcc -Wall -D_GNU_SOURCE msr.c -lm -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/intel_pstate/msr gcc -Wall -D_GNU_SOURCE aperf.c -lm -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/intel_pstate/aperf TAP version 13 selftests: run.sh ======================================== Setting maximum frequency to 0 launching aperf load on 0 launching aperf load on 1 sleeping for 5 seconds cat: /sys/devices/system/cpu/intel_pstate/max_perf_pct: No such file or directory waiting for job id 11762 runTime: 35.15 freq: -nan runTime: 35.98 freq: -nan waiting for job id 11763 ============================================================================== The marketing frequency of the cpu is 2270 MHz The maximum frequency of the cpu is 0 MHz The minimum frequency of the cpu is 0 MHz Target Actual Difference MSR(0x199) max_perf_pct ./run.sh: line 110: *0: syntax error: operand expected (error token is "*0") ok 1..1 selftests: run.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/intel_pstate' 2017-12-25 14:14:41 make run_tests -C ipc make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ipc' gcc -DCONFIG_X86_64 -D__x86_64__ -I../../../../usr/include/ msgque.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ipc/msgque msgque.c: In function 'restore_queue': msgque.c:52:7: warning: implicit declaration of function 'msgget' [-Wimplicit-function-declaration] id = msgget(msgque->key, msgque->mode | IPC_CREAT | IPC_EXCL); ^ msgque.c:66:7: warning: implicit declaration of function 'msgsnd' [-Wimplicit-function-declaration] if (msgsnd(msgque->msq_id, &msgque->messages[i].mtype, ^ msgque.c:76: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:87: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:204:15: warning: implicit declaration of function 'ftok' [-Wimplicit-function-declaration] msgque.key = ftok(argv[0], 822155650); ^ TAP version 13 selftests: msgque ======================================== Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..1 selftests: msgque [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ipc' 2017-12-25 14:14:41 make run_tests -C kcmp make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/kcmp' gcc -I../../../../usr/include/ kcmp_test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/kcmp/kcmp_test TAP version 13 selftests: kcmp_test ======================================== pid1: 11890 pid2: 11891 FD: 1 FILES: 2 VM: 2 FS: 2 SIGHAND: 2 IO: 0 SYSVSEM: 0 INV: -1 PASS: 0 returned as expected PASS: 0 returned as expected PASS: 0 returned as expected Pass 3 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..3 Pass 3 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..3 Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..1 selftests: kcmp_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/kcmp' kmod test: not in Makefile 2017-12-25 14:14:41 make TARGETS=kmod make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/kmod' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/kmod' 2017-12-25 14:14:41 make run_tests -C kmod make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/kmod' TAP version 13 selftests: kmod.sh ======================================== Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0001 - run #0 kmod_test_0001_driver: OK! - loading kmod test kmod_test_0001_driver: OK! - Return value: 256 (MODULE_NOT_FOUND), expected MODULE_NOT_FOUND kmod_test_0001_fs: OK! - loading kmod test kmod_test_0001_fs: OK! - Return value: -22 (-EINVAL), expected -EINVAL Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0001 - run #1 kmod_test_0001_driver: OK! - loading kmod test kmod_test_0001_driver: OK! - Return value: 256 (MODULE_NOT_FOUND), expected MODULE_NOT_FOUND kmod_test_0001_fs: OK! - loading kmod test kmod_test_0001_fs: OK! - Return value: -22 (-EINVAL), expected -EINVAL Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0001 - run #2 kmod_test_0001_driver: OK! - loading kmod test kmod_test_0001_driver: OK! - Return value: 256 (MODULE_NOT_FOUND), expected MODULE_NOT_FOUND kmod_test_0001_fs: OK! - loading kmod test kmod_test_0001_fs: OK! - Return value: -22 (-EINVAL), expected -EINVAL Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0002 - run #0 kmod_test_0002_driver: OK! - loading kmod test kmod_test_0002_driver: OK! - Return value: 256 (MODULE_NOT_FOUND), expected MODULE_NOT_FOUND kmod_test_0002_fs: OK! - loading kmod test kmod_test_0002_fs: OK! - Return value: -22 (-EINVAL), expected -EINVAL Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0002 - run #1 kmod_test_0002_driver: OK! - loading kmod test kmod_test_0002_driver: OK! - Return value: 256 (MODULE_NOT_FOUND), expected MODULE_NOT_FOUND kmod_test_0002_fs: OK! - loading kmod test kmod_test_0002_fs: OK! - Return value: -22 (-EINVAL), expected -EINVAL Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0002 - run #2 kmod_test_0002_driver: OK! - loading kmod test kmod_test_0002_driver: OK! - Return value: 256 (MODULE_NOT_FOUND), expected MODULE_NOT_FOUND kmod_test_0002_fs: OK! - loading kmod test kmod_test_0002_fs: OK! - Return value: -22 (-EINVAL), expected -EINVAL Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0003 - run #0 kmod_test_0003: OK! - loading kmod test kmod_test_0003: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:41 CST 2017 Running test: kmod_test_0004 - run #0 kmod_test_0004: OK! - loading kmod test kmod_test_0004: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:42 CST 2017 Running test: kmod_test_0005 - run #0 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:42 CST 2017 Running test: kmod_test_0005 - run #1 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:42 CST 2017 Running test: kmod_test_0005 - run #2 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:42 CST 2017 Running test: kmod_test_0005 - run #3 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:42 CST 2017 Running test: kmod_test_0005 - run #4 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:42 CST 2017 Running test: kmod_test_0005 - run #5 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:42 CST 2017 Running test: kmod_test_0005 - run #6 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:43 CST 2017 Running test: kmod_test_0005 - run #7 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:43 CST 2017 Running test: kmod_test_0005 - run #8 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:43 CST 2017 Running test: kmod_test_0005 - run #9 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:43 CST 2017 Running test: kmod_test_0006 - run #0 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:44 CST 2017 Running test: kmod_test_0006 - run #1 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:44 CST 2017 Running test: kmod_test_0006 - run #2 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:44 CST 2017 Running test: kmod_test_0006 - run #3 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:45 CST 2017 Running test: kmod_test_0006 - run #4 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:46 CST 2017 Running test: kmod_test_0006 - run #5 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:46 CST 2017 Running test: kmod_test_0006 - run #6 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:46 CST 2017 Running test: kmod_test_0006 - run #7 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:46 CST 2017 Running test: kmod_test_0006 - run #8 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:47 CST 2017 Running test: kmod_test_0006 - run #9 kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:47 CST 2017 Running test: kmod_test_0007 - run #0 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:48 CST 2017 Running test: kmod_test_0007 - run #1 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:48 CST 2017 Running test: kmod_test_0007 - run #2 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:49 CST 2017 Running test: kmod_test_0007 - run #3 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS Mon Dec 25 14:14:49 CST 2017 Running test: kmod_test_0007 - run #4 kmod_test_0005: OK! - loading kmod test kmod_test_0005: OK! - Return value: 0 (SUCCESS), expected SUCCESS kmod_test_0006: OK! - loading kmod test kmod_test_0006: OK! - Return value: 0 (SUCCESS), expected SUCCESS ./kmod.sh: line 526: [[: 1 0002:3:1 0003:1:1 0004:1:1 0005:10:1 0006:10:1 0007:5:1 0008:150:1 0009:150:1: syntax error in expression (error token is "0002:3:1 0003:1:1 0004:1:1 0005:10:1 0006:10:1 0007:5:1 0008:150:1 0009:150:1") ./kmod.sh: line 526: [[: 1 0002:3:1 0003:1:1 0004:1:1 0005:10:1 0006:10:1 0007:5:1 0008:150:1 0009:150:1: syntax error in expression (error token is "0002:3:1 0003:1:1 0004:1:1 0005:10:1 0006:10:1 0007:5:1 0008:150:1 0009:150:1") Test completed ok 1..1 selftests: kmod.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/kmod' 2017-12-25 14:14:50 make run_tests -C lib make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/lib' TAP version 13 selftests: printf.sh ======================================== printf: ok ok 1..1 selftests: printf.sh [PASS] selftests: bitmap.sh ======================================== bitmap: ok ok 1..2 selftests: bitmap.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/lib' media_tests test: not in Makefile 2017-12-25 14:14:50 make TARGETS=media_tests make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/media_tests' Makefile:8: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' gcc media_device_test.c -o media_device_test gcc media_device_open.c -o media_device_open gcc video_device_test.c -o video_device_test make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/media_tests' ignored_by_lkp media_tests test 2017-12-25 14:14:50 make run_tests -C membarrier make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/membarrier' gcc -g -I../../../../usr/include/ membarrier_test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/membarrier/membarrier_test TAP version 13 selftests: membarrier_test ======================================== TAP version 13 ok 1 sys_membarrier available ok 2 sys membarrier invalid command test: command = -1, flags = 0. Failed as expected ok 3 sys membarrier MEMBARRIER_CMD_QUERY invalid flags test: flags = 1. Failed as expected ok 4 sys membarrier MEMBARRIER_CMD_SHARED test: flags = 0 Pass 4 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..4 ok 1..1 selftests: membarrier_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/membarrier' 2017-12-25 14:14:51 make run_tests -C memfd make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/memfd' gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/include/ memfd_test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/memfd/memfd_test memfd_test.c: In function 'mfd_assert_get_seals': memfd_test.c:104: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:227: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:358:6: warning: implicit declaration of function 'fallocate' [-Wimplicit-function-declaration] r = fallocate(fd, ^ gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/include/ fuse_mnt.c -lfuse -pthread -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/memfd/fuse_mnt gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/include/ fuse_test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/memfd/fuse_test fuse_test.c: In function 'mfd_assert_get_seals': fuse_test.c:69:6: warning: implicit declaration of function 'fcntl' [-Wimplicit-function-declaration] r = fcntl(fd, F_GET_SEALS); ^ fuse_test.c: In function 'main': fuse_test.c:244:7: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration] fd = open(argv[1], O_RDONLY | O_CLOEXEC); ^ TAP version 13 selftests: run_tests.sh ======================================== opening: ./mnt/memfd fuse: DONE 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 memfd: CREATE memfd: HUGETLBFS-GROW-SHRINK memfd: HUGETLBFS-DUP memfd: HUGETLBFS-PROC-OPEN memfd: HUGETLBFS-DUP (shared file-table) memfd: HUGETLBFS-PROC-OPEN (shared file-table) memfd: DONE ok 1..1 selftests: run_tests.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/memfd' 2017-12-25 14:14:53 make run_tests -C memory-hotplug make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/memory-hotplug' ./mem-on-off-test.sh -r 2 && echo "selftests: memory-hotplug [PASS]" || echo "selftests: memory-hotplug [FAIL]" Test scope: 2% hotplug memory online all hot-pluggable memory in offline state: SKIPPED - no hot-pluggable memory in offline state offline 2% hot-pluggable memory in online state trying to offline 1 out of 8 memory block(s): online->offline memory1 online all hot-pluggable memory in offline state: offline->online memory1 Test with memory notifier error injection ./mem-on-off-test.sh: line 70: echo: write error: Device or resource busy online_memory_expect_success 3: unexpected fail selftests: memory-hotplug [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/memory-hotplug' 2017-12-25 14:14:53 make run_tests -C mount make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/mount' gcc -Wall -O2 unprivileged-remount-test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/mount/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-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/mount' 2017-12-25 14:14:53 make run_tests -C mqueue make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/mqueue' gcc -O2 mq_open_tests.c -lrt -lpthread -lpopt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/mqueue/mq_open_tests gcc -O2 mq_perf_tests.c -lrt -lpthread -lpopt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/mqueue/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: 1 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 1 Max priorities: 32768 Clock resolution: 1 nsec Test #1: Time send/recv message, queue empty (10000000 iterations) Send msg: 7.583299386s total time 758 nsec/msg Recv msg: 7.459561447s total time 745 nsec/msg Test #2a: Time send/recv message, queue full, constant prio : (100000 iterations) Filling queue...done. 0.28670115s Testing...done. Send msg: 0.68936075s total time 689 nsec/msg Recv msg: 0.63464296s total time 634 nsec/msg Draining queue...done. 0.25067507s Test #2b: Time send/recv message, queue full, increasing prio : (100000 iterations) Filling queue...done. 0.41686178s Testing...done. Send msg: 0.95300724s total time 953 nsec/msg Recv msg: 0.84677198s total time 846 nsec/msg Draining queue...done. 0.34524137s Test #2c: Time send/recv message, queue full, decreasing prio : (100000 iterations) Filling queue...done. 0.54772297s Testing...done. Send msg: 0.144068915s total time 1440 nsec/msg Recv msg: 0.126840410s total time 1268 nsec/msg Draining queue...done. 0.52966616s Test #2d: Time send/recv message, queue full, random prio : (100000 iterations) Filling queue...done. 0.60261424s Testing...done. Send msg: 0.136454291s total time 1364 nsec/msg Recv msg: 0.116499437s total time 1164 nsec/msg Draining queue...done. 0.41065676s make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/mqueue' 2017-12-25 14:15:13 make run_tests -C net make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net' gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ reuseport_bpf.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/reuseport_bpf gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ reuseport_bpf_cpu.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/reuseport_bpf_cpu gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ -lnuma reuseport_bpf_numa.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/reuseport_bpf_numa gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ reuseport_dualstack.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/reuseport_dualstack gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ reuseaddr_conflict.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/reuseaddr_conflict gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ socket.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/socket gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ psock_fanout.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/psock_fanout gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ psock_tpacket.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/psock_tpacket gcc -Wall -Wl,--no-as-needed -O2 -g -I../../../../usr/include/ msg_zerocopy.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net/msg_zerocopy TAP version 13 selftests: reuseport_bpf ======================================== ---- IPv4 UDP ---- Testing EBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing EBPF mod 20... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 10: 10 Socket 11: 11 Socket 12: 12 Socket 13: 13 Socket 14: 14 Socket 15: 15 Socket 16: 16 Socket 17: 17 Socket 18: 18 Socket 19: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 10: 30 Socket 11: 31 Socket 12: 32 Socket 13: 33 Socket 14: 34 Socket 15: 35 Socket 16: 36 Socket 17: 37 Socket 18: 38 Socket 19: 39 Reprograming, testing mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 0: 30 Socket 1: 31 Socket 2: 32 Socket 3: 33 Socket 4: 34 Socket 5: 35 Socket 6: 36 Socket 7: 37 Socket 8: 38 Socket 9: 39 Testing CBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing CBPF mod 20... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 10: 10 Socket 11: 11 Socket 12: 12 Socket 13: 13 Socket 14: 14 Socket 15: 15 Socket 16: 16 Socket 17: 17 Socket 18: 18 Socket 19: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 10: 30 Socket 11: 31 Socket 12: 32 Socket 13: 33 Socket 14: 34 Socket 15: 35 Socket 16: 36 Socket 17: 37 Socket 18: 38 Socket 19: 39 Reprograming, testing mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 0: 30 Socket 1: 31 Socket 2: 32 Socket 3: 33 Socket 4: 34 Socket 5: 35 Socket 6: 36 Socket 7: 37 Socket 8: 38 Socket 9: 39 Testing too many filters... Testing filters on non-SO_REUSEPORT socket... ---- IPv6 UDP ---- Testing EBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing EBPF mod 20... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 10: 10 Socket 11: 11 Socket 12: 12 Socket 13: 13 Socket 14: 14 Socket 15: 15 Socket 16: 16 Socket 17: 17 Socket 18: 18 Socket 19: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 10: 30 Socket 11: 31 Socket 12: 32 Socket 13: 33 Socket 14: 34 Socket 15: 35 Socket 16: 36 Socket 17: 37 Socket 18: 38 Socket 19: 39 Reprograming, testing mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 0: 30 Socket 1: 31 Socket 2: 32 Socket 3: 33 Socket 4: 34 Socket 5: 35 Socket 6: 36 Socket 7: 37 Socket 8: 38 Socket 9: 39 Testing CBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing CBPF mod 20... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 10: 10 Socket 11: 11 Socket 12: 12 Socket 13: 13 Socket 14: 14 Socket 15: 15 Socket 16: 16 Socket 17: 17 Socket 18: 18 Socket 19: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 10: 30 Socket 11: 31 Socket 12: 32 Socket 13: 33 Socket 14: 34 Socket 15: 35 Socket 16: 36 Socket 17: 37 Socket 18: 38 Socket 19: 39 Reprograming, testing mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 0: 30 Socket 1: 31 Socket 2: 32 Socket 3: 33 Socket 4: 34 Socket 5: 35 Socket 6: 36 Socket 7: 37 Socket 8: 38 Socket 9: 39 Testing too many filters... Testing filters on non-SO_REUSEPORT socket... ---- IPv6 UDP w/ mapped IPv4 ---- Testing EBPF mod 20... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 10: 10 Socket 11: 11 Socket 12: 12 Socket 13: 13 Socket 14: 14 Socket 15: 15 Socket 16: 16 Socket 17: 17 Socket 18: 18 Socket 19: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 10: 30 Socket 11: 31 Socket 12: 32 Socket 13: 33 Socket 14: 34 Socket 15: 35 Socket 16: 36 Socket 17: 37 Socket 18: 38 Socket 19: 39 Reprograming, testing mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 0: 30 Socket 1: 31 Socket 2: 32 Socket 3: 33 Socket 4: 34 Socket 5: 35 Socket 6: 36 Socket 7: 37 Socket 8: 38 Socket 9: 39 Testing EBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing CBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing CBPF mod 20... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 10: 10 Socket 11: 11 Socket 12: 12 Socket 13: 13 Socket 14: 14 Socket 15: 15 Socket 16: 16 Socket 17: 17 Socket 18: 18 Socket 19: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 10: 30 Socket 11: 31 Socket 12: 32 Socket 13: 33 Socket 14: 34 Socket 15: 35 Socket 16: 36 Socket 17: 37 Socket 18: 38 Socket 19: 39 Reprograming, testing mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Socket 0: 20 Socket 1: 21 Socket 2: 22 Socket 3: 23 Socket 4: 24 Socket 5: 25 Socket 6: 26 Socket 7: 27 Socket 8: 28 Socket 9: 29 Socket 0: 30 Socket 1: 31 Socket 2: 32 Socket 3: 33 Socket 4: 34 Socket 5: 35 Socket 6: 36 Socket 7: 37 Socket 8: 38 Socket 9: 39 ---- IPv4 TCP ---- Testing EBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing CBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing too many filters... Testing filters on non-SO_REUSEPORT socket... ---- IPv6 TCP ---- Testing EBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing CBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing too many filters... Testing filters on non-SO_REUSEPORT socket... ---- IPv6 TCP w/ mapped IPv4 ---- Testing EBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing CBPF mod 10... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 5: 5 Socket 6: 6 Socket 7: 7 Socket 8: 8 Socket 9: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 5: 15 Socket 6: 16 Socket 7: 17 Socket 8: 18 Socket 9: 19 Reprograming, testing mod 5... Socket 0: 0 Socket 1: 1 Socket 2: 2 Socket 3: 3 Socket 4: 4 Socket 0: 5 Socket 1: 6 Socket 2: 7 Socket 3: 8 Socket 4: 9 Socket 0: 10 Socket 1: 11 Socket 2: 12 Socket 3: 13 Socket 4: 14 Socket 0: 15 Socket 1: 16 Socket 2: 17 Socket 3: 18 Socket 4: 19 Testing filter add without bind... SUCCESS ok 1..1 selftests: reuseport_bpf [PASS] selftests: reuseport_bpf_cpu ======================================== ---- IPv4 UDP ---- send cpu 0, receive socket 0 send cpu 1, receive socket 1 send cpu 1, receive socket 1 send cpu 0, receive socket 0 send cpu 0, receive socket 0 send cpu 1, receive socket 1 ---- IPv6 UDP ---- send cpu 0, receive socket 0 send cpu 1, receive socket 1 send cpu 1, receive socket 1 send cpu 0, receive socket 0 send cpu 0, receive socket 0 send cpu 1, receive socket 1 ---- IPv4 TCP ---- send cpu 0, receive socket 0 send cpu 1, receive socket 1 send cpu 1, receive socket 1 send cpu 0, receive socket 0 send cpu 0, receive socket 0 send cpu 1, receive socket 1 ---- IPv6 TCP ---- send cpu 0, receive socket 0 send cpu 1, receive socket 1 send cpu 1, receive socket 1 send cpu 0, receive socket 0 send cpu 0, receive socket 0 send cpu 1, receive socket 1 SUCCESS ok 1..2 selftests: reuseport_bpf_cpu [PASS] selftests: reuseport_bpf_numa ======================================== ---- IPv4 UDP ---- send node 0, receive socket 0 send node 0, receive socket 0 ---- IPv6 UDP ---- send node 0, receive socket 0 send node 0, receive socket 0 ---- IPv4 TCP ---- send node 0, receive socket 0 send node 0, receive socket 0 ---- IPv6 TCP ---- send node 0, receive socket 0 send node 0, receive socket 0 SUCCESS ok 1..3 selftests: reuseport_bpf_numa [PASS] selftests: reuseport_dualstack ======================================== ---- UDP IPv4 created before IPv6 ---- ---- UDP IPv6 created before IPv4 ---- ---- UDP IPv4 created before IPv6 (large) ---- ---- UDP IPv6 created before IPv4 (large) ---- ---- TCP IPv4 created before IPv6 ---- ---- TCP IPv6 created before IPv4 ---- SUCCESS ok 1..4 selftests: reuseport_dualstack [PASS] selftests: reuseaddr_conflict ======================================== Opening 127.0.0.1:9999 Opening INADDR_ANY:9999 bind: Address already in use Opening in6addr_any:9999 Opening INADDR_ANY:9999 bind: Address already in use Opening INADDR_ANY:9999 after closing ipv6 socket bind: Address already in use Successok 1..5 selftests: reuseaddr_conflict [PASS] selftests: run_netsocktests ======================================== -------------------- running socket test -------------------- [PASS] ok 1..6 selftests: run_netsocktests [PASS] selftests: run_afpackettests ======================================== -------------------- running psock_fanout test -------------------- test: control single socket test: control multiple sockets test: unique ids test: datapath 0x0 info: count=0,0, expect=0,0 info: count=20,0, expect=15,5 ERROR: incorrect queue lengths info: count=20,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=20,0, expect=15,5 ERROR: incorrect queue lengths info: count=20,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=15,5, expect=15,5 info: count=20,5, expect=20,5 test: datapath 0x1000 info: count=0,0, expect=0,0 info: count=15,5, expect=15,5 info: count=20,15, expect=20,15 test: datapath 0x1 info: count=0,0, expect=0,0 info: count=10,10, expect=10,10 info: count=17,18, expect=18,17 test: datapath 0x3 info: count=0,0, expect=0,0 info: count=15,5, expect=15,5 info: count=20,15, expect=20,15 test: datapath 0x6 info: count=0,0, expect=0,0 info: count=5,15, expect=15,5 info: count=20,15, expect=15,20 test: datapath 0x7 bpf: No space left on device bpf verifier: 0: (bf) r6 = r1 1: (61) r0 = *(u32 *)(r6 +0) 2: (35) if r0 >= 0x64 goto pc+1 R0=inv(id=0,umax_value=99,var_off=(0x0; 0x7f)) R1=ctx(id=0,off=0,imm=0) R6=ctx(id=0,off=0,imm=0) R10=fp0 3: (05) goto pc+4 8: (95) exit from 2 to 4: R0=inv(id=0,umin_value=100,umax_value=4294967295,var_off=(0x0; 0xffffffff)) R1=ctx(id=0,off=0,imm=0) R6=ctx(id=0,off=0,imm=0) R10=fp0 4: (30) r0 = *(u8 *)skb[80] 5: (15) if r0 == 0x61 goto pc+2 R0=inv(id=0) R6=ctx(id=0,off=0,imm=0) R10=fp0 6: (15) if r0 == 0x62 goto pc+1 R0=inv(id [FAIL] -------------------- running psock_tpacket test -------------------- test: TPACKET_V1 with PACKET_RX_RING test: skip TPACKET_V1 PACKET_RX_RING since user and kernel space have different bit width test: TPACKET_V1 with PACKET_TX_RING test: skip TPACKET_V1 PACKET_TX_RING since user and kernel space have different bit width 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] ok 1..7 selftests: run_afpackettests [PASS] selftests: test_bpf.sh ======================================== test_bpf: ok ok 1..8 selftests: test_bpf.sh [PASS] selftests: netdevice.sh ======================================== SKIP: Could not run test without the ip tool ok 1..9 selftests: netdevice.sh [PASS] selftests: rtnetlink.sh ======================================== SKIP: Could not run test without the ip tool ok 1..10 selftests: rtnetlink.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/net' 2017-12-25 14:15:22 make run_tests -C nsfs make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/nsfs' gcc -Wall -Werror owner.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/nsfs/owner gcc -Wall -Werror pidns.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/nsfs/pidns TAP version 13 selftests: owner ======================================== ok 1..1 selftests: owner [PASS] selftests: pidns ======================================== ok 1..2 selftests: pidns [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/nsfs' ignored_by_lkp powerpc test prctl test: not in Makefile 2017-12-25 14:15:22 make TARGETS=prctl make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/prctl' Makefile:14: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' gcc disable-tsc-ctxt-sw-stress-test.c -o disable-tsc-ctxt-sw-stress-test gcc disable-tsc-on-off-stress-test.c -o disable-tsc-on-off-stress-test gcc disable-tsc-test.c -o disable-tsc-test make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/prctl' 2017-12-25 14:15:23 make run_tests -C prctl make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/prctl' Makefile:14: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' TAP version 13 selftests: disable-tsc-ctxt-sw-stress-test ======================================== [No further output means we're allright] ok 1..1 selftests: disable-tsc-ctxt-sw-stress-test [PASS] selftests: disable-tsc-on-off-stress-test ======================================== [No further output means we're allright] ok 1..2 selftests: disable-tsc-on-off-stress-test [PASS] selftests: disable-tsc-test ======================================== rdtsc() == 480686062514 prctl(PR_GET_TSC, &tsc_val); tsc_val == PR_TSC_ENABLE rdtsc() == 480693444068 prctl(PR_SET_TSC, PR_TSC_ENABLE) rdtsc() == 480706643017 prctl(PR_SET_TSC, PR_TSC_SIGSEGV) rdtsc() == [ SIG_SEGV ] prctl(PR_GET_TSC, &tsc_val); tsc_val == PR_TSC_SIGSEGV prctl(PR_SET_TSC, PR_TSC_ENABLE) rdtsc() == 480707263600 ok 1..3 selftests: disable-tsc-test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/prctl' ptp test: not in Makefile 2017-12-25 14:15:44 make TARGETS=ptp make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ptp' Makefile:10: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' gcc -I../../../../usr/include/ testptp.c -lrt -o testptp make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ptp' 2017-12-25 14:15:44 make run_tests -C ptp make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ptp' Makefile:10: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' TAP version 13 selftests: testptp ======================================== opening /dev/ptp0: No such file or directory not ok 1..1 selftests: testptp [FAIL] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ptp' 2017-12-25 14:15:44 make run_tests -C ptrace make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ptrace' gcc -iquote../../../../include/uapi -Wall peeksiginfo.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ptrace/peeksiginfo TAP version 13 selftests: peeksiginfo ======================================== PASS ok 1..1 selftests: peeksiginfo [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/ptrace' 2017-12-25 14:15:44 make run_tests -C seccomp make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/seccomp' gcc -Wl,-no-as-needed -Wall -lpthread seccomp_bpf.c -o seccomp_bpf gcc -Wl,-no-as-needed -Wall seccomp_benchmark.c -o seccomp_benchmark TAP version 13 selftests: seccomp_bpf ======================================== [==========] Running 63 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.log_all [ OK ] global.log_all [ 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.KILL_thread [==========] Running 63 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.log_all [ OK ] global.log_all [ 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.KILL_thread [ OK ] global.KILL_thread [ RUN ] global.KILL_process [ OK ] global.KILL_process [ 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 ] global.ERRNO_order [ OK ] global.ERRNO_order [ 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 ] precedence.log_is_fifth [ OK ] precedence.log_is_fifth [ RUN ] precedence.log_is_fifth_in_any_order [ OK ] precedence.log_is_fifth_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.ptrace_syscall_redirected [ OK ] TRACE_syscall.ptrace_syscall_redirected [ RUN ] TRACE_syscall.ptrace_syscall_dropped [ OK ] TRACE_syscall.ptrace_syscall_dropped [ 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.detect_seccomp_filter_flags [ OK ] global.detect_seccomp_filter_flags [ 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 [ RUN ] global.filter_flag_log [ OK ] global.filter_flag_log [ RUN ] global.get_action_avail [ OK ] global.get_action_avail [==========] 63 / 63 tests passed. [ PASSED ] ok 1..1 selftests: seccomp_bpf [PASS] selftests: seccomp_benchmark ======================================== Calibrating reasonable sample size... 1514182546.572788998 - 1514182546.572785978 = 3020 1514182546.572801018 - 1514182546.572796457 = 4561 1514182546.572811070 - 1514182546.572802023 = 9047 1514182546.572829946 - 1514182546.572811928 = 18018 1514182546.572866726 - 1514182546.572830742 = 35984 1514182546.572939414 - 1514182546.572867498 = 71916 1514182546.573084022 - 1514182546.572940171 = 143851 1514182546.573410819 - 1514182546.573084848 = 325971 1514182546.573988546 - 1514182546.573412265 = 576281 1514182546.575156579 - 1514182546.573989510 = 1167069 1514182546.577591637 - 1514182546.575158147 = 2433490 1514182546.582532878 - 1514182546.577593893 = 4938985 1514182546.592355032 - 1514182546.582535393 = 9819639 1514182546.613120597 - 1514182546.592357674 = 20762923 1514182546.661359505 - 1514182546.613126580 = 48232925 1514182546.753016162 - 1514182546.661366403 = 91649759 1514182546.910558495 - 1514182546.753024353 = 157534142 1514182547.241897546 - 1514182546.910566627 = 331330919 1514182547.877411749 - 1514182547.241906583 = 635505166 1514182549.124434235 - 1514182547.877419864 = 1247014371 1514182551.502851610 - 1514182549.124442558 = 2378409052 1514182556.397532118 - 1514182551.502860556 = 4894671562 1514182565.612146939 - 1514182556.397540967 = 9214605972 Benchmarking 134217728 samples... 28.362913382 - 19.019912978 = 9343000404 getpid native: 69 ns 45.646027675 - 28.363170695 = 17282856980 getpid RET_ALLOW: 128 ns Estimated seccomp overhead per syscall: 59 ns ok 1..2 selftests: seccomp_benchmark [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/seccomp' 2017-12-25 14:16:32 make run_tests -C sigaltstack make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sigaltstack' gcc -Wall sas.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sigaltstack/sas TAP version 13 selftests: sas ======================================== TAP version 13 ok 1 Initial sigaltstack state was SS_DISABLE # [RUN] signal USR1 ok 2 sigaltstack is disabled in sighandler # [RUN] switched to user ctx # [RUN] signal USR2 # [OK] Stack preserved ok 3 sigaltstack is still SS_AUTODISARM after signal Pass 3 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..3 ok 1..1 selftests: sas [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sigaltstack' 2017-12-25 14:16:32 make run_tests -C size make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/size' gcc -static -ffreestanding -nostartfiles -s get_size.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/size/get_size TAP version 13 selftests: get_size ======================================== TAP version 13 # Testing system size. ok 1 get runtime memory use # System runtime memory report (units in Kilobytes): --- Total: 3776604 Free: 1812640 Buffer: 0 In use: 1963964 ... 1..1 ok 1..1 selftests: get_size [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/size' 2017-12-25 14:16:32 make run_tests -C splice make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/splice' gcc default_file_splice_read.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/splice/default_file_splice_read TAP version 13 selftests: default_file_splice_read.sh ======================================== ok 1..1 selftests: default_file_splice_read.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/splice' 2017-12-25 14:16:32 make run_tests -C static_keys make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/static_keys' TAP version 13 selftests: test_static_keys.sh ======================================== static_key: ok ok 1..1 selftests: test_static_keys.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/static_keys' 2017-12-25 14:16:32 make run_tests -C sync make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync' gcc -c sync_alloc.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_alloc.o gcc -c sync_fence.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_fence.o gcc -c sync_merge.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_merge.o gcc -c sync_wait.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_wait.o gcc -c sync_stress_parallelism.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_stress_parallelism.o gcc -c sync_stress_consumer.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_stress_consumer.o gcc -c sync_stress_merge.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_stress_merge.o gcc -c sync_test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_test.o gcc -c sync.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync.o gcc -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_test /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_test.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_alloc.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_fence.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_merge.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_wait.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_stress_parallelism.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_stress_consumer.o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync/sync_stress_merge.o -O2 -g -std=gnu89 -pthread -Wall -Wextra -I../../../../usr/include/ -pthread TAP version 13 selftests: sync_test ======================================== TAP version 13 # [RUN] Testing sync framework ok 1 [RUN] test_alloc_timeline ok 2 [RUN] test_alloc_fence ok 3 [RUN] test_alloc_fence_negative ok 4 [RUN] test_fence_one_timeline_wait ok 5 [RUN] test_fence_one_timeline_merge ok 6 [RUN] test_fence_merge_same_fence ok 7 [RUN] test_fence_multi_timeline_wait ok 8 [RUN] test_stress_two_threads_shared_timeline ok 9 [RUN] test_consumer_stress_multi_producer_single_consumer ok 10 [RUN] test_merge_stress_random_merge Pass 10 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..10 ok 1..1 selftests: sync_test [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sync' 2017-12-25 14:16:33 make run_tests -C sysctl make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sysctl' TAP version 13 selftests: sysctl.sh ======================================== Checking production write strict setting ... ok Mon Dec 25 14:16:33 CST 2017 Running test: sysctl_test_0001 - run #0 == Testing sysctl behavior against /proc/sys/debug/test_sysctl/int_0001 == 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 Checking ignoring spaces up to PAGE_SIZE works on write ...ok Checking passing PAGE_SIZE of spaces fails on write ...ok Mon Dec 25 14:16:33 CST 2017 Running test: sysctl_test_0002 - run #0 == Testing sysctl behavior against /proc/sys/debug/test_sysctl/string_0001 == 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 Mon Dec 25 14:16:33 CST 2017 Running test: sysctl_test_0003 - run #0 == Testing sysctl behavior against /proc/sys/debug/test_sysctl/int_0002 == 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 Checking ignoring spaces up to PAGE_SIZE works on write ...ok Checking passing PAGE_SIZE of spaces fails on write ...ok Testing INT_MAX works ...ok Testing INT_MAX + 1 will fail as expected...ok Testing negative values will work as expected...ok Mon Dec 25 14:16:33 CST 2017 Running test: sysctl_test_0004 - run #0 == Testing sysctl behavior against /proc/sys/debug/test_sysctl/uint_0001 == 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 Checking ignoring spaces up to PAGE_SIZE works on write ...ok Checking passing PAGE_SIZE of spaces fails on write ...ok Testing UINT_MAX works ...ok Testing UINT_MAX + 1 will fail as expected...ok Testing negative values will not work as expected ...ok Mon Dec 25 14:16:34 CST 2017 Running test: sysctl_test_0005 - run #0 Testing array works as expected ... ok Testing skipping trailing array elements works ... ok Testing PAGE_SIZE limit on array works ... ok Testing exceeding PAGE_SIZE limit fails as expected ... Files - and /proc/sys/debug/test_sysctl/int_0003 differ ok Mon Dec 25 14:16:34 CST 2017 Running test: sysctl_test_0005 - run #1 Testing array works as expected ... ok Testing skipping trailing array elements works ... ok Testing PAGE_SIZE limit on array works ... ok Testing exceeding PAGE_SIZE limit fails as expected ... Files - and /proc/sys/debug/test_sysctl/int_0003 differ ok Mon Dec 25 14:16:34 CST 2017 Running test: sysctl_test_0005 - run #2 Testing array works as expected ... ok Testing skipping trailing array elements works ... ok Testing PAGE_SIZE limit on array works ... ok Testing exceeding PAGE_SIZE limit fails as expected ... Files - and /proc/sys/debug/test_sysctl/int_0003 differ ok ok 1..1 selftests: sysctl.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/sysctl' 2017-12-25 14:16:34 make run_tests -C timers make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers' gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm posix_timers.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/posix_timers gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm nanosleep.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/nanosleep gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm nsleep-lat.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/nsleep-lat gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm set-timer-lat.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/set-timer-lat gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm mqueue-lat.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/mqueue-lat gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm inconsistency-check.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/inconsistency-check gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm raw_skew.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/raw_skew gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm threadtest.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/threadtest gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm rtctest.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/rtctest gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm alarmtimer-suspend.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/alarmtimer-suspend gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm valid-adjtimex.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/valid-adjtimex gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm adjtick.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/adjtick gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm change_skew.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/change_skew gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm skew_consistency.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/skew_consistency gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm clocksource-switch.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/clocksource-switch gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm freq-step.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/freq-step gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm leap-a-day.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/leap-a-day gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm leapcrash.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/leapcrash gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm set-tai.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/set-tai gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm set-2038.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/set-2038 gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm set-tz.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/set-tz gcc -O3 -Wl,-no-as-needed -Wall -lrt -lpthread -lm rtctest_setdate.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers/rtctest_setdate TAP version 13 selftests: posix_timers ======================================== 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] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..1 selftests: posix_timers [PASS] selftests: nanosleep ======================================== 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] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..2 selftests: nanosleep [PASS] selftests: nsleep-lat ======================================== 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] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..3 selftests: nsleep-lat [PASS] selftests: set-timer-lat ======================================== Setting timers for every 1 seconds CLOCK_REALTIME ABSTIME PERIODIC timer fired early: 0 : [OK] CLOCK_REALTIME ABSTIME PERIODIC max latency: 216066 ns : [OK] CLOCK_REALTIME RELTIME PERIODIC timer fired early: 0 : [OK] CLOCK_REALTIME RELTIME PERIODIC max latency: 209225 ns : [OK] CLOCK_REALTIME ABSTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_REALTIME ABSTIME ONE-SHOT max latency: 199540 ns : [OK] CLOCK_REALTIME ABSTIME ONE-SHOT count: 1 : [OK] CLOCK_REALTIME RELTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_REALTIME RELTIME ONE-SHOT max latency: 102476 ns : [OK] CLOCK_REALTIME RELTIME ONE-SHOT count: 1 : [OK] CLOCK_MONOTONIC ABSTIME PERIODIC timer fired early: 0 : [OK] CLOCK_MONOTONIC ABSTIME PERIODIC max latency: 168244 ns : [OK] CLOCK_MONOTONIC RELTIME PERIODIC timer fired early: 0 : [OK] CLOCK_MONOTONIC RELTIME PERIODIC max latency: 218967 ns : [OK] CLOCK_MONOTONIC ABSTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_MONOTONIC ABSTIME ONE-SHOT max latency: 162783 ns : [OK] CLOCK_MONOTONIC ABSTIME ONE-SHOT count: 1 : [OK] CLOCK_MONOTONIC RELTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_MONOTONIC RELTIME ONE-SHOT max latency: 150329 ns : [OK] CLOCK_MONOTONIC RELTIME ONE-SHOT count: 1 : [OK] CLOCK_BOOTTIME ABSTIME PERIODIC timer fired early: 0 : [OK] CLOCK_BOOTTIME ABSTIME PERIODIC max latency: 150124 ns : [OK] CLOCK_BOOTTIME RELTIME PERIODIC timer fired early: 0 : [OK] CLOCK_BOOTTIME RELTIME PERIODIC max latency: 195909 ns : [OK] CLOCK_BOOTTIME ABSTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_BOOTTIME ABSTIME ONE-SHOT max latency: 110828 ns : [OK] CLOCK_BOOTTIME ABSTIME ONE-SHOT count: 1 : [OK] CLOCK_BOOTTIME RELTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_BOOTTIME RELTIME ONE-SHOT max latency: 159407 ns : [OK] CLOCK_BOOTTIME RELTIME ONE-SHOT count: 1 : [OK] CLOCK_REALTIME_ALARM ABSTIME PERIODIC timer fired early: 0 : [OK] CLOCK_REALTIME_ALARM ABSTIME PERIODIC max latency: 122199 ns : [OK] CLOCK_REALTIME_ALARM RELTIME PERIODIC timer fired early: 0 : [OK] CLOCK_REALTIME_ALARM RELTIME PERIODIC max latency: 129467 ns : [OK] CLOCK_REALTIME_ALARM ABSTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_REALTIME_ALARM ABSTIME ONE-SHOT max latency: 117097 ns : [OK] CLOCK_REALTIME_ALARM ABSTIME ONE-SHOT count: 1 : [OK] CLOCK_REALTIME_ALARM RELTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_REALTIME_ALARM RELTIME ONE-SHOT max latency: 149117 ns : [OK] CLOCK_REALTIME_ALARM RELTIME ONE-SHOT count: 1 : [OK] CLOCK_BOOTTIME_ALARM ABSTIME PERIODIC timer fired early: 0 : [OK] CLOCK_BOOTTIME_ALARM ABSTIME PERIODIC max latency: 116470 ns : [OK] CLOCK_BOOTTIME_ALARM RELTIME PERIODIC timer fired early: 0 : [OK] CLOCK_BOOTTIME_ALARM RELTIME PERIODIC max latency: 131727 ns : [OK] CLOCK_BOOTTIME_ALARM ABSTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_BOOTTIME_ALARM ABSTIME ONE-SHOT max latency: 118261 ns : [OK] CLOCK_BOOTTIME_ALARM ABSTIME ONE-SHOT count: 1 : [OK] CLOCK_BOOTTIME_ALARM RELTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_BOOTTIME_ALARM RELTIME ONE-SHOT max latency: 188984 ns : [OK] CLOCK_BOOTTIME_ALARM RELTIME ONE-SHOT count: 1 : [OK] CLOCK_TAI ABSTIME PERIODIC timer fired early: 0 : [OK] CLOCK_TAI ABSTIME PERIODIC max latency: 155126 ns : [OK] CLOCK_TAI RELTIME PERIODIC timer fired early: 0 : [OK] CLOCK_TAI RELTIME PERIODIC max latency: 153903 ns : [OK] CLOCK_TAI ABSTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_TAI ABSTIME ONE-SHOT max latency: 101720 ns : [OK] CLOCK_TAI ABSTIME ONE-SHOT count: 1 : [OK] CLOCK_TAI RELTIME ONE-SHOT timer fired early: 0 : [OK] CLOCK_TAI RELTIME ONE-SHOT max latency: 126012 ns : [OK] CLOCK_TAI RELTIME ONE-SHOT count: 1 : [OK] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..4 selftests: set-timer-lat [PASS] selftests: mqueue-lat ======================================== Mqueue latency : [OK] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..5 selftests: mqueue-lat [PASS] selftests: inconsistency-check ======================================== 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] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..6 selftests: inconsistency-check [PASS] selftests: raw_skew ======================================== Estimating clock drift: 0.0(est) 0.0(act) [OK] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..7 selftests: raw_skew [PASS] selftests: threadtest ======================================== Mon, 25 Dec 2017 14:25:01 +0800 Testing consistency with 8 threads for 30 seconds: [OK] Pass 0 Fail 0 Xfail 0 Xpass 0 Skip 0 Error 0 1..0 ok 1..8 selftests: threadtest [PASS] selftests: rtctest ======================================== 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 25-12-2017, 14:25:40. Alarm time now set to 14:25:45. 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 *** ok 1..9 selftests: rtctest [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/timers' 2017-12-25 14:26:04 make run_tests -C user make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/user' TAP version 13 selftests: test_user_copy.sh ======================================== user_copy: ok ok 1..1 selftests: test_user_copy.sh [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/user' vDSO test: not in Makefile 2017-12-25 14:26:04 make TARGETS=vDSO make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vDSO' Makefile:20: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' gcc -std=gnu99 vdso_test.c parse_vdso.c -o vdso_test gcc -std=gnu99 -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector \ vdso_standalone_test_x86.c parse_vdso.c \ -o vdso_standalone_test_x86 make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vDSO' 2017-12-25 14:26:05 make run_tests -C vDSO make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vDSO' Makefile:20: warning: overriding recipe for target 'clean' ../lib.mk:97: warning: ignoring old recipe for target 'clean' TAP version 13 selftests: vdso_test ======================================== The time is 1514183165.196478 ok 1..1 selftests: vdso_test [PASS] selftests: vdso_standalone_test_x86 ======================================== The time is 1514183165.202441 ok 1..2 selftests: vdso_standalone_test_x86 [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vDSO' 2017-12-25 14:26:05 make run_tests -C vm make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm' gcc -Wall -I ../../../../usr/include compaction_test.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/compaction_test gcc -Wall -I ../../../../usr/include hugepage-mmap.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/hugepage-mmap gcc -Wall -I ../../../../usr/include hugepage-shm.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/hugepage-shm gcc -Wall -I ../../../../usr/include map_hugetlb.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/map_hugetlb gcc -Wall -I ../../../../usr/include mlock2-tests.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/mlock2-tests gcc -Wall -I ../../../../usr/include on-fault-limit.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/on-fault-limit gcc -Wall -I ../../../../usr/include thuge-gen.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/thuge-gen gcc -Wall -I ../../../../usr/include transhuge-stress.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/transhuge-stress gcc -Wall -I ../../../../usr/include userfaultfd.c ../../../../usr/include/linux/kernel.h -lrt -lpthread -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/userfaultfd gcc -Wall -I ../../../../usr/include mlock-random-test.c -lrt -lcap -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/mlock-random-test gcc -Wall -I ../../../../usr/include virtual_address_range.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/virtual_address_range gcc -Wall -I ../../../../usr/include gup_benchmark.c -lrt -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm/gup_benchmark TAP version 13 selftests: run_vmtests ======================================== --------------------- running hugepage-mmap --------------------- Returned address is 0x7fc34c400000 First hex is 0 First hex is 3020100 [PASS] -------------------- running hugepage-shm -------------------- shmid: 0x0 shmaddr: 0x7fafb6200000 Starting the writes: ................................................................................................................................................................................................................................................................ Starting the Check...Done. [PASS] ------------------- running map_hugetlb ------------------- Returned address is 0x7feb2f400000 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: 32768, nr_pages_per_cpu: 16384 bounces: 31, mode: rnd racing ver poll, userfaults: 3005 4848 bounces: 30, mode: racing ver poll, userfaults: 3823 1443 bounces: 29, mode: rnd ver poll, userfaults: 3980 4384 bounces: 28, mode: ver poll, userfaults: 1470 2098 bounces: 27, mode: rnd racing poll, userfaults: 4867 4396 bounces: 26, mode: racing poll, userfaults: 4417 4660 bounces: 25, mode: rnd poll, userfaults: 5375 6565 bounces: 24, mode: poll, userfaults: 7404 7460 bounces: 23, mode: rnd racing ver, userfaults: 3482 3149 bounces: 22, mode: racing ver, userfaults: 4271 3535 bounces: 21, mode: rnd ver, userfaults: 5725 5099 bounces: 20, mode: ver, userfaults: 4604 4198 bounces: 19, mode: rnd racing, userfaults: 3184 3811 bounces: 18, mode: racing, userfaults: 5137 4698 bounces: 17, mode: rnd, userfaults: 8513 8383 bounces: 16, mode:, userfaults: 7769 8126 bounces: 15, mode: rnd racing ver poll, userfaults: 4730 4364 bounces: 14, mode: racing ver poll, userfaults: 3383 4552 bounces: 13, mode: rnd ver poll, userfaults: 4725 5062 bounces: 12, mode: ver poll, userfaults: 5459 4637 bounces: 11, mode: rnd racing poll, userfaults: 4919 4553 bounces: 10, mode: racing poll, userfaults: 5551 4772 bounces: 9, mode: rnd poll, userfaults: 5590 5617 bounces: 8, mode: poll, userfaults: 6379 9173 bounces: 7, mode: rnd racing ver, userfaults: 6459 5179 bounces: 6, mode: racing ver, userfaults: 2998 2224 bounces: 5, mode: rnd ver, userfaults: 7415 7008 bounces: 4, mode: ver, userfaults: 5181 4803 bounces: 3, mode: rnd racing, userfaults: 3430 3126 bounces: 2, mode: racing, userfaults: 2655 2288 bounces: 1, mode: rnd, userfaults: 5662 5684 bounces: 0, mode:, userfaults: 4746 4354 testing UFFDIO_ZEROPAGE: done. testing signal delivery: done. testing events (fork, remap, remove): userfaults: 32768 [PASS] --------------------------- running userfaultfd_hugetlb --------------------------- nr_pages: 64, nr_pages_per_cpu: 32 bounces: 31, mode: rnd racing ver poll, userfaults: 9 19 bounces: 30, mode: racing ver poll, userfaults: 2 17 bounces: 29, mode: rnd ver poll, userfaults: 12 19 bounces: 28, mode: ver poll, userfaults: 17 5 bounces: 27, mode: rnd racing poll, userfaults: 13 19 bounces: 26, mode: racing poll, userfaults: 10 11 bounces: 25, mode: rnd poll, userfaults: 16 14 bounces: 24, mode: poll, userfaults: 16 8 bounces: 23, mode: rnd racing ver, userfaults: 17 11 bounces: 22, mode: racing ver, userfaults: 15 8 bounces: 21, mode: rnd ver, userfaults: 20 18 bounces: 20, mode: ver, userfaults: 15 18 bounces: 19, mode: rnd racing, userfaults: 15 16 bounces: 18, mode: racing, userfaults: 19 13 bounces: 17, mode: rnd, userfaults: 17 18 bounces: 16, mode:, userfaults: 16 14 bounces: 15, mode: rnd racing ver poll, userfaults: 15 13 bounces: 14, mode: racing ver poll, userfaults: 6 7 bounces: 13, mode: rnd ver poll, userfaults: 23 14 bounces: 12, mode: ver poll, userfaults: 11 11 bounces: 11, mode: rnd racing poll, userfaults: 12 14 bounces: 10, mode: racing poll, userfaults: 10 10 bounces: 9, mode: rnd poll, userfaults: 11 11 bounces: 8, mode: poll, userfaults: 8 23 bounces: 7, mode: rnd racing ver, userfaults: 18 13 bounces: 6, mode: racing ver, userfaults: 0 5 bounces: 5, mode: rnd ver, userfaults: 15 16 bounces: 4, mode: ver, userfaults: 13 17 bounces: 3, mode: rnd racing, userfaults: 28 4 bounces: 2, mode: racing, userfaults: 6 1 bounces: 1, mode: rnd, userfaults: 23 12 bounces: 0, mode:, userfaults: 10 4 testing UFFDIO_ZEROPAGE: done. testing signal delivery: done. testing events (fork, remap, remove): userfaults: 64 [PASS] ------------------------- running userfaultfd_shmem ------------------------- nr_pages: 32768, nr_pages_per_cpu: 16384 bounces: 31, mode: rnd racing ver poll, userfaults: 4642 4043 bounces: 30, mode: racing ver poll, userfaults: 956 3184 bounces: 29, mode: rnd ver poll, userfaults: 4155 4617 bounces: 28, mode: ver poll, userfaults: 7439 7896 bounces: 27, mode: rnd racing poll, userfaults: 5829 4579 bounces: 26, mode: racing poll, userfaults: 5611 6352 bounces: 25, mode: rnd poll, userfaults: 6651 6343 bounces: 24, mode: poll, userfaults: 8688 6169 bounces: 23, mode: rnd racing ver, userfaults: 3661 2425 bounces: 22, mode: racing ver, userfaults: 3384 3205 bounces: 21, mode: rnd ver, userfaults: 5939 5788 bounces: 20, mode: ver, userfaults: 2986 2654 bounces: 19, mode: rnd racing, userfaults: 3872 3730 bounces: 18, mode: racing, userfaults: 3676 3468 bounces: 17, mode: rnd, userfaults: 6097 6172 bounces: 16, mode:, userfaults: 4368 4177 bounces: 15, mode: rnd racing ver poll, userfaults: 2973 2915 bounces: 14, mode: racing ver poll, userfaults: 2356 3639 bounces: 13, mode: rnd ver poll, userfaults: 5558 6265 bounces: 12, mode: ver poll, userfaults: 4211 3820 bounces: 11, mode: rnd racing poll, userfaults: 3959 5125 bounces: 10, mode: racing poll, userfaults: 7503 3544 bounces: 9, mode: rnd poll, userfaults: 6243 5663 bounces: 8, mode: poll, userfaults: 5579 5391 bounces: 7, mode: rnd racing ver, userfaults: 3308 3023 bounces: 6, mode: racing ver, userfaults: 4650 4167 bounces: 5, mode: rnd ver, userfaults: 6327 5709 bounces: 4, mode: ver, userfaults: 3295 3167 bounces: 3, mode: rnd racing, userfaults: 3118 2939 bounces: 2, mode: racing, userfaults: 3117 5544 bounces: 1, mode: rnd, userfaults: 7291 6281 bounces: 0, mode:, userfaults: 9020 5088 testing UFFDIO_ZEROPAGE: done. testing signal delivery: done. testing events (fork, remap, remove): userfaults: 32768 [PASS] ----------------------- running compaction_test ----------------------- No of huge pages allocated = 352 [PASS] ---------------------- running on-fault-limit ---------------------- [PASS] -------------------- running mlock2-tests -------------------- [PASS] ----------------------------- running virtual_address_range ----------------------------- [PASS] ok 1..1 selftests: run_vmtests [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/vm' watchdog test: not in Makefile 2017-12-25 14:26:36 make TARGETS=watchdog make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/watchdog' gcc watchdog-test.c -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/watchdog/watchdog-test make[1]: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/watchdog' ignored_by_lkp watchdog test 2017-12-25 14:26:36 make run_tests -C x86 make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86' gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/single_step_syscall_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie single_step_syscall.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/sysret_ss_attrs_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie sysret_ss_attrs.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/syscall_nt_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie syscall_nt.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/ptrace_syscall_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie ptrace_syscall.c raw_syscall_helper_32.S -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_mremap_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_mremap_vdso.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/check_initial_reg_state_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -Wl,-ereal_start -static check_initial_reg_state.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/sigreturn_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie sigreturn.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/ldt_gdt_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie ldt_gdt.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/iopl_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie iopl.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/mpx-mini-test_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie mpx-mini-test.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/ioperm_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie ioperm.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/protection_keys_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie protection_keys.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_vdso.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/entry_from_vm86_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie entry_from_vm86.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/syscall_arg_fault_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie syscall_arg_fault.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_syscall_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_syscall_vdso.c thunks_32.S -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/unwind_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie unwind_vdso.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_FCMOV_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_FCMOV.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_FCOMI_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_FCOMI.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_FISTTP_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_FISTTP.c -lrt -ldl -lm gcc -m32 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/vdso_restorer_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie vdso_restorer.c -lrt -ldl -lm gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/single_step_syscall_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie single_step_syscall.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/sysret_ss_attrs_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie sysret_ss_attrs.c thunks.S -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/syscall_nt_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie syscall_nt.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/ptrace_syscall_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie ptrace_syscall.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_mremap_vdso_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_mremap_vdso.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/check_initial_reg_state_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie -Wl,-ereal_start -static check_initial_reg_state.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/sigreturn_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie sigreturn.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/ldt_gdt_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie ldt_gdt.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/iopl_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie iopl.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/mpx-mini-test_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie mpx-mini-test.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/ioperm_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie ioperm.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/protection_keys_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie protection_keys.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/test_vdso_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie test_vdso.c -lrt -ldl test_vdso.c: In function 'main': test_vdso.c:99:37: warning: 'node' may be used uninitialized in this function [-Wmaybe-uninitialized] if (!ret_vsys && (cpu_vsys != cpu || node_vsys != node)) ^ test_vdso.c:79:12: note: 'node' was declared here unsigned node; ^ gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/fsgsbase_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie fsgsbase.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/sysret_rip_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie sysret_rip.c -lrt -ldl gcc -m64 -o /usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86/5lvl_64 -O2 -g -std=gnu99 -pthread -Wall -no-pie 5lvl.c -lrt -ldl TAP version 13 selftests: single_step_syscall_32 ======================================== [RUN] Set TF and check nop [OK] Survived with TF set and 9 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 38 traps [RUN] Fast syscall with TF cleared [OK] Nothing unexpected happened ok 1..1 selftests: single_step_syscall_32 [PASS] selftests: sysret_ss_attrs_32 ======================================== [RUN] Syscalls followed by SS validation [OK] We survived ok 1..2 selftests: sysret_ss_attrs_32 [PASS] selftests: syscall_nt_32 ======================================== [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 ok 1..3 selftests: syscall_nt_32 [PASS] selftests: ptrace_syscall_32 ======================================== [RUN] Check int80 return regs [OK] getpid() preserves regs [OK] kill(getpid(), SIGUSR1) preserves regs [RUN] Check AT_SYSINFO 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=175, args=2 4289908412 0 8 4289908412 0) [RUN] Restart the syscall (ip = 0xf7f1bdb9) [FAIL] Restart nr or args are wrong (nr=175, args=2 4289908412 0 8 4289908412 0) [RUN] Change nr and args and restart the syscall (ip = 0xf7f1bdb9) [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=175, args=2 4289908412 0 8 4289908412 0) [RUN] SYSCALL [FAIL] Args after SIGUSR1 are wrong (nr=175, args=2 4289908412 0 8 4289908412 0) [OK] Child got SIGUSR1 [RUN] Step again [OK] pause(2) restarted correctly ok 1..4 selftests: ptrace_syscall_32 [PASS] selftests: test_mremap_vdso_32 ======================================== AT_SYSINFO_EHDR is 0xf7f15000 [NOTE] Moving vDSO: [0xf7f15000, 0xf7f16000] -> [0xf7f0f000, 0xf7f10000] [NOTE] vDSO partial move failed, will try with bigger size [NOTE] Moving vDSO: [0xf7f15000, 0xf7f17000] -> [0xf7f0e000, 0xf7f10000] [OK] ok 1..5 selftests: test_mremap_vdso_32 [PASS] selftests: check_initial_reg_state_32 ======================================== [OK] All GPRs except SP are 0 [OK] FLAGS is 0x202 ok 1..6 selftests: check_initial_reg_state_32 [PASS] selftests: sigreturn_32 ======================================== [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: 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 -> 5aadc0de [OK] all registers okay [RUN] Valid sigreturn: 16-bit CS (37), 16-bit SS (3f) SP: 5aadc0de -> 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 (23) [OK] Got #GP(0x20) (i.e. GDT index 4, Segmentation fault) [RUN] 32-bit CS (23), bogus SS (23) [OK] Got #GP(0x20) (i.e. GDT index 4, Segmentation fault) [RUN] 16-bit CS (37), bogus SS (23) [OK] Got #GP(0x20) (i.e. GDT index 4, 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) ok 1..7 selftests: sigreturn_32 [PASS] selftests: ldt_gdt_32 ======================================== [NOTE] set_thread_area is available; will use GDT index 13 [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 [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 13 [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 [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 0x000FFFFF [OK] GDT entry 13 has AR 0x0040F300 and limit 0x000FFFFF [OK] LDT entry 0 has AR 0x00C0F200 and limit 0xFFFFFFFF [OK] GDT entry 13 has AR 0x00C0F300 and limit 0xFFFFFFFF [OK] LDT entry 0 has AR 0x00C0F000 and limit 0xFFFFFFFF [OK] GDT entry 13 has AR 0x00C0F100 and limit 0xFFFFFFFF [OK] LDT entry 0 has AR 0x00C0F600 and limit 0xFFFFFFFF [OK] GDT entry 13 has AR 0x00C0F700 and limit 0xFFFFFFFF [OK] LDT entry 0 has AR 0x00C0F400 and limit 0xFFFFFFFF [OK] GDT entry 13 has AR 0x00C0F500 and limit 0xFFFFFFFF [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] Invalidate GS with set_thread_area: new GS = 0x0 ok 1..8 selftests: ldt_gdt_32 [PASS] selftests: iopl_32 ======================================== 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 ok 1..9 selftests: iopl_32 [PASS] selftests: mpx-mini-test_32 ======================================== processor lacks XSAVE, can not run MPX tests ok 1..10 selftests: mpx-mini-test_32 [PASS] selftests: ioperm_32 ======================================== [OK] outb to 0x80 failed [OK] outb to 0xed failed [RUN] enable 0x80 [OK] outb to 0x80 worked [OK] outb to 0xed failed [RUN] disable 0x80 [OK] outb to 0x80 failed [OK] outb to 0xed failed [RUN] child: check that we inherited permissions [OK] outb to 0x80 worked [OK] outb to 0xed failed [OK] outb to 0x80 failed [OK] outb to 0xed failed [RUN] enable 0x80 [OK] outb to 0x80 worked [OK] outb to 0xed failed [RUN] disable 0x80 [OK] outb to 0x80 failed [OK] outb to 0xed failed [OK] Child succeeded Drop privileges [RUN] disable 0x80 [OK] it worked [RUN] enable 0x80 again [OK] it failed ok 1..11 selftests: ioperm_32 [PASS] selftests: protection_keys_32 ======================================== has pku: 0 running PKEY tests for unsupported CPU/OS ok 1..12 selftests: protection_keys_32 [PASS] selftests: test_vdso_32 ======================================== Warning: failed to find getcpu in vDSO [RUN] Testing getcpu... [OK] CPU 0: syscall: cpu 0, node 0 [OK] CPU 1: syscall: cpu 1, node 0 ok 1..13 selftests: test_vdso_32 [PASS] selftests: entry_from_vm86_32 ======================================== [RUN] #BR from vm86 mode [SKIP] vm86 not supported [RUN] SYSENTER from vm86 mode [SKIP] vm86 not supported [RUN] SYSCALL from vm86 mode [SKIP] vm86 not supported [RUN] STI with VIP set from vm86 mode [SKIP] vm86 not supported [RUN] INT3 from vm86 mode [SKIP] vm86 not supported [RUN] int80 from vm86 mode [SKIP] vm86 not supported [RUN] UMIP tests from vm86 mode [SKIP] vm86 not supported [INFO] Result from SMSW:[0x0000] [INFO] Result from SIDT: limit[0x0000]base[0x00000000] [INFO] Result from SGDT: limit[0x0000]base[0x00000000] [PASS] All the results from SMSW are identical. [PASS] All the results from SGDT are identical. [PASS] All the results from SIDT are identical. [RUN] STR instruction from vm86 mode [SKIP] vm86 not supported [RUN] SLDT instruction from vm86 mode [SKIP] vm86 not supported [RUN] Execute null pointer from vm86 mode [SKIP] vm86 not supported ok 1..14 selftests: entry_from_vm86_32 [PASS] [RUN] #BR from vm86 mode [SKIP] vm86 not supported [RUN] SYSENTER from vm86 mode [SKIP] vm86 not supported [RUN] SYSCALL from vm86 mode [SKIP] vm86 not supported [RUN] STI with VIP set from vm86 mode [SKIP] vm86 not supported [RUN] INT3 from vm86 mode [SKIP] vm86 not supported [RUN] int80 from vm86 mode [SKIP] vm86 not supported [RUN] UMIP tests from vm86 mode [SKIP] vm86 not supported [INFO] Result from SMSW:[0x0000] [INFO] Result from SIDT: limit[0x0000]base[0x00000000] [INFO] Result from SGDT: limit[0x0000]base[0x00000000] [PASS] All the results from SMSW are identical. [PASS] All the results from SGDT are identical. [PASS] All the results from SIDT are identical. [RUN] STR instruction from vm86 mode [SKIP] vm86 not supported [RUN] SLDT instruction from vm86 mode [SKIP] vm86 not supported [RUN] Execute null pointer from vm86 mode [SKIP] vm86 not supported selftests: syscall_arg_fault_32 ======================================== [RUN] SYSENTER with invalid state [OK] Seems okay [RUN] SYSCALL with invalid state [SKIP] Illegal instruction ok 1..15 selftests: syscall_arg_fault_32 [PASS] selftests: test_syscall_vdso_32 ======================================== [RUN] Executing 6-argument 32-bit syscall via VDSO [OK] Arguments are preserved across syscall [NOTE] R11 has changed:0000000000200ed7 - assuming clobbered by SYSRET insn [OK] R8..R15 did not leak kernel data [RUN] Executing 6-argument 32-bit syscall via INT 80 [OK] Arguments are preserved across syscall [OK] R8..R15 did not leak kernel data [RUN] Executing 6-argument 32-bit syscall via VDSO [OK] Arguments are preserved across syscall [NOTE] R11 has changed:0000000000200ed7 - assuming clobbered by SYSRET insn [OK] R8..R15 did not leak kernel data [RUN] Executing 6-argument 32-bit syscall via INT 80 [OK] Arguments are preserved across syscall [OK] R8..R15 did not leak kernel data [RUN] Running tests under ptrace ok 1..16 selftests: test_syscall_vdso_32 [PASS] selftests: unwind_vdso_32 ======================================== AT_SYSINFO is 0xf7f65db0 [OK] AT_SYSINFO maps to linux-gate.so.1, loaded at 0x0xf7f65000 [RUN] Set TF and check a fast syscall In vsyscall at 0xf7f65db0, returning to 0xf7ddd007 SIGTRAP at 0xf7f65db0 0xf7f65db0 0xf7ddd007 [OK] NR = 20, args = 1, 2, 3, 4, 5, 6 SIGTRAP at 0xf7f65db1 0xf7f65db1 0xf7ddd007 [OK] NR = 20, args = 1, 2, 3, 4, 5, 6 SIGTRAP at 0xf7f65db2 0xf7f65db2 0xf7ddd007 [OK] NR = 20, args = 1, 2, 3, 4, 5, 6 SIGTRAP at 0xf7f65db3 0xf7f65db3 0xf7ddd007 [OK] NR = 20, args = 1, 2, 3, 4, 5, 6 SIGTRAP at 0xf7f65db5 0xf7f65db5 0xf7ddd007 [OK] NR = 20, args = 1, 2, 3, 4, 5, 6 SIGTRAP at 0xf7f65dba 0xf7f65dba 0xf7ddd007 [OK] NR = 19501, args = 1, 2, 3, 4, 5, 6 SIGTRAP at 0xf7f65dbb 0xf7f65dbb 0xf7ddd007 [OK] NR = 19501, args = 1, 2, 3, 4, 5, 6 SIGTRAP at 0xf7f65dbc 0xf7f65dbc 0xf7ddd007 [OK] NR = 19501, args = 1, 2, 3, 4, 5, 6 Vsyscall is done [OK] All is well ok 1..17 selftests: unwind_vdso_32 [PASS] selftests: test_FCMOV_32 ======================================== [RUN] Testing fcmovCC instructions [OK] fcmovCC ok 1..18 selftests: test_FCMOV_32 [PASS] selftests: test_FCOMI_32 ======================================== [RUN] Testing f[u]comi[p] instructions [OK] f[u]comi[p] ok 1..19 selftests: test_FCOMI_32 [PASS] selftests: test_FISTTP_32 ======================================== [RUN] Testing fisttp instructions [OK] fisttp ok 1..20 selftests: test_FISTTP_32 [PASS] selftests: vdso_restorer_32 ======================================== [OK] SA_SIGINFO handler returned successfully [OK] !SA_SIGINFO handler returned successfully ok 1..21 selftests: vdso_restorer_32 [PASS] selftests: single_step_syscall_64 ======================================== [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 ok 1..22 selftests: single_step_syscall_64 [PASS] selftests: sysret_ss_attrs_64 ======================================== [RUN] Syscalls followed by SS validation [OK] We survived ok 1..23 selftests: sysret_ss_attrs_64 [PASS] selftests: syscall_nt_64 ======================================== [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 ok 1..24 selftests: syscall_nt_64 [PASS] selftests: ptrace_syscall_64 ======================================== [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 140734268836480 0 8 0 140734268836480) [RUN] Restart the syscall (ip = 0x7f90bc15d270) [FAIL] Restart nr or args are wrong (nr=14, args=2 140734268836480 0 8 0 140734268836480) [RUN] Change nr and args and restart the syscall (ip = 0x7f90bc15d270) [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 140734268836080 0 8 0 140734268836080) [RUN] SYSCALL [FAIL] Args after SIGUSR1 are wrong (nr=14, args=2 140734268836080 0 8 0 140734268836080) [OK] Child got SIGUSR1 [RUN] Step again [OK] pause(2) restarted correctly ok 1..25 selftests: ptrace_syscall_64 [PASS] selftests: test_mremap_vdso_64 ======================================== AT_SYSINFO_EHDR is 0x7ffd24349000 [NOTE] Moving vDSO: [0x7ffd24349000, 0x7ffd2434a000] -> [0x7fc383629000, 0x7fc38362a000] [NOTE] vDSO partial move failed, will try with bigger size [NOTE] Moving vDSO: [0x7ffd24349000, 0x7ffd2434b000] -> [0x7fc383628000, 0x7fc38362a000] [OK] ok 1..26 selftests: test_mremap_vdso_64 [PASS] selftests: check_initial_reg_state_64 ======================================== [OK] All GPRs except SP are 0 [OK] FLAGS is 0x202 ok 1..27 selftests: check_initial_reg_state_64 [PASS] selftests: sigreturn_64 ======================================== [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 ok 1..28 selftests: sigreturn_64 [PASS] selftests: ldt_gdt_64 ======================================== [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 0x000FFFFF [OK] LDT entry 0 has AR 0x00C0F200 and limit 0xFFFFFFFF [OK] LDT entry 0 has AR 0x00C0F000 and limit 0xFFFFFFFF [OK] LDT entry 0 has AR 0x00C0F600 and limit 0xFFFFFFFF [OK] LDT entry 0 has AR 0x00C0F400 and limit 0xFFFFFFFF [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 ok 1..29 selftests: ldt_gdt_64 [PASS] selftests: iopl_64 ======================================== 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 ok 1..30 selftests: iopl_64 [PASS] selftests: mpx-mini-test_64 ======================================== processor lacks XSAVE, can not run MPX tests ok 1..31 selftests: mpx-mini-test_64 [PASS] selftests: ioperm_64 ======================================== [OK] outb to 0x80 failed [OK] outb to 0xed failed [RUN] enable 0x80 [OK] outb to 0x80 worked [OK] outb to 0xed failed [RUN] disable 0x80 [OK] outb to 0x80 failed [OK] outb to 0xed failed [RUN] child: check that we inherited permissions [OK] outb to 0x80 worked [OK] outb to 0xed failed [OK] outb to 0x80 failed [OK] outb to 0xed failed [RUN] enable 0x80 [OK] outb to 0x80 worked [OK] outb to 0xed failed [RUN] disable 0x80 [OK] outb to 0x80 failed [OK] outb to 0xed failed [OK] Child succeeded Drop privileges [RUN] disable 0x80 [OK] it worked [RUN] enable 0x80 again [OK] it failed ok 1..32 selftests: ioperm_64 [PASS] selftests: protection_keys_64 ======================================== has pku: 0 running PKEY tests for unsupported CPU/OS ok 1..33 selftests: protection_keys_64 [PASS] selftests: test_vdso_64 ======================================== [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 1..34 selftests: test_vdso_64 [PASS] selftests: fsgsbase_64 ======================================== [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] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x0 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x0 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x0 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x0 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0xa1fa5f343cb85fa4 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x1 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x1 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x1 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x1 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x200000000 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x200000000 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x200000000 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0), then schedule to 0x200000000 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x0 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x0 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x0 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x0 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x0 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2b/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] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x1 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x1 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x1 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x1 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x200000000 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x200000000 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x200000000 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x0) and clear gs, then schedule to 0x200000000 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x0 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x1 [RUN] ARCH_SET_GS(0x1), then schedule to 0x0 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x0 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x0 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x0 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0xa1fa5f343cb85fa4 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x0/0x1 [RUN] ARCH_SET_GS(0x1), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x1 [RUN] ARCH_SET_GS(0x1), then schedule to 0x1 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x1 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x1 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x1 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x1 [RUN] ARCH_SET_GS(0x1), then schedule to 0x200000000 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x200000000 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x200000000 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x1), then schedule to 0x200000000 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x0 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x200000000 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x0 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x0 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x0 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x0 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0xa1fa5f343cb85fa4 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x0/0x200000000 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0xa1fa5f343cb85fa4 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x0) and clear gs -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x200000000 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x1 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x1 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x1 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x1 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x1) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x200000000 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x0/0x200000000 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x200000000 Before schedule, set selector to 0x1 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x1/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x200000000 Before schedule, set selector to 0x2 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x200000000 Before schedule, set selector to 0x3 other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x3/0x0 [RUN] ARCH_SET_GS(0x200000000), then schedule to 0x200000000 Before schedule, set selector to 0x2b other thread: ARCH_SET_GS(0x200000000) -- sel is 0x0 [OK] GS/BASE remained 0x2b/0x0 [RUN] ARCH_SET_GS(0), clear gs, then manipulate GSBASE in a different thread other thread: using LDT slot 0 [OK] GSBASE remained 0 ok 1..35 selftests: fsgsbase_64 [PASS] selftests: sysret_rip_64 ======================================== [RUN] sigreturn to 0x800000000000 [OK] Got SIGSEGV at RIP=0x800000000000 [RUN] sigreturn to 0x1000000000000 [OK] Got SIGSEGV at RIP=0x1000000000000 [RUN] sigreturn to 0x2000000000000 [OK] Got SIGSEGV at RIP=0x2000000000000 [RUN] sigreturn to 0x4000000000000 [OK] Got SIGSEGV at RIP=0x4000000000000 [RUN] sigreturn to 0x8000000000000 [OK] Got SIGSEGV at RIP=0x8000000000000 [RUN] sigreturn to 0x10000000000000 [OK] Got SIGSEGV at RIP=0x10000000000000 [RUN] sigreturn to 0x20000000000000 [OK] Got SIGSEGV at RIP=0x20000000000000 [RUN] sigreturn to 0x40000000000000 [OK] Got SIGSEGV at RIP=0x40000000000000 [RUN] sigreturn to 0x80000000000000 [OK] Got SIGSEGV at RIP=0x80000000000000 [RUN] sigreturn to 0x100000000000000 [OK] Got SIGSEGV at RIP=0x100000000000000 [RUN] sigreturn to 0x200000000000000 [OK] Got SIGSEGV at RIP=0x200000000000000 [RUN] sigreturn to 0x400000000000000 [OK] Got SIGSEGV at RIP=0x400000000000000 [RUN] sigreturn to 0x800000000000000 [OK] Got SIGSEGV at RIP=0x800000000000000 [RUN] sigreturn to 0x1000000000000000 [OK] Got SIGSEGV at RIP=0x1000000000000000 [RUN] sigreturn to 0x2000000000000000 [OK] Got SIGSEGV at RIP=0x2000000000000000 [RUN] sigreturn to 0x4000000000000000 [OK] Got SIGSEGV at RIP=0x4000000000000000 [RUN] sigreturn to 0x8000000000000000 [OK] Got SIGSEGV at RIP=0x8000000000000000 [RUN] Trying a SYSCALL that falls through to 0x7fffffffe000 [OK] We survived [RUN] Trying a SYSCALL that falls through to 0x7ffffffff000 [OK] We survived [RUN] Trying a SYSCALL that falls through to 0x800000000000 [OK] mremap to 0x7ffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0xfffffffff000 [OK] mremap to 0xffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x1000000000000 [OK] mremap to 0xfffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x1fffffffff000 [OK] mremap to 0x1ffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x2000000000000 [OK] mremap to 0x1fffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x3fffffffff000 [OK] mremap to 0x3ffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x4000000000000 [OK] mremap to 0x3fffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x7fffffffff000 [OK] mremap to 0x7ffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x8000000000000 [OK] mremap to 0x7fffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0xffffffffff000 [OK] mremap to 0xfffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x10000000000000 [OK] mremap to 0xffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x1ffffffffff000 [OK] mremap to 0x1fffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x20000000000000 [OK] mremap to 0x1ffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x3ffffffffff000 [OK] mremap to 0x3fffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x40000000000000 [OK] mremap to 0x3ffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x7ffffffffff000 [OK] mremap to 0x7fffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x80000000000000 [OK] mremap to 0x7ffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0xfffffffffff000 [OK] mremap to 0xffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x100000000000000 [OK] mremap to 0xfffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x1fffffffffff000 [OK] mremap to 0x1ffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x200000000000000 [OK] mremap to 0x1fffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x3fffffffffff000 [OK] mremap to 0x3ffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x400000000000000 [OK] mremap to 0x3fffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x7fffffffffff000 [OK] mremap to 0x7ffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x800000000000000 [OK] mremap to 0x7fffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0xffffffffffff000 [OK] mremap to 0xfffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x1000000000000000 [OK] mremap to 0xffffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x1ffffffffffff000 [OK] mremap to 0x1fffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x2000000000000000 [OK] mremap to 0x1ffffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x3ffffffffffff000 [OK] mremap to 0x3fffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x4000000000000000 [OK] mremap to 0x3ffffffffffff000 failed [RUN] Trying a SYSCALL that falls through to 0x7ffffffffffff000 [OK] mremap to 0x7fffffffffffe000 failed [RUN] Trying a SYSCALL that falls through to 0x8000000000000000 [OK] mremap to 0x7ffffffffffff000 failed ok 1..36 selftests: sysret_rip_64 [PASS] selftests: 5lvl_64 ======================================== mmap(NULL): 0x7ff60c46b000 - OK mmap(LOW_ADDR): 0x40000000 - OK mmap(HIGH_ADDR): 0x7ff60c46b000 - OK mmap(HIGH_ADDR) again: 0x7ff60c469000 - OK mmap(HIGH_ADDR, MAP_FIXED): 0xffffffffffffffff - FAILED mmap(-1): 0x7ff60c467000 - OK mmap(-1) again: 0x7ff60c462000 - OK mmap((1UL << 47), 2 * PAGE_SIZE): 0x7ff60c462000 - OK mmap((1UL << 47), 2 * PAGE_SIZE / 2): 0x7ff60c460000 - OK mmap((1UL << 47) - PAGE_SIZE, 2 * PAGE_SIZE, MAP_FIXED): 0xffffffffffffffff - FAILED mmap(NULL, MAP_HUGETLB): 0x7ff60b600000 - OK mmap(LOW_ADDR, MAP_HUGETLB): 0x40000000 - OK mmap(HIGH_ADDR, MAP_HUGETLB): 0x7ff60b600000 - OK mmap(HIGH_ADDR, MAP_HUGETLB) again: 0x7ff60b400000 - OK mmap(HIGH_ADDR, MAP_FIXED | MAP_HUGETLB): 0xffffffffffffffff - FAILED mmap(-1, MAP_HUGETLB): 0x7ff60b200000 - OK mmap(-1, MAP_HUGETLB) again: 0x7ff60b000000 - OK mmap((1UL << 47), 4UL << 20, MAP_HUGETLB): 0x7ff60ae00000 - OK mmap((1UL << 47) - (2UL << 20), 4UL << 20, MAP_FIXED | MAP_HUGETLB): 0xffffffffffffffff - FAILED ok 1..37 selftests: 5lvl_64 [PASS] make: Leaving directory '/usr/src/linux-selftests-x86_64-rhel-7.2-82abbf8d2fc46d79611ab58daa7c608df14bb3ee/tools/testing/selftests/x86' ignored_by_lkp zram test