KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2 2020-07-03 23:18:08 ln -sf /usr/bin/clang 2020-07-03 23:18:08 ln -sf /usr/bin/llc 2020-07-03 23:18:09 sed -i s/default_timeout=45/default_timeout=300/ kselftest/runner.sh ignored_by_lkp x86.mov_ss_trap test 2020-07-03 23:18:09 make run_tests -C x86 make: Entering directory '/usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86' gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/single_step_syscall_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 single_step_syscall.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/sysret_ss_attrs_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 sysret_ss_attrs.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/syscall_nt_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 syscall_nt.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/test_mremap_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 test_mremap_vdso.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/check_initial_reg_state_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -Wl,-ereal_start -static -DCAN_BUILD_32 check_initial_reg_state.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/sigreturn_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 sigreturn.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/iopl_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 iopl.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/ioperm_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 ioperm.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/test_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 test_vdso.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/test_vsyscall_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 test_vsyscall.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/syscall_arg_fault_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 syscall_arg_fault.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/entry_from_vm86_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 entry_from_vm86.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/test_syscall_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 test_syscall_vdso.c helpers.h thunks_32.S -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/unwind_vdso_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 unwind_vdso.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/test_FCMOV_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 test_FCMOV.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/test_FCOMI_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 test_FCOMI.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/test_FISTTP_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 test_FISTTP.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/vdso_restorer_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 vdso_restorer.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/ldt_gdt_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 ldt_gdt.c helpers.h -lrt -ldl -lm gcc -m32 -o /usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86/ptrace_syscall_32 -O2 -g -std=gnu99 -pthread -Wall -no-pie -DCAN_BUILD_32 ptrace_syscall.c helpers.h raw_syscall_helper_32.S -lrt -ldl -lm TAP version 13 1..20 # selftests: x86: single_step_syscall_32 # [RUN] Set TF and check nop # [OK] Survived with TF set and 14 traps # [RUN] Set TF and check int80 # [OK] Survived with TF set and 14 traps # [RUN] Set TF and check a fast syscall # [OK] Survived with TF set and 36 traps # [RUN] Fast syscall with TF cleared # [OK] Nothing unexpected happened # [RUN] Set TF and check SYSENTER # Got SIGSEGV with RIP=549, TF=256 # [RUN] Fast syscall with TF cleared # [OK] Nothing unexpected happened ok 1 selftests: x86: single_step_syscall_32 # selftests: x86: sysret_ss_attrs_32 # [RUN] Syscalls followed by SS validation # [OK] We survived ok 2 selftests: x86: sysret_ss_attrs_32 # selftests: x86: syscall_nt_32 # [RUN] Set NT and issue a syscall # [OK] The syscall worked and flags are still set # [RUN] Set AC and issue a syscall # [OK] The syscall worked and flags are still set # [RUN] Set NT|AC and issue a syscall # [OK] The syscall worked and flags are still set # [RUN] Set TF 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 # [RUN] Set AC|TF and issue a syscall # [OK] The syscall worked and flags are still set # [RUN] Set NT|AC|TF and issue a syscall # [OK] The syscall worked and flags are still set # [RUN] Set DF and issue a syscall # [OK] The syscall worked and flags are still set # [RUN] Set TF|DF and issue a syscall # [OK] The syscall worked and flags are still set ok 3 selftests: x86: syscall_nt_32 # selftests: x86: test_mremap_vdso_32 # AT_SYSINFO_EHDR is 0 # [WARN] getauxval failed # [OK] ok 4 selftests: x86: test_mremap_vdso_32 # selftests: x86: check_initial_reg_state_32 # [OK] All GPRs except SP are 0 # [OK] FLAGS is 0x202 ok 5 selftests: x86: check_initial_reg_state_32 # selftests: x86: sigreturn_32 # [NOTE] Failed to create code16 segment # [NOTE] Failed to create data16 segment # [NOTE] Failed to create npcode32 segment # [NOTE] Failed to create npdata32 segment # [OK] set_thread_area refused 16-bit data # [OK] set_thread_area refused 16-bit data # [WARN] Could not find 64-bit CS # [SKIP] Code segment unavailable for 64-bit CS, 32-bit SS # [RUN] Valid sigreturn: 32-bit CS (73), 32-bit SS (7b, GDT) # [OK] all registers okay # [WARN] Could not find 16-bit CS # [SKIP] Code segment unavailable for 16-bit CS, 32-bit SS # [WARN] Could not find 64-bit CS # [SKIP] Code segment unavailable for 64-bit CS, 16-bit SS # [SKIP] Data segment unavailable for 32-bit CS, 16-bit SS # [WARN] Could not find 16-bit CS # [SKIP] Code segment unavailable for 16-bit CS, 16-bit SS # [WARN] Could not find 64-bit CS # [RUN] 32-bit CS (73), bogus SS (47) # [OK] Got #IRET(0x0) (i.e. Illegal instruction) # [WARN] Could not find 16-bit CS # [WARN] Could not find 64-bit CS # [RUN] 32-bit CS (73), bogus SS (73) # [OK] Got #IRET(0x0) (i.e. Illegal instruction) # [WARN] Could not find 16-bit CS # [RUN] 32-bit CS (0), bogus SS (7b) # [OK] Got #IRET(0x0) (i.e. Illegal instruction) # [RUN] 32-bit CS (73), bogus SS (0) # [OK] Got #IRET(0x0) (i.e. Illegal instruction) ok 6 selftests: x86: sigreturn_32 # selftests: x86: iopl_32 # [OK] iopl(3) failed (38) -- try running as root ok 7 selftests: x86: iopl_32 # selftests: x86: ioperm_32 # [OK] outb to 0x80 failed # [OK] outb to 0xed failed # [RUN] enable 0x80 # [OK] ioperm(0x80, 1, 1) failed (38) -- try running as root ok 8 selftests: x86: ioperm_32 # selftests: x86: test_vdso_32 # [WARN] failed to find vDSO # [SKIP] No vDSO, so skipping clock_gettime() tests # [RUN] Testing getcpu... # [OK] CPU 0: syscall: cpu 0, node 0 # [OK] CPU 1: syscall: cpu 1, node 0 ok 9 selftests: x86: test_vdso_32 # selftests: x86: test_vsyscall_32 # [WARN] failed to find vDSO # [RUN] test gettimeofday() # [RUN] test time() # [RUN] getcpu() on CPU 0 # [RUN] getcpu() on CPU 1 ok 10 selftests: x86: test_vsyscall_32 # selftests: x86: syscall_arg_fault_32 # [RUN] SYSENTER with invalid state # [OK] Seems okay # [RUN] SYSCALL with invalid state # [SKIP] Illegal instruction # [RUN] SYSENTER with TF and invalid state # [OK] Seems okay # [RUN] SYSCALL with TF and invalid state # [SKIP] Illegal instruction ok 11 selftests: x86: syscall_arg_fault_32 # selftests: x86: entry_from_vm86_32 # [RUN] #BR from vm86 mode # [INFO] Exited vm86 mode due to #BR # [OK] Returned correctly # [RUN] SYSENTER from vm86 mode # [INFO] Exited vm86 mode due to unhandled GP fault # [OK] Returned correctly # [RUN] SYSCALL from vm86 mode # [INFO] SIGILL: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly # [RUN] STI with VIP set from vm86 mode # [INFO] Exited vm86 mode due to STI # [OK] Returned correctly # [RUN] POPF with VIP set and IF clear from vm86 mode # [INFO] Exited vm86 mode due to unhandled GP fault # [OK] Returned correctly # [RUN] POPF with VIP and IF set from vm86 mode # [INFO] Exited vm86 mode due to STI # [OK] Returned correctly # [RUN] POPF with VIP clear and IF set from vm86 mode # [INFO] Exited vm86 mode due to unhandled GP fault # [OK] Returned correctly # [RUN] INT3 from vm86 mode # [INFO] Exited vm86 mode due to a trap (arg=3) # [OK] Returned correctly # [RUN] int80 from vm86 mode # [INFO] Exited vm86 mode due to #128 # [OK] Returned correctly # [RUN] UMIP tests from vm86 mode # [INFO] Exited vm86 mode due to a trap (arg=3) # [OK] Returned correctly # [INFO] Result from SMSW:[0x0033] # [INFO] Result from SIDT: limit[0x07ff]base[0xff400000] # [INFO] Result from SGDT: limit[0x00ff]base[0xff42c000] # [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 # [INFO] SIGILL: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly # [RUN] SLDT instruction from vm86 mode # [INFO] SIGILL: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly # [RUN] Execute null pointer from vm86 mode # [INFO] SIGSEGV: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly # [RUN] #BR from vm86 mode # [INFO] Exited vm86 mode due to #BR # [OK] Returned correctly # [RUN] SYSENTER from vm86 mode # [INFO] Exited vm86 mode due to unhandled GP fault # [OK] Returned correctly # [RUN] SYSCALL from vm86 mode # [INFO] SIGILL: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly # [RUN] STI with VIP set from vm86 mode # [INFO] Exited vm86 mode due to STI # [OK] Returned correctly # [RUN] POPF with VIP set and IF clear from vm86 mode # [INFO] Exited vm86 mode due to unhandled GP fault # [OK] Returned correctly # [RUN] POPF with VIP and IF set from vm86 mode # [INFO] Exited vm86 mode due to STI # [OK] Returned correctly # [RUN] POPF with VIP clear and IF set from vm86 mode # [INFO] Exited vm86 mode due to unhandled GP fault # [OK] Returned correctly # [RUN] INT3 from vm86 mode # [INFO] Exited vm86 mode due to a trap (arg=3) # [OK] Returned correctly # [RUN] int80 from vm86 mode # [INFO] Exited vm86 mode due to #128 # [OK] Returned correctly # [RUN] UMIP tests from vm86 mode # [INFO] Exited vm86 mode due to a trap (arg=3) # [OK] Returned correctly # [INFO] Result from SMSW:[0x0033] # [INFO] Result from SIDT: limit[0x07ff]base[0xff400000] # [INFO] Result from SGDT: limit[0x00ff]base[0xff42c000] # [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 # [INFO] SIGILL: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly # [RUN] SLDT instruction from vm86 mode # [INFO] SIGILL: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly # [RUN] Execute null pointer from vm86 mode # [INFO] SIGSEGV: FLAGS = 0x202, CS = 0x73 # [INFO] Exited vm86 mode due to a signal # [OK] Returned correctly ok 12 selftests: x86: entry_from_vm86_32 # selftests: x86: test_syscall_vdso_32 # [NOTE] Not a 64-bit kernel, won't test R8..R15 leaks # [WARN] AT_SYSINFO not supplied # [RUN] Executing 6-argument 32-bit syscall via INT 80 # [OK] Arguments are preserved across syscall # [RUN] Executing 6-argument 32-bit syscall via INT 80 # [OK] Arguments are preserved across syscall # [RUN] Running tests under ptrace ok 13 selftests: x86: test_syscall_vdso_32 # selftests: x86: unwind_vdso_32 # AT_SYSINFO is 0x0 # [WARN] dladdr failed on AT_SYSINFO # [RUN] Set TF and check a fast syscall # [WARN] syscall(2) didn't enter AT_SYSINFO # [OK] All is well ok 14 selftests: x86: unwind_vdso_32 # selftests: x86: test_FCMOV_32 # [RUN] Testing fcmovCC instructions # [OK] fcmovCC ok 15 selftests: x86: test_FCMOV_32 # selftests: x86: test_FCOMI_32 # [RUN] Testing f[u]comi[p] instructions # [OK] f[u]comi[p] ok 16 selftests: x86: test_FCOMI_32 # selftests: x86: test_FISTTP_32 # [RUN] Testing fisttp instructions # [OK] fisttp ok 17 selftests: x86: test_FISTTP_32 # selftests: x86: vdso_restorer_32 # [SKIP] Failed to find vDSO. Tests are not expected to work. ok 18 selftests: x86: vdso_restorer_32 # selftests: x86: ldt_gdt_32 # [OK] LDT entry 0 is invalid # [NOTE] set_thread_area is available; will use GDT index 7 # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] LDT entry 1 is invalid # [OK] modify_ldt returned -ENOSYS # [OK] LDT entry 1 is invalid # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [SKIP] Skipping fork and size tests because we have no LDT # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] modify_ldt returned -ENOSYS # [OK] GDT entry 7 has AR 0x0040F300 and limit 0x000FFFFF # [OK] modify_ldt returned -ENOSYS # [OK] GDT entry 7 has AR 0x00C0F300 and limit 0xFFFFFFFF # [OK] modify_ldt returned -ENOSYS # [OK] GDT entry 7 has AR 0x00C0F100 and limit 0xFFFFFFFF # [OK] modify_ldt returned -ENOSYS # [OK] GDT entry 7 has AR 0x00C0F700 and limit 0xFFFFFFFF # [OK] modify_ldt returned -ENOSYS # [OK] GDT entry 7 has AR 0x00C0F500 and limit 0xFFFFFFFF # [OK] modify_ldt returned -ENOSYS # [RUN] Cross-CPU LDT invalidation # [SKIP] modify_ldt unavailable # [OK] All 5 iterations succeeded # [RUN] Test exec # [OK] modify_ldt returned -ENOSYS # [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 19 selftests: x86: ldt_gdt_32 # selftests: x86: ptrace_syscall_32 # [RUN] Check int80 return regs # [OK] getpid() preserves regs # [OK] kill(getpid(), SIGUSR1) preserves regs # [SKIP] AT_SYSINFO is not available # [RUN] ptrace-induced syscall restart # [RUN] SYSEMU # [OK] Initial nr and args are correct # [RUN] Restart the syscall (ip = 0x77f21092) # [OK] Restarted nr and args are correct # [RUN] Change nr and args and restart the syscall (ip = 0x77f21092) # [OK] Replacement nr and args are correct # [OK] Child exited cleanly # [RUN] kernel syscall restart under ptrace # [RUN] SYSCALL # [OK] Initial nr and args are correct # [RUN] SYSCALL # [OK] Args after SIGUSR1 are correct (ax = -514) # [OK] Child got SIGUSR1 # [RUN] Step again # [OK] pause(2) restarted correctly ok 20 selftests: x86: ptrace_syscall_32 make: Leaving directory '/usr/src/perf_selftests-i386-randconfig-h002-20200226-330f9c9423d9a2df2c518929a756caac837dfde2/tools/testing/selftests/x86'