Message ID | 20241119060418.2368866-6-mjt@tls.msk.ru (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Patch Round-up for stable 9.1.2, freeze on 2024-11-18 | expand |
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 0b1c230b1c..3b8db721e2 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -2913,7 +2913,7 @@ static uintptr_t pgb_try_itree(const PGBAddrs *ga, uintptr_t base, static uintptr_t pgb_find_itree(const PGBAddrs *ga, IntervalTreeRoot *root, uintptr_t align, uintptr_t brk) { - uintptr_t last = mmap_min_addr; + uintptr_t last = sizeof(uintptr_t) == 4 ? MiB : GiB; uintptr_t base, skip; while (true) {