Skip fpsig_fork_test on ptrace platform.

There was a kernel bug introduced in 43be46e89698
("x86/fpu: Sanitize xstateregs_set()") which is causing
this test to break on ptrace platform. This commit was
bisected by Andrei Vagin.

Quoting Andrei: "The problem is that mxcsr isn't
changed if a new fpstate doesn't have one of SSE,
YMM, FP features."

PiperOrigin-RevId: 460543091
This commit is contained in:
Ayush Ranjan
2022-07-12 13:46:43 -07:00
committed by gVisor bot
parent 81c6ae3dd5
commit aadfe7f23c
+4
View File
@@ -68,6 +68,8 @@ void sigusr1(int s, siginfo_t* siginfo, void* _uc) {
}
TEST(FPSigTest, Fork) {
// NOTE(b/238773725): This test fails on ptrace platform due to a kernel bug.
SKIP_IF(GvisorPlatform() == Platform::kPtrace);
parent = getpid();
pid_t parent_tid = gettid();
@@ -135,6 +137,8 @@ TEST(FPSigTest, Fork) {
#ifdef __x86_64__
TEST(FPSigTest, ForkWithZeroMxcsr) {
// NOTE(b/238773725): This test fails on ptrace platform due to a kernel bug.
SKIP_IF(GvisorPlatform() == Platform::kPtrace);
parent = getpid();
pid_t parent_tid = gettid();