msan: update tests for new memory mappings on aarch64
D137666 changed the memory mappings for msan on aarch64. This patch updates two more tests to match the new mappings. Differential Revision: https://reviews.llvm.org/D139033
This commit is contained in:
parent
6db9c34f56
commit
b647d8f95d
|
@ -33,21 +33,10 @@ bool AddrIsApp(void *p) {
|
||||||
uintptr_t start;
|
uintptr_t start;
|
||||||
uintptr_t end;
|
uintptr_t end;
|
||||||
} mappings[] = {
|
} mappings[] = {
|
||||||
{0x05000000000ULL, 0x06000000000ULL},
|
{0x0000000000000ULL, 0x0100000000000ULL},
|
||||||
{0x07000000000ULL, 0x08000000000ULL},
|
{0x0A00000000000ULL, 0x0B00000000000ULL},
|
||||||
{0x0F000000000ULL, 0x10000000000ULL},
|
{0x0E00000000000ULL, 0x0F00000000000ULL},
|
||||||
{0x11000000000ULL, 0x12000000000ULL},
|
{0x0F00000000000ULL, 0x1000000000000ULL},
|
||||||
{0x20000000000ULL, 0x21000000000ULL},
|
|
||||||
{0x2A000000000ULL, 0x2B000000000ULL},
|
|
||||||
{0x2E000000000ULL, 0x2F000000000ULL},
|
|
||||||
{0x3B000000000ULL, 0x3C000000000ULL},
|
|
||||||
{0x3F000000000ULL, 0x40000000000ULL},
|
|
||||||
{0x0041000000000ULL, 0x0042000000000ULL},
|
|
||||||
{0x0050000000000ULL, 0x0051000000000ULL},
|
|
||||||
{0x0058000000000ULL, 0x0059000000000ULL},
|
|
||||||
{0x0061000000000ULL, 0x0062000000000ULL},
|
|
||||||
{0x0AAAAA0000000ULL, 0x0AAAB00000000ULL},
|
|
||||||
{0x0FFFF00000000ULL, 0x1000000000000ULL},
|
|
||||||
};
|
};
|
||||||
const size_t mappingsSize = sizeof (mappings) / sizeof (mappings[0]);
|
const size_t mappingsSize = sizeof (mappings) / sizeof (mappings[0]);
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,9 @@ int main(void) {
|
||||||
uintptr_t hint = 0x07f000000000ULL;
|
uintptr_t hint = 0x07f000000000ULL;
|
||||||
const uintptr_t app_start = 0x020000000000ULL;
|
const uintptr_t app_start = 0x020000000000ULL;
|
||||||
#elif defined (__aarch64__)
|
#elif defined (__aarch64__)
|
||||||
uintptr_t hint = 0x4f0000000ULL;
|
uintptr_t hint = 0X0110000000000;
|
||||||
const uintptr_t app_start = 0x7000000000ULL;
|
// Unfortunately we don't have a stronger condition for this
|
||||||
|
const uintptr_t app_start = 0x0ULL;
|
||||||
#endif
|
#endif
|
||||||
uintptr_t p = (uintptr_t)mmap(
|
uintptr_t p = (uintptr_t)mmap(
|
||||||
(void *)hint, 4096, PROT_WRITE,
|
(void *)hint, 4096, PROT_WRITE,
|
||||||
|
|
Loading…
Reference in New Issue