2022-07-10 09:52:16

by kernel test robot

[permalink] [raw]
Subject: [x86] 9724330ed6: kernel-selftests.x86.fsgsbase_restore_64.fail



Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: 9724330ed6ddddf7aae3a57ab04292e4c138eb3a ("x86: asm: instrument usercopy in get_user() and __put_user_size()")
https://git.kernel.org/cgit/linux/kernel/git/melver/linux.git review/kmsan

in testcase: kernel-selftests
version: kernel-selftests-x86_64-37f3cb9b-1_20220704
with following parameters:

group: x86

test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel.
test-url: https://www.kernel.org/doc/Documentation/kselftest.txt


on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):



If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>


please be noted we also observed other tests failed on this commit, but pass on
parent, as below. as well as a segfault.

ed05586b54c05b64 9724330ed6ddddf7aae3a57ab04
---------------- ---------------------------
fail:runs %reproduction fail:runs
| | |
:9 100% 9:9 kmsg.segfault_at_ip_sp_error
:9 100% 9:9 kernel-selftests.x86.fsgsbase_restore_32.fail
:9 100% 9:9 kernel-selftests.x86.fsgsbase_restore_64.fail
:9 100% 9:9 kernel-selftests.x86.ioperm_32.fail
:9 100% 9:9 kernel-selftests.x86.iopl_32.fail
:9 100% 9:9 kernel-selftests.x86.ptrace_syscall_32.fail
:9 100% 9:9 kernel-selftests.x86.ptrace_syscall_64.fail
:9 100% 9:9 kernel-selftests.x86.syscall_numbering_64.fail

segfault looks like below (from attached dmesg):

[ 492.679630][ T3357] ptrace_syscall_[3357]: segfault at 7ffecfd253e8 ip 00007ffecfd253e8 sp 00007ffecfd25118 error 15
[ 492.683931][ T3357] Code: 00 00 c8 53 d2 cf fe 7f 00 00 1c 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 93 5a d2 cf fe 7f 00 00 00 00 00 00 00 00 00 00 <a7> 5a d2 cf fe 7f 00 00 44 5b d2 cf fe 7f 00 00 85 5b d2 cf fe 7f



# selftests: x86: iopl_32
# iopl_32: sched_setaffinity to CPU 0: Invalid argument
not ok 7 selftests: x86: iopl_32 # exit=1
# selftests: x86: ioperm_32
# ioperm_32: sched_setaffinity to CPU 0: Invalid argument
not ok 8 selftests: x86: ioperm_32 # exit=1
...
# selftests: x86: fsgsbase_restore_32
# fsgsbase_restore_32: PTRACE_GETREGS: Input/output error
# Setting up a segment
# segment base address = 0xf7fb8000
# using LDT slot 0
# [OK] The segment points to the right place.
# Child FS=0x7
# Tracer: redirecting tracee to tracee_zap_segment()
not ok 11 selftests: x86: fsgsbase_restore_32 # exit=1
...
# selftests: x86: ptrace_syscall_32
# ptrace_syscall_32: PTRACE_SETREGS: Input/output error
# [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
# [OK] Initial nr and args are correct
# [RUN] Restart the syscall (ip = 0xf7f5c549)
not ok 21 selftests: x86: ptrace_syscall_32 # exit=1
...
# selftests: x86: fsgsbase_restore_64
# fsgsbase_restore_64: PTRACE_GETREGS: Input/output error
# Setting up a segment
# segment base address = 0x40c52000
# using LDT slot 0
# [OK] The segment points to the right place.
# Child GS=0x7, GSBASE=0x40c52000
# Tracer: redirecting tracee to tracee_zap_segment()
not ok 32 selftests: x86: fsgsbase_restore_64 # exit=1
...
# selftests: x86: syscall_numbering_64
# [RUN] Checking for x32 by calling x32 getpid()
# [INFO] x32 is not supported
# [RUN] Running tests without ptrace...
# [RUN] Checking system calls with msb = 0 (0x0)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 0:0 returned 0 as expected
# [OK] x64 syscall 0:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 0:19 returned 0 as expected
# [OK] x64 syscall 0:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 0:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 0:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 0:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 0:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 0:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 0:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1 (0x1)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1:0 returned 0 as expected
# [OK] x64 syscall 1:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1:19 returned 0 as expected
# [OK] x64 syscall 1:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -1 (0xffffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -1:0 returned 0 as expected
# [OK] x64 syscall -1:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -1:19 returned 0 as expected
# [OK] x64 syscall -1:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -1:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -1:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -1:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -1:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -1:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -1:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741823 (0x3fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741823:0 returned 0 as expected
# [OK] x64 syscall 1073741823:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741823:19 returned 0 as expected
# [OK] x64 syscall 1073741823:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741823:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741823:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741823:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741823:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741824 (0x40000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741824:0 returned 0 as expected
# [OK] x64 syscall 1073741824:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741824:19 returned 0 as expected
# [OK] x64 syscall 1073741824:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741824:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741824:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741824:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741824:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741824:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741824:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741823 (0x3fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741823:0 returned 0 as expected
# [OK] x64 syscall 1073741823:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741823:19 returned 0 as expected
# [OK] x64 syscall 1073741823:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741823:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741823:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741823:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741823:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -1073741824 (0xc0000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -1073741824:0 returned 0 as expected
# [OK] x64 syscall -1073741824:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -1073741824:19 returned 0 as expected
# [OK] x64 syscall -1073741824:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -1073741824:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -1073741824:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -1073741824:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -1073741824:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -1073741824:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -1073741824:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 2147483647 (0x7fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 2147483647:0 returned 0 as expected
# [OK] x64 syscall 2147483647:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 2147483647:19 returned 0 as expected
# [OK] x64 syscall 2147483647:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 2147483647:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 2147483647:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 2147483647:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 2147483647:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 2147483647:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 2147483647:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -2147483648 (0x80000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -2147483648:0 returned 0 as expected
# [OK] x64 syscall -2147483648:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -2147483648:19 returned 0 as expected
# [OK] x64 syscall -2147483648:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -2147483648:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -2147483648:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483648:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483648:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -2147483648:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -2147483648:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -2147483647 (0x80000001)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -2147483647:0 returned 0 as expected
# [OK] x64 syscall -2147483647:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -2147483647:19 returned 0 as expected
# [OK] x64 syscall -2147483647:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -2147483647:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -2147483647:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483647:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483647:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -2147483647:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -2147483647:0..999 returned -ENOSYS as expected
# [RUN] Running tests under ptrace: just stop, no data read
# [RUN] Checking system calls with msb = 0 (0x0)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 0:0 returned 0 as expected
# [OK] x64 syscall 0:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 0:19 returned 0 as expected
# [OK] x64 syscall 0:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 0:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 0:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 0:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 0:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 0:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 0:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1 (0x1)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1:0 returned 0 as expected
# [OK] x64 syscall 1:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1:19 returned 0 as expected
# [OK] x64 syscall 1:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -1 (0xffffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -1:0 returned 0 as expected
# [OK] x64 syscall -1:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -1:19 returned 0 as expected
# [OK] x64 syscall -1:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -1:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -1:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -1:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -1:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -1:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -1:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741823 (0x3fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741823:0 returned 0 as expected
# [OK] x64 syscall 1073741823:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741823:19 returned 0 as expected
# [OK] x64 syscall 1073741823:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741823:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741823:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741823:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741823:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741824 (0x40000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741824:0 returned 0 as expected
# [OK] x64 syscall 1073741824:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741824:19 returned 0 as expected
# [OK] x64 syscall 1073741824:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741824:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741824:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741824:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741824:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741824:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741824:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741823 (0x3fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741823:0 returned 0 as expected
# [OK] x64 syscall 1073741823:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741823:19 returned 0 as expected
# [OK] x64 syscall 1073741823:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741823:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741823:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741823:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741823:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -1073741824 (0xc0000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -1073741824:0 returned 0 as expected
# [OK] x64 syscall -1073741824:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -1073741824:19 returned 0 as expected
# [OK] x64 syscall -1073741824:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -1073741824:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -1073741824:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -1073741824:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -1073741824:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -1073741824:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -1073741824:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 2147483647 (0x7fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 2147483647:0 returned 0 as expected
# [OK] x64 syscall 2147483647:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 2147483647:19 returned 0 as expected
# [OK] x64 syscall 2147483647:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 2147483647:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 2147483647:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 2147483647:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 2147483647:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 2147483647:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 2147483647:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -2147483648 (0x80000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -2147483648:0 returned 0 as expected
# [OK] x64 syscall -2147483648:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -2147483648:19 returned 0 as expected
# [OK] x64 syscall -2147483648:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -2147483648:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -2147483648:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483648:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483648:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -2147483648:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -2147483648:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -2147483647 (0x80000001)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -2147483647:0 returned 0 as expected
# [OK] x64 syscall -2147483647:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -2147483647:19 returned 0 as expected
# [OK] x64 syscall -2147483647:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -2147483647:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -2147483647:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483647:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483647:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -2147483647:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -2147483647:0..999 returned -ENOSYS as expected
# [RUN] Running tests under ptrace: only getregs
# [RUN] Checking system calls with msb = 0 (0x0)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 0:0 returned 0 as expected
# [OK] x64 syscall 0:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 0:19 returned 0 as expected
# [OK] x64 syscall 0:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 0:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 0:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 0:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 0:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 0:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 0:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1 (0x1)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1:0 returned 0 as expected
# [OK] x64 syscall 1:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1:19 returned 0 as expected
# [OK] x64 syscall 1:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -1 (0xffffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -1:0 returned 0 as expected
# [OK] x64 syscall -1:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -1:19 returned 0 as expected
# [OK] x64 syscall -1:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -1:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -1:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -1:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -1:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -1:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -1:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741823 (0x3fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741823:0 returned 0 as expected
# [OK] x64 syscall 1073741823:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741823:19 returned 0 as expected
# [OK] x64 syscall 1073741823:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741823:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741823:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741823:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741823:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741824 (0x40000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741824:0 returned 0 as expected
# [OK] x64 syscall 1073741824:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741824:19 returned 0 as expected
# [OK] x64 syscall 1073741824:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741824:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741824:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741824:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741824:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741824:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741824:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 1073741823 (0x3fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 1073741823:0 returned 0 as expected
# [OK] x64 syscall 1073741823:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 1073741823:19 returned 0 as expected
# [OK] x64 syscall 1073741823:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 1073741823:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 1073741823:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 1073741823:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 1073741823:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 1073741823:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -1073741824 (0xc0000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -1073741824:0 returned 0 as expected
# [OK] x64 syscall -1073741824:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -1073741824:19 returned 0 as expected
# [OK] x64 syscall -1073741824:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -1073741824:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -1073741824:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -1073741824:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -1073741824:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -1073741824:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -1073741824:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = 2147483647 (0x7fffffff)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall 2147483647:0 returned 0 as expected
# [OK] x64 syscall 2147483647:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall 2147483647:19 returned 0 as expected
# [OK] x64 syscall 2147483647:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls 2147483647:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall 2147483647:-1 returned -ENOSYS as expected
# [OK] x64 syscalls 2147483647:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls 2147483647:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls 2147483647:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls 2147483647:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -2147483648 (0x80000000)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -2147483648:0 returned 0 as expected
# [OK] x64 syscall -2147483648:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -2147483648:19 returned 0 as expected
# [OK] x64 syscall -2147483648:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -2147483648:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -2147483648:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483648:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483648:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -2147483648:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -2147483648:0..999 returned -ENOSYS as expected
# [RUN] Checking system calls with msb = -2147483647 (0x80000001)
# [RUN] Checking some common syscalls as 64 bit
# [OK] x64 syscall -2147483647:0 returned 0 as expected
# [OK] x64 syscall -2147483647:1 returned 0 as expected
# [RUN] Checking some 64-bit only syscalls as 64 bit
# [OK] x64 syscall -2147483647:19 returned 0 as expected
# [OK] x64 syscall -2147483647:20 returned 0 as expected
# [RUN] Checking out of range system calls
# [OK] x32 syscalls -2147483647:-64..-2 returned -ENOSYS as expected
# [OK] x32 syscall -2147483647:-1 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483647:1073741760..1073741823 returned -ENOSYS as expected
# [OK] x64 syscalls -2147483647:-64..-1 returned -ENOSYS as expected
# [OK] x32 syscalls -2147483647:1073741759..1073741822 returned -ENOSYS as expected
# [RUN] Checking for absence of x32 system calls
# [OK] x32 syscalls -2147483647:0..999 returned -ENOSYS as expected
# [RUN] Running tests under ptrace: getregs, unmodified setregs
# [RUN] Checking system calls with msb = 0 (0x0)
# [RUN] Checking some common syscalls as 64 bit
#
not ok 36 selftests: x86: syscall_numbering_64 # TIMEOUT 300 seconds
...
# selftests: x86: ptrace_syscall_64
# ptrace_syscall_64: PTRACE_SETREGS: Input/output error
# [RUN] Check int80 return regs
# [OK] getpid() preserves regs
# [OK] kill(getpid(), SIGUSR1) preserves regs
# [RUN] ptrace-induced syscall restart
# [RUN] SYSEMU
# [OK] Initial nr and args are correct
# [RUN] Restart the syscall (ip = 0x7f4fa21289b9)
not ok 40 selftests: x86: ptrace_syscall_64 # exit=1



To reproduce:

# build kernel
cd linux
cp config-5.19.0-rc5-00004-g9724330ed6dd .config
make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
cd <mod-install-dir>
find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email

# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.



--
0-DAY CI Kernel Test Service
https://01.org/lkp



Attachments:
(No filename) (37.58 kB)
config-5.19.0-rc5-00004-g9724330ed6dd (171.03 kB)
job-script (5.11 kB)
dmesg.xz (35.88 kB)
kernel-selftests (91.66 kB)
Download all attachments