[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200615004440.GR12456@shao2-debian>
Date: Mon, 15 Jun 2020 08:44:41 +0800
From: kernel test robot <rong.a.chen@...el.com>
To: Andy Lutomirski <luto@...nel.org>
Cc: LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [x86/entry] 3d066520a3:
kernel-selftests.x86.ptrace_syscall_32.step_again.fail
Greeting,
FYI, we noticed the following commit (built with gcc-4.9):
commit: 3d066520a322dba3135c9d6332c84a369f1ba8c2 ("x86/entry: Stop using regs->orig_ax == -1 to mean "not a syscall"")
https://git.kernel.org/cgit/linux/kernel/git/luto/linux.git x86/entry
in testcase: kernel-selftests
with following parameters:
group: kselftests-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 <rong.a.chen@...el.com>
# 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 = 0xb7f60092)
# [OK] Restarted nr and args are correct
# [RUN] Change nr and args and restart the syscall (ip = 0xb7f60092)
# [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
# [FAIL] pause did not restart (nr=252, args=0 0 4294967220 3220090628 3220090768 3220090792)
ok 21 selftests: x86: ptrace_syscall_32
make: Leaving directory '/usr/src/perf_selftests-i386-randconfig-r015-20200612-3d066520a322dba3135c9d6332c84a369f1ba8c2/tools/testing/selftests/x86'
To reproduce:
# build kernel
cd linux
cp config-5.7.0-08061-g3d066520a322d .config
make HOSTCC=gcc-4.9 CC=gcc-4.9 ARCH=i386 olddefconfig prepare modules_prepare bzImage
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
Rong Chen
View attachment "config-5.7.0-08061-g3d066520a322d" of type "text/plain" (134608 bytes)
View attachment "job-script" of type "text/plain" (4946 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (21736 bytes)
View attachment "kernel-selftests" of type "text/plain" (17428 bytes)
Powered by blists - more mailing lists