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