mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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 <avagin@google.com> PiperOrigin-RevId: 633187852
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user