From c057d39a33691e71646ec1390bd7c00fd4f4d5c0 Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Fri, 10 May 2024 13:05:30 -0700 Subject: [PATCH] Fix sysret test for C3 machines. C3 machines have 5-level page tables enabled, which support 57 bits for virtual addresses. So update `kNonCanonicalRsp` so it induces the SIGBUS failure for 5-level page table x86 systems too. Suggested-by: Andrei Vagin PiperOrigin-RevId: 632581917 --- test/syscalls/linux/sysret.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/syscalls/linux/sysret.cc b/test/syscalls/linux/sysret.cc index 899758034a..d0007a4e2e 100644 --- a/test/syscalls/linux/sysret.cc +++ b/test/syscalls/linux/sysret.cc @@ -29,7 +29,7 @@ namespace testing { namespace { constexpr uint64_t kNonCanonicalRip = 0xCCCC000000000000; -constexpr uint64_t kNonCanonicalRsp = 0xFFFF000000000000; +constexpr uint64_t kNonCanonicalRsp = 0xFE00000000000000; class SysretTest : public ::testing::Test { protected: