Use 1<<63 as non-canonical address in fork test.

1<<48 is not non-canonical on x86-64 CPUs with 5-level paging enabled.

PiperOrigin-RevId: 599935552
This commit is contained in:
Jamie Liu
2024-01-19 14:24:27 -08:00
committed by gVisor bot
parent 7d264ac60d
commit 91c0286ce3
+1 -1
View File
@@ -437,7 +437,7 @@ TEST(CloneTest, NewUserNamespacePermitsAllOtherNamespaces) {
// Clone with CLONE_SETTLS and a non-canonical TLS address is rejected.
TEST(CloneTest, NonCanonicalTLS) {
constexpr uintptr_t kNonCanonical = 1ull << 48;
constexpr uintptr_t kNonCanonical = 1ull << 63;
// We need a valid address for the stack pointer. We'll never actually execute
// on this.